Betting Entertainment Tools

Match Commentary

A match.commentary brings live timeline/key in-game events.

For the widget to render you need to provide matchId, other properties are optional.

Parameters
Name Type Attributes Default Description
props object <required>
matchId number <required>

Match ID.

showFunfacts boolean true

When set to true, shows funfacts of the match.

showPhrases boolean true

When set to true, shows phrases (= composite comments made out of an event and generic text). *available/supported for soccer only

showExpandSwitch boolean true

When set to true, shows the expand switch in the right corner.

commentsExpanded boolean true

When set to true, starts the widget in expanded mode.

showFactsAndFigures boolean false

When set to true, shows betting stimulations. *available in real-time/during a live match only

enableBettingStimulationMode boolean false

Works in pair with showFactsAndFigures set to true. When set to true, displays odds instead of probabilities. *available in real-time/during a live match only

disableWidgetHeader boolean true

When set to true, hides widget header.

onTrack function

Function/event handler, see Tracking options.

Examples

HTML/Declarative

<div id="sr-widget" data-sr-widget="match.commentary" data-sr-match-id="27402448" data-sr-comments-expanded="false" data-sr-disable-widget-header="false"></div>
<script type="application/javascript" src="https://widgets.sir.sportradar.com/sportradar/widgetloader" async></script>

JS/Programmatic

<script>
    (function(a,b,c,d,e,f,g,h,i){a[e]||(i=a[e]=function(){(a[e].q=a[e].q||[]).push(arguments)},i.l=1*new Date,i.o=f,
    g=b.createElement(c),h=b.getElementsByTagName(c)[0],g.async=1,g.src=d,g.setAttribute("n",e),h.parentNode.insertBefore(g,h)
    )})(window,document,"script","https://widgets.sir.sportradar.com/sportradar/widgetloader","SIR", {
        language: 'en'
    });
    SIR('addWidget', '#sr-widget', 'match.commentary', {matchId: 27402448, commentsExpanded: false, disableWidgetHeader: false});
</script>
<div id="sr-widget"></div>