Google Tag Manager has long provided the ability to use Variable for direct (predefined by YouTube) video and scroll interactions1.
You can find support requests regarding Google Tag Manager here.
Now you can utilize the following data from embedded videos on your pages: Video Current Time, Video Duration, Video Percent, Video Provider, Video Status, Video Title, Video URL, and Video Visible.
Google Tag Manager Video Events
Google Tag Manager enables tracking of user interactions with embedded videos, including popular video services such as YouTube.
Google Analytics (Universal)
// Analytics.js
ga('send', 'event', 'Vimeo', 'Started video', 'https://player.vimeo.com/video/22439234', undefined, {'nonInteraction': 1});
ga('send', 'event', 'Vimeo', 'Paused video', 'https://player.vimeo.com/video/22439234', undefined, {'nonInteraction': 1});
// gtag.js / UA & GA4
gtag('event', 'vimeo', {
'event_category': 'Started video'
'event_label': 'https://player.vimeo.com/video/22439234',
});
gtag('event', 'vimeo', {
'event_category': 'Paused video'
'event_label': 'https://player.vimeo.com/video/22439234',
});
dataLayer.push({'event': 'Vimeo', 'eventCategory': 'Vimeo', 'eventAction': 'Started video', 'eventLabel': 'https://player.vimeo.com/video/22439234', 'eventValue': undefined, 'eventNonInteraction': true});
dataLayer.push({'event': 'Vimeo', 'eventCategory': 'Vimeo', 'eventAction': 'Paused video', 'eventLabel': 'https://player.vimeo.com/video/22439234', 'eventValue': undefined, 'eventNonInteraction': true});
You can access information such as video start, pause, resume, completion, skip, and viewing duration ratios, and use them as variables directly with Google Analytics or Google Tag Manager.