Skip to content
AGG SYSTEM360
Docs

Sports Widget

Shows the top matches of your sportsbook on any page of your site. When the player clicks a match or an odd, they are sent to your sports page opened on that match.

Preview

The live preview on this page shows the widget with Digitain and First, in any of the supported currencies.

Load the widget to see how it looks with each sportsbook and currency.

Click a match or an odd to see the URL your sports page receives.

Installation

1

Add the container where the widget must appear. The id is required and must be exactly content360-sports-widget.

<div id="content360-sports-widget"></div>
2

Declare the configuration before loading the script. In sportsbook set the provider you have enabled: "digitain" or "first".

<script>
  window.Content360Sports = {
    client: 5,
    sportsbook: "digitain",
    lang: "es_ES",
    currency: "ARS",
    sportsUrl: "/sports"
  };
</script>
3

Load the script.

<script src="https://sportsbook.content360.games/js/sports-landing-loading.v2.js" async></script>

Options

OptionDescription
clientRequired. Your numeric client ID (given by Content360).
sportsbookRequired. Enabled provider: "digitain" or "first".
sportsUrlRequired. Path of your site that opens the sportsbook, e.g. "/sports". A full URL also works.
langLanguage in xx_XX format (es_ES, en_US, pt_BR…). Default en_US.
currencyISO currency code. Default USD.
skinOptional. Widget colors, in the same format as the skin you send in extra_data on game launch (see Customization).

Redirection to your sportsbook

When the player clicks a match, the browser goes to sportsUrl with these parameters (only the ones that apply):

ParameterProviderDescription
sportsbookBothdigitain or first
eventBothEvent ID (or championship ID when type=3)
typeDigitainPage to open: 1 pre-match, 2 live, 3 championship
sportDigitainSport ID (only with type=3)
countryDigitainCountry ID (only with type=3)
oddFirstID of the selection the player clicked

Examples:

https://yoursite.com/sports?sportsbook=digitain&type=1&event=41867425
https://yoursite.com/sports?sportsbook=first&event=123456&odd=987654

Your sports page must read these parameters (except sportsbook) and send them as they are inside extra_data on game launch:

"extra_data": { "type": "1", "event": "41867425" }

If you prefer to handle the navigation yourself, listen to this event and call preventDefault():

window.addEventListener("content360-sports:navigate", function (e) {
  e.preventDefault();
  console.log(e.detail.url, e.detail.params);
});