How to Track Video Views in Google Analytics

Cody Schneider9 min read

Putting video on your website without tracking its performance is like screening a movie to an empty theater. You know you put in the work, but you have no idea if anyone is watching, how they're reacting, or if they're sticking around for the good parts. This guide will show you exactly how to track your video views in Google Analytics 4, moving from a simple one-click setup to a more powerful, custom implementation using Google Tag Manager.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Why You Absolutely Need to Track Video Views

Before jumping into the "how," let's quickly cover the "why." Tracking video views isn't just about seeing a number go up. It provides concrete business insights that can shape your content and marketing strategy.

  • Measure True Engagement: Page views are one thing, but knowing someone watched 75% of your product demo video is a powerful engagement signal. It tells you which content truly captures attention.
  • Improve Your Content: Noticing a huge drop-off 30 seconds into all your videos? Maybe your intros are too long. Seeing high completion rates on "how-to" videos? Make more of them. The data helps you stop guessing what works and start knowing.
  • Connect Content to Conversions: With proper tracking, you can start to answer critical questions like, "Do people who watch our testimonial videos convert at a higher rate?" This helps prove the ROI of your video production efforts.
  • Understand Your Audience: Are users on mobile watching shorter videos? Do visitors from organic search watch more of a technical deep-dive? These analytics help you tailor content to your audience segments.

The Quick Setup: GA4 Enhanced Measurement

Google Analytics 4 has a built-in feature called "Enhanced measurement" that automatically captures a variety of user interactions, including video plays. For many, this is the perfect starting point.

This method works specifically for YouTube videos embedded on your website, as long as they have JavaScript API support enabled in the embed code - more on that in a moment. It automatically tracks three key events:

  • video_start: When a user clicks play for the first time.
  • video_progress: When a viewer passes the 10%, 25%, 50%, and 75% milestones of the video's duration.
  • video_complete: When a viewer reaches the end of the video.

How to Check if Enhanced Measurement for Video is On

For most new GA4 properties, this feature is enabled by default. Here's how to double-check:

  1. Navigate to your GA4 account and click on Admin (the gear icon) in the bottom-left corner.
  2. In the Property column, click on Data Streams.
  3. Select your web data stream.
  4. Under the Events section, you'll see a heading called Enhanced measurement. Ensure the toggle is on.
  5. Click the gear icon on the right side of that line to see the specific events being tracked. Make sure "Video engagement" is toggled on.
GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

The Important Catch: The enablejsapi Parameter

Enhanced Measurement is smart, but it's not magic. For GA4 to "see" your embedded YouTube videos, you must add a simple parameter to the end of your YouTube video's URL within your website's embed code.

Look for the src attribute in your YouTube iframe code and add ?enablejsapi=1 to the end of the URL. If the URL already has a question mark (?) with other parameters, just add &enablejsapi=1 instead.

Before:

<iframe src="https://www.youtube.com/embed/your_video_id"></iframe>

After:

<iframe src="https://www.youtube.com/embed/your_video_id?enablejsapi=1"></iframe>

Without this tiny piece of code, GA4 has no way to listen for video interactions, and the feature will collect no data.

Limitations of Enhanced Measurement

While incredibly convenient, this default method has its limits:

  • It only works for YouTube. If you use Vimeo, Wistia, or host your own videos, it won't track a single play.
  • It offers limited data. You can see that a video was played, but it's harder to see which specific video was played without some configuration.
  • It provides no control. You can't customize the progress percentages or fire events for other interactions like pausing or seeking.

If you need more control, detail, or use platforms other than YouTube, you'll need Google Tag Manager.

The Custom Setup: Tracking Videos with Google Tag Manager

Google Tag Manager (GTM) gives you full control over your event tracking. It acts as a middleman between your website and Google Analytics, allowing you to specify exactly what to track and when. This setup gives you richer, more useful data.

Step 1: Enable GTM's Built-in Video Variables

Variables in GTM are placeholders for data that gets filled in by user actions. First, you need to turn on the ones related to video.

  1. In your GTM container, go to the Variables section in the left-hand menu.
  2. Under Built-In Variables, click Configure.
  3. A list will slide out. Scroll down to the Video section and check all the boxes: Video Provider, Video Status, Video URL, Video Title, Video Duration, Video Current Time, and Video Percent.

Now, GTM will be able to capture details about your videos whenever an interaction occurs.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Step 2: Create a YouTube Video Trigger

Next, you'll tell GTM when to listen for video events. A trigger is a rule that says, "When X happens, fire this tag."

  1. Go to the Triggers section and click New.
  2. Click on Trigger Configuration and choose the YouTube Video trigger type.
  3. Under Capture, check the boxes for Start, Complete, and Progress.
  4. For Progress, enter the percentages you want to track. A common setup is 25,50,75.
  5. This trigger will fire on all videos by default. You can leave it that way or restrict it to fire on specific pages if needed.
  6. Name your trigger (e.g., "Trigger - YouTube Video Interaction") and save it.

Step 3: Create the GA4 Event Tag

This is where everything comes together. You'll create a tag that takes the information from the trigger and variables and sends it to Google Analytics 4 as a neatly packaged event.

  1. Go to Tags and click New.
  2. Click on Tag Configuration and select Google Analytics: GA4 Event.
  3. Under Configuration Tag, select your primary GA4 configuration tag (the one you use to send page views).
  4. For Event Name, give it a clear, consistent name like video_interaction. Using snake_case (all lowercase with underscores) is a standard convention.
  5. Now for the most important part: Event Parameters. This is how you send all the rich context from the variables you enabled earlier. Click Add Parameter for each line:
  6. Finally, under Triggering, select the "Trigger - YouTube Video Interaction" you created in a previous step.
  7. Name your tag something descriptive (e.g., "GA4 Event - Video Interaction") and click Save.

Step 4: Test in Preview Mode and Publish

Never publish GTM changes without testing! GTM's Preview mode is your invaluable best friend here.

  1. Click the Preview button in the top-right of GTM.
  2. A new window will pop up. Enter your website's URL and click Connect. Your website will open in a new tab with the Tag Assistant debugger connected.
  3. On your website, play an embedded YouTube video and watch it past a few of the progress milestones (e.g., 25%).
  4. Back in the Tag Assistant tab, you should see YouTube Video events showing up on the left-hand log. Click on one of them.
  5. Check to see that your "GA4 Event - Video Interaction" tag fired successfully. You can then click on the tag itself and go to the Variables tab to confirm that the video_title, video_percent, etc., were all captured correctly.
  6. For final confirmation, open your GA4 account and go to Admin > DebugView. You should see your video_interaction events arriving in real-time.

If everything looks correct, return to GTM, exit Preview mode, and click the Submit button to publish your changes live.

How to See and Analyze Your Video Data in GA4

Collecting data is only half the battle. Now you need to make it usable in your reports. By default, GA4 shows you event names but hides the extra parameter data. To fix this, you need to register them as custom dimensions.

Step 1: Register Your Parameters as Custom Dimensions

  1. In GA4, go to Admin > Custom Definitions.
  2. Under the Custom dimensions tab, click Create custom dimensions.
  3. You'll need to create one for each event parameter you set up in GTM. Let's do video_title:
  4. Save it, and repeat the process for your other parameters (video_url, video_percent_watched, video_status).

Note: It can take 24-48 hours for data to start showing up for new custom dimensions in your regular reports, so be patient.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Step 2: Build a Custom Exploration Report

The best place to dig into your new video data is in the Explore section of GA4. This tool lets you drag and drop dimensions and metrics to build custom reports.

  1. Go to Explore in the left menu and click to start a Blank exploration.
  2. Name your report something like "Video Engagement Analysis."
  3. Click the + sign next to Dimensions, search for and import:
  4. Click the + next to Metrics and import:
  5. Drag Video Title to the Rows section.
  6. Drag Event count to the Values section.
  7. Drag Video Percent Watched to the Columns section.
  8. Finally, under Filters at the bottom, drag in the Event name dimension so you can specify is exactly video_interaction.

The resulting table shows plays for each video ('start'), how much of a percentage the user progresses through the video ('25/50/75'), and eventually the number of completes your video receives in total ('100'). This helps to analyze user drop-off trends, engagement spikes, and the overall effect of any of your videos on a viewer within your site.

Final Thoughts

Moving from zero video tracking to a custom GTM setup gives you an incredibly detailed view of how users interact with your most engaging content. Whether you use GA4's simple Enhanced Measurement or create a robust GTM implementation, collecting this data is the first step toward making smarter decisions and proving the value of your video marketing efforts.

Getting your data pipeline set up correctly is crucial. But once that data starts flowing into Google Analytics, the challenge shifts to analysis — something that can be repetitive and slow. Instead of building manual reports repeatedly, we designed Graphed to do the work for you. You connect your data sources once, then use natural language to ask questions like, "Compare video start vs. video complete events across all marketing videos" or "Create a dashboard showing our top 10 most viewed videos for last quarter alongside user signups." We turn the time-consuming process of reporting into a simple, 30-second task so you can find the answers you need and get back to your day.

Related Articles