How do I track video interactions (like play and pause) in GA4?
Applies to: Google Analytics 4 (GA4)
Last updated: May 2025
Problem
You want to track user engagement with embedded videos—such as when users play, pause, or complete a video—to better understand content performance and user interest.
Solution
GA4 doesn’t track video interactions by default. To track video plays, pauses, and completions, you need to use Google Tag Manager (GTM) and set up custom events based on your video platform (e.g., YouTube).
Step-by-Step Guide for Tracking YouTube Videos via GTM
Step 1: Enable Built-In Video Variables in GTM
- Go to https://tagmanager.google.com
- Open your GTM container
- Go to Variables
- Click Configure under Built-In Variables
- Enable all Video variables:
- Video Title
- Video Provider
- Video Status
- Video URL
- Video Percent
- Video Current Time
- Video Duration
Step 2: Create a YouTube Video Trigger
- Go to Triggers > New
- Choose Trigger Type: YouTube Video
- Configure:
- Trigger on: All Videos or specific videos
- Capture:
- Start
- Complete
- Pause
- Seek
- Buffer
- Progress (optional: 10%, 25%, 50%, 75%, 100%)
- Name the trigger (e.g., “YouTube Video Events”) and save
Step 3: Create a GA4 Event Tag for Video Interactions
- Go to Tags > New
- Choose Tag Type: GA4 Event
- Set your configuration tag or measurement ID
- Set:
- Event name:
video_event - Event parameters (click “Add Row” to include the following):
- Event name:
| Parameter Name | Value |
|---|---|
| video_title | {{Video Title}} |
| video_status | {{Video Status}} |
| video_percent | {{Video Percent}} |
| video_url | {{Video URL}} |
- Attach the YouTube Video Trigger from Step 2
- Save and publish
Step 4: Test in Preview Mode
- Click Preview in GTM
- Interact with your video (play, pause, complete)
- Check if the
video_eventfires correctly - Use GA4 DebugView to confirm the event is received
Optional: Register Parameters in GA4
- Go to Admin > Custom Definitions > Create Custom Dimension
- Register any custom parameters (e.g.,
video_title,video_status) so they appear in reports and Explorations
Viewing Video Data in GA4
- Go to Reports > Engagement > Events
- Find the
video_event - Use Explorations to break down events by title, status, or percentage watched
Notes
- This approach is specific to YouTube videos embedded with the JavaScript API
- For other platforms (e.g., Vimeo, Wistia), you’ll need a different integration or developer support
- You can rename
video_eventto something more specific (e.g.,video_play,video_pause) using separate GTM tags if needed





