- Client ID
- How to Include a Widget on a Page?
- How to know if widget has loaded?
- Encountering problems with the widget?
- How to Find a Widget Name?
- How to Customize a Widget?
- How to Get Match ID?
- What to Do in Case of Licensing Errors?
- Widgets Errors
- Live Match Tracker (LMT)
Client ID?
Client ID is a 32 characters long id which is automatically created when a client account is created. The Client ID is binded to all of the orders under one account and will work for all of the products enabled under that account. In order for us to create an account, contact our Sales Team.How to Include a Widget on a Page?
We have a Getting Started Guide with examples on how to add widgets to your page.
How to know if widget has loaded?
On every widget you can use onTrack
function (as a property) which will be invoked on some events. You can find more information here.
Example of how to use onTrack function to check for widget state can be found here.
Encountering problems with the widget?
Check out our troubleshooting page for assistance.How to Find a Widget Name?
To find a widget name for addWidget method or data-sr-widget
data attribute value let's see an example. If you take a look at Match Statistics widget, you'll see widget name under the widget title, in our example that is match.Statistics
.
Another option is to use Widgets Demo page, where you can get widget name by first selecting desired widget and then clicking Get Code button in the side menu. You can now copy "Selected widget" value as widget name.
How to Customize a Widget?
On our Widgets demo page you can customize widgets look by selecting different layout settings and styling. On the right side of the demo page there are Settings and Styling menu items intended for widget customization. After desired result click on Get code menu item, enter Client ID and click Download code button. Your widget is now generated.
How to Get Match ID?
Head to Widgets Demo page and select specific sport and match. In the URL you will see different parameters. Find matchId
parameter and copy its value (number).
Example: https://widgets.sir.sportradar.com/live-match-tracker#matches:(matchId:29524624
,sportId:1)
What to Do in Case of Licensing Errors?
Please read the Licensing page.
Widgets Errors
Please read the Widget Errors page.
Live Match Tracker (LMT)
Can We Get a Coverage Document for Live Match Tracker?
General coverage for LMT can be seen in the general coverage document.
For LMT coverage the most important column is "Live Score". LMT coverage is most of the time in sync with that coverage level. There are different levels which are explained in the general coverage document.
How to Remove Live Match Tracker Errors?
First of all it is important what kind of error is displayed. Usually the errors can get fixed easily as they are most of the time connected to licensing.