Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel7
minLevel1

NFL widgets

GameTracker

Note: iframeheight 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 Multisport Game Tracker product for Football.

Code Block
languagehtml
<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.

...

Code Block
languagejs
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;
    }
});

...

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

...

ScoreBoardTo use the scoreboard stand-alone require that the activeContent should be equal to scoreboard


Example URL:

https://gsm-widgets-uat.betstream.betgenius.com/americanfootballgametrackerpartial/?fixtureId=77308698090595&activeContent=scoreboard&productName=gsmdemo

...

Query parameters

Game Tracker

Name

Purpose

Mandatory

Notes

productName

Dictates which configuration should be used to render the Game Tracker

Yes

Is a string that would be provided by ops

group

Defines what content should be rendered. It can be used to have several fixtures defined as fallback

Yes

Only use the default Group value provided by Genius

(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:
group[0][fixtureId]=12345)

tab

Which tab is active on render

No

Available options:

  • field

  • topPerformers

  • teamStats

fixtureId

Defines what content should be rendered

.

culture

Choose the language

No

Options are described in the translations section

Game Tracker Partial

Name

Purpose

Mandatory

Notes

productName

Dictates which configuration should be used to render the Game Tracker

Yes

Is a string that would be provided by ops

fixtureId

Defines what content should be rendered

.

Yes

culture

Choose the language

No

Options are described in the translations section

activeContent

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

View file
nameen-us.json

Available Translations

  • default (english)