TagSpy

video_start

Enhanced measurementweb

Automatically triggered when the video starts playing For embedded YouTube videos that have JS API support enabled. Collected by default via enhanced measurement.

Platforms
web
When it fires
Collected automatically; no code needed.
Official docs

Parameters (7)

ParameterTypeRequiredDescriptionExample
video_current_time--The current timestamp of the video where the viewer is at (in seconds)-
video_duration--Video duration in seconds.-
video_percent--The threshold of the video.-
video_provider--The source of the video (e.g., 'youtube').-
video_title--The title of the video.-
video_url--The url of the video.-
visible--Returns '1' if the player is visible on the screen-

Example

gtag.js
gtag('event', 'video_start', {
  video_current_time: '...',
  video_duration: '...',
  video_percent: '...',
  video_provider: '...',
});
GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'video_start',
  video_current_time: '...',
  video_duration: '...',
  video_percent: '...',
  video_provider: '...',
});

Also see