Download the ebook now

Thankyou for sharing the details. Here is your ebook on "Top questions people ask about Server Side Tagging".
Oops! Something went wrong while submitting the form.
GTM

How To Setup YouTube Video Tracking Via GTM

April 5, 2023
Google Analytics 4 Migration Via Tagmate

Google Tag Manager (GTM) is a must-have tool for anyone with a website as it enables Google Analytics to function optimally. GTM and Google Analytics 4 help them make sense of what is happening on their site and what they need to do in terms of UI, marketing efforts, and their business at large.


While Google has the largest market share among search engines, when it comes to video search engines, YouTube is the market leader and embedding YouTube videos on websites helps both SEO and UX. Having said that, it is noteworthy that many marketers struggle to use GTM for video tracking. 


In this article, I will cover how to track video views, pauses, and completions using GTM.


Let’s begin:

Why Track Video Views?

(Image Credits: Wyzowl)

Video is unarguably among the most popular forms of online content even for business purposes. According to a recent study by Wyzowl, 91% of businesses use video as a marketing tool, and 87% of video marketers report that video has increased dwell time on their website.

With video being such an effective way to engage with website visitors, it's incredibly important to track how users interact with video content to unravel insights and optimize the overall user experience.

Step-By-Step Process To Track YouTube Videos Using GTM

In this section, we will go through the process of setting up YouTube video tracking with the help of Google Tag Manager.

Let’s begin:

Step 1: Go To GTM And Create The ‘YouTube Video’ Trigger

Go to your Google Tag Manager account and select the container where you want to create the trigger for tracking YouTube videos. 

Navigate to Triggers and click on the ‘New’ button.

Create a new trigger for Youtube tracking in GTM

Now, click on ‘Choose a trigger type to begin setup…’ in the new window 

Trigger configuration for tracking Youtube videos via GTM

Scroll down and select the ‘YouTube Video’ trigger

Selecting Youtube video trigger for tracking Youtube video via GTM

You can also track the video progress by checking its respective box and entering the percentage values separated by commas.

Enable Add JavaScript API support to all Youtube videos for increasing the odds of proper tracking

Hit on Save

Step 2: Enable Configure Built-in Variables

Navigate to the Variables tab.

Click on ‘Configure’ button

Configuration of built-in variables for Youtube video tracking on GTM

Scroll down to the videos section and check all boxes

Check all the box under videos while configuring built-in variables to track Youtube videos via GTM

Step 3: Create a new Google Analytics 4 Tag

Go to the ‘Trigger’ tab and click on ‘New’.

Creating a new Google Analytics 4 tag to track embedded Youtube videos on your website via GTM

Now, click on ‘Choose a tag type to begin setup…’ under Tag Configuration

Configuration of a tag to set up tracking of embedded Youtube video on your website via GTM

Click on Google Analytics: GA 4 Event

Configuration of a tag to set up tracking of embedded Youtube video on your website via GTM

Next, enter the details including Event Name and Event Parameters:

Configuration of a tag to set up tracking of embedded Youtube video on your website via GTM

Hit the ‘Save’ button

It is recommended to use the same naming convention as Enhanced Measurement’s video tracking and choose only the event parameters that are relevant to your aims.

In the triggering section, select the previously created YouTube Video Trigger

Step 4: Testing

Go to ‘Preview’ Mode and locate the video events. You can find if the Google Analytics Tag is fired by clicking on any one of them. 

Testing of a tag to set up tracking of embedded Youtube video on your website via GTM

You can verify it using Google Analytics 4’s Debug View

Wrap Up

Tracking video views, pauses, and completions can provide valuable insights into how users are interacting with your website's video content. It also gives you an understanding of how well your video content serves their intention to know about your business/topic.

By using GTM to track these events, you can gain pinpointed insights into which videos are most engaging, which parts of a video users are re-watching, and more. I hope that this video helps you track YouTube videos like a pro!

Want to do more with your website but don’t have time? You may use Tagmate, a no code-low code (NCLC) SaaS tool that makes web tagging simpler and quicker with powerful automation and privacy compliant logics. 

Try Tagmate now!

Tags
EBOOK
Top questions people ask about Server Side Tagging
Download for Free NOW!
Stay a step ahead.
Get served hottest tracking posts from industry-experts every week.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Ready to Get Started
Stay Updated
Subscribe to get the latest news, industry trends, blog posts, and updates.

Set up tags in seconds.
Not days.

Start Free Trial