sportradar-gtm

Bare in mind, all integration is done via Google Tag Manager.

Please note, javascript code snippets in the screenshots were added just for display purposes. The correct code snippets can be found here: https://marketing-cloud.sportradar.com/support/solutions/articles/77000538662-tracking-specifications

When copying the code snippets:

1. Lets copy the snippets, including <script> tags

2. For every copied snippet (except Init tag snippet), let's add additional code to final script:

code-snippet-additional-code.jpg

Where the original code snippet looked like this:

<script> 
srtmCommands.push({
 event: "track.user.login",
 payload: { action: "complete", 
userId: {{user ID}} },
});
</script>

This will make our code a bit tidier.

Custom variables

In some code snippets we use

{{variable name}}

These variables represent data sent from our app. For instance, when user adds bet to betting slip, addBetToBettingSlip event is sent with some data, e.g. event UUID, market and etc… So each

{{variable}}

created represents single piece of data, which then can be used in Tags.

For custom variable list please read Custom variables section.

Triggers

Triggers are assigned to our Tags. Tags are then executed whenever the assigned trigger is fired. When creating the trigger, we need to assign it to some event, that's sent from our app. So e.g. user logins and our app sends

login

event. We then can create a trigger, that catches this event. Once the trigger catches the event, the tag that's using this trigger will execute a code block.

For trigger list please read triggers section.

GTM Tags

Do not forget to add your own Unique Cliend ID in the code snippet!! sportradar-gtm-init-tag.jpg

sportradar-gtm-registration-start.jpg

sportradar-gtm-registration-finished.jpg

sportradar-gtm-login.jpg

sportradar-gtm-first-time-deposit.jpg

sportradar-gtm-reccurring-deposit.jpg

Triggers

Bare in mind, that event names in the screenshots might be out of date. For up to date event names please visit this page: https://wiki.advbet.com/admin/online-platform-cms/google-events?s[]=google&s[]=tag&s[]=manager#events-and-their-data-gtm

registration_init_trigger.jpg

registration_finished_trigger.jpg

first_deposit_success_trigger.jpg

Custom variables

  • sportradar-gtm.txt
  • Last modified: 2024/04/11 12:09
  • by evaldas-luksys