video_progress
Enhanced measurementwebAutomatically triggered when the video progresses past 10%, 25%, 50%, and 75% duration time 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.
Parameters (7)
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| 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_progress', {
video_current_time: '...',
video_duration: '...',
video_percent: '...',
video_provider: '...',
});GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'video_progress',
video_current_time: '...',
video_duration: '...',
video_percent: '...',
video_provider: '...',
});