Track player events with Google Tag Manager


About

Google Tag Manager lets you manage your website's tracking tags from one web interface. If you use it, you can connect the player to Google Tag Manager and track player events there.

VOD

Access the Integrations settings

  1. Log in to your Rich Media CMS and select the Studio tab.
  2. From the list, select the player you want to configure.
  3. The player settings open.

  4. In the left panel, select the shapes icon.
  5. The integration settings display.

Set up Google Tag Manager

Google tag manager isn't supported in iframe embeds.

  1. Next to Google tag manager, select the toggle to enable the setting.
  2. More options display.

  3. Configure the following:
    • Container ID - Enter the container ID shown on the Admin tab of your Google Tag Manager dashboard. It's formatted as GTM-XXXXXX. To find your container ID, go to https://tagmanager.google.com/.
    • Track player custom events - Enter a comma-separated list of events to track, with no spaces. Use custom events to track specific events from the full list of player custom events. For UI events, replace {namespace} at the start of the event name with playkit-ui. For example, {namespace}-userclickedmute becomes playkit-ui-userclickedmute.
    • Track all core events - Select to have the player send all core events, including ad events.
    • Track all UI events - Select to have the player send all UI events.
    • Track all playlist events - Select to have the player send all playlist events.
    • Track all core cast events - Select to have the player send all cast events.
  4. Select Save at the top right of the settings page.

Example

The following settings track all core, playlist, and cast events, plus two UI events: playkit-ui-userclickedmute and playkit-ui-userchangedvolume.

Was this article helpful?
Thank you for your feedback!
User Icon

Thank you! Your comment has been submitted.

In this article
Related articles
Back to top