NFL widgets
GameTracker
UAT and Testing
https://gsm-widgets-uat.betstream.betgenius.com/americanfootballgametracker?group[0][fixtureId]=<fixtureId>&productName=<productName>
https://gsm-widgets-uat.betstream.betgenius.com/americanfootballgametracker?group[0][sourceFixtureId]=<sourceFixtureId>&fixtureSource=<fixtureSource>&productName=<productName>
https://gsm-widgets-uat.betstream.betgenius.com/americanfootballgametracker?fixtureId=<fixtureId>&productName=<productName>
https://gsm-widgets-uat.betstream.betgenius.com/americanfootballgametracker?sourceFixtureId=<sourceFixtureId>&fixtureSource=<fixtureSource>&productName=<productName>
Production
https://gsm-widgets.betstream.betgenius.com/americanfootballgametracker?group[0][fixtureId]= <fixtureId>&productName=<productName>
https://gsm-widgets.betstream.betgenius.com/americanfootballgametracker?group[0][sourceFixtureId]= <sourceFixtureId>&fixtureSource=<fixtureSource>&productName=<productName>
https://gsm-widgets.betstream.betgenius.com/americanfootballgametracker?fixtureId= <fixtureId>&productName=<productName>
https://gsm-widgets.betstream.betgenius.com/americanfootballgametracker?sourceFixtureId= <sourceFixtureId>&fixtureSource=<fixtureSource>&productName=<productName>
Example
Side-by-side layout https://gsm-widgets-uat.betstream.betgenius.com/americanfootballgametracker?productName=gt-sidebyside&group%5B0%5D%5BfixtureId%5D=8090595&tab=field
Full betting experience:
Note: iframe height should be at least 320px in order to have a properly functioning widget and its container should be at least 300px wide
Integration details
iFrame
The iframe code should be placed within the body of the webpage where you would like the widget to appear. The script below is an example that embeds a Football Game Tracker product.
<iframe id="gsm-game-tracker" scrolling="no" src="https://gsm-widgets-uat.betstream.betgenius.com/americanfootballgametracker?group[0][fixtureId]=6992769&productName=sportsgossip" width="100%" height="320px" style="border: 0;"></iframe>
Full Betting Experience (FBE) iframe setup
Example:
In case you would like to implement FBE, which contains more features like Roster, Inactive players, NFL live, up-coming and past scores games and, NGS stats for fastest speed player in the field.
The iframe should have an id and the scrolling property as “no” to be able to render the content properly.
Also, the client should place this script anywhere in the root of his site so the widget template will be able to communicate and handle height changes to display de FBE content.
window.addEventListener('message', () => { if (event.origin === 'https://gsm-widgets-uat.betstream.betgenius.com' && event.data.type && event.data.type === 'widget:updateIframeHeight') { document.getElementById("gsm-game-tracker").style.height = event.data.value; } });
By default, the iframe will increase its height by 300px to display de FBE container and will also reduce that height to hide the content.
As an additional setup, the Enable FBE switch should be set up as true in the Configuration Manager.
Stand-Alone Component
In case that require component stand-alone need use a different URL
https://gsm-widgets-uat.betstream.betgenius.com/americanfootballgametrackerpartial
Exist the posibility to use the following components
ScoreBoard
To use the scoreboard stand-alone require that the activeContent should be equal to scoreboard
Example URL:
Query parameters
Game Tracker
Name | Purpose | Mandatory | Notes |
---|---|---|---|
| Dictates which configuration should be used to render the Game Tracker | Yes | Is a string that would be provided by ops |
| Defines what content should be rendered. It can be used to have several fixtures defined as fallback | Yes | It’s an encoded array where each array item is an object that contains a fixtureId. The fixtureId supports both betgeniusId and source fixture ids. Example: |
| Which tab is active on render | No | Available options:
|
| Defines what content should be rendered. | ||
| Choose the language | No | Options are described in the translations section |
Game Tracker Partial
Name | Purpose | Mandatory | Notes |
---|---|---|---|
| Dictates which configuration should be used to render the Game Tracker | Yes | Is a string that would be provided by ops |
| Defines what content should be rendered. | Yes | |
| Choose the language | No | Options are described in the translations section |
| Define the stand-alone component that will be used | Yes | Only work when need stand-alone components |
Configuration
In order to have a working widget a configuration must be created, this is handled by operations team
Translations
In order to use any other than the default language, it needs to be translated.
Sport | Default Value |
---|---|
American Football |
Available Translations
default (english)