SportsContext

Integration Guide

Welcome to the partner documentation hub for SportsContext. SportsContext delivers context-aware sports betting opportunities, dynamic stats, and editorial content directly within publisher articles via a lightweight JavaScript snippet.

01 —

Getting Started

SportsContext dynamically evaluates article context (teams, players, league, sentiment) and reader geolocation to render relevant betting markets or fallback cards (such as display advertising or related content).

Getting started involves two parts:

  1. Provide the site and placement details used to configure where SportsContext appears.
  2. Add the current JavaScript snippet to your site.

Placement is configured for your site

You do not need to add a placement container manually. SportsContext injects the container based on the placement preference supplied in your configuration, such as after the third paragraph in the article body. Provide the desired location to your Customer Success Manager so it can be configured for your site.

Add the embed script

SportsContext is delivered through a JavaScript entrypoint hosted on our high-availability CDN. Add the following script to your site; it uses Subresource Integrity (SRI) to verify the script.

<script
  src="https://assets.contextbet.com/entrypoint.js"
  integrity="sha384-M6L9wtUr+zmewz2zuwQnzWNExDuOnlPEy0HRNsahWjAFaPuU0jFH3j9atLyoIXmG"
  crossorigin="anonymous"
  type="module"></script>

agent.js is loaded from hostname-config (website agent_version).

02 —

Configuring Your Site

Share the following information with your Customer Success Manager so the platform can identify relevant content and place the widget where you want it.

  • Sitemap URL(s): Provide the URL or URLs for your website's sitemap, for example https://www.yoursite.com/sitemap.xml.
  • Content monitoring breakdown: List the site sections where relevant content appears, along with the CSS selector for the main content area. If your site uses different page templates, provide the matching selector for each one.
    Content section example Main content selector example
    /news/sports/* #main-content
    /news/super-bowl/* .article-body
    /news/nba-playoffs/* .article-body

    We can also exclude specific child sections. For example, we can monitor /news/ while excluding /news/regulatory/.

  • Placement preference: Specify where in the article body the widget should appear, such as after the third paragraph or before the last paragraph. SportsContext injects the placement container according to this configuration.
  • Staging environment (if applicable): Share the staging domain before testing. Keep staging article URL paths aligned with the corresponding published URLs so content can be matched correctly.

Send these configuration details to your Customer Success Manager before proceeding with the script setup.

Keep your integration current

Script updates

The example above uses the current SportsContext entrypoint.

  • Updating the entrypoint: Replace the script URL and integrity hash with the values supplied for the new entrypoint.
  • Script attributes: Always retain type="module" and crossorigin="anonymous" to ensure proper browser ES-module parsing and CORS handling for CDN-hosted assets.

Content availability & carousel behavior

SportsContext can present a range of configured content types in the unit. Each card appears only when content for that type can be generated. A betting opportunity that cannot be generated or has expired is not shown. When multiple cards are generated, readers can browse them horizontally in the carousel.

  • Available content: Generated cards are included according to the content types configured for your site.
  • Unavailable or expired content: A card is omitted when its content cannot be generated or its betting opportunity has expired; it does not trigger a fallback card.

03 —

Regionalizing Your Content

To comply with regulations across global regions, SportsContext automatically manages the content that it displays based on your preferences:

  • Geolocation configuration: SportsContext handles geolocation configuration for each content type, ensuring betting options and operator calls-to-action (CTAs) are only displayed to users in eligible jurisdictions.
  • Content disclosures: Each content type that requires a disclosure is accompanied by its applicable notice, including non-betting cards.

No custom client-side compliance logic is required from your engineering team.

04 —

Troubleshooting & FAQ

Can SportsContext be tested within a staging environment?

Yes. SportsContext can be deployed and validated on staging or pre-production environments before launch. If you plan to test on a staging URL, provide the domain to the SportsContext team so it can be configured and approved for delivery. To correctly assign widgets to article content, URLs published in staging must match the corresponding content URLs. For example:

  • yourwebsite.com/title-of-story
  • staging.yourwebsite.com/title-of-story
Can the script be targeted to specific sections of our site?

Yes. Most implementations target SportsContext to relevant content areas using page path, taxonomy, or section-based rules. When directly integrated into your website, the script references your taxonomy map. When deployed via Google Tag Manager, it can be targeted with page-path rules.

Will the Mid Article unit be the only SportsContext format?

No. The Mid Article unit is one of several engagement formats we plan to release over time. We continually experiment with new and interesting ways for SportsContext units to capture readers' interest.

Does SportsContext collect user data?

Yes. SportsContext uses Google Analytics for basic operational tracking and performance measurement. Additional information about data handling, privacy, and compliance is outlined in the Data Cooperation Agreement provided during onboarding.

Will SportsContext affect site performance?

Yes. The SportsContext script is lightweight and designed to load asynchronously to minimize its impact on page performance and user experience.

Who should we contact for implementation support?

For onboarding or technical implementation questions, contact your SportsContext representative directly.

05 —

Releases

Date Release highlights Version
Feb 3, 2026 Initial embedded experience with single-operator deep linking; matchup spread and moneyline, player-prop over/under and yes/no markets; NFL, NBA, NHL, and MLB coverage; and manual configuration with engagement tracking. v1.0.0
Mar 17, 2026 Added L5/L10 recent-form and win/loss/cover visualizations for matchups and player props, expanded coverage to college football and basketball, refined article analysis and pick generation, and introduced partner-facing onboarding resources. v1.0.1
June 2026 Early access began with an operational management application and commercial partner onboarding. v1.1.0
Aug 4, 2026 Introduced managed commercial onboarding, additional operator integrations, platform and pick-engine improvements, and analytics and feedback capabilities. v1.1.1
Sep 8, 2026 Expanded SportsContext into a multi-content experience with a mid-article ad unit, tiered ad delivery and fallback, related-content recommendations, and non-betting content options. v1.1.2

Roadmap priorities and target timing may change.