Enable player event tracking with Google Tag Manager


About

Google Tag Manager (GTM) lets you manage and deploy marketing and analytics tags on your website without editing code. Enabling GTM on the Kaltura Player or standalone Audio Player automatically pushes player events directly to the GTM dataLayer, making it easy to route playback analytics, engagement metrics, and interaction events to any connected analytics or ad-tracking service.

VOD Audio

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, toggle the switch to the On position.
  2. Configuration options display.

  3. In the Container ID field, 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/.
  4. Choose the events you want to track using one of the following methods: 
    • Track player custom events - Enter the specific event names you want to track, separated by commas
    • Select from the preconfigured event sets:
      • Track all core events (includes ads 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. (Video players only; this setting does not display for Audio Players.)
  5. Click Save in the top-right corner of the Studio to apply your changes.

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