3 Reasons You Can’t Trust Automatic Tracking in Google Analytics 4

3 Reasons You Can’t Trust Automatic Tracking in Google Analytics 4
Estimated Reading Time: 3 minutes

Google Analytics 4 (GA4) has added many new features. One of the most important is called “Enhanced Measurement”. This will automatically track offsite links, file downloads, scrolling, and video engagement on any embedded YouTube videos on your site. Gone are the days of needing to track these events manually.

At first glance, this looks like an excellent new feature in Google Analytics. Things that in the past required setting up tagging in Tag Manager (or using custom JQuery code) are now done automatically. Your data will be enhanced, which will only help your analyses. However, there are some issues with this automated approach that need to be explored.

One of these issues has to do with how YouTube videos are tracked. It is not as simple as it seems. For the automatic tracking to work, YouTube videos require a special flag to be set in your embed code. Without this flag, Google Analytics cannot track these videos. The flag in question is enablejsapi=true. So for example, your YouTube embed may look like the one below:

Note the “enablejsapi=true” flag. By adding this flag, Google Analytics 4 can automatically track interactions on these videos. Problem solved, right? Unfortunately, there are some issues with this approach.

For every video embedded on your site, you will have to add this flag. That means your content editors will need to be trained in adding this flag, and/or your CMS will need to be modified to add this flag to every embedded YouTube video. Furthermore, any existing videos on your site will need to have this flag added to be tracked. Seems like a lot of work, right? If only there was an easier, more scalable way to track YouTube videos.

But there is! Simply use Google Tag Manager. Instead of using the built-in automatic tracking, we will set up a YouTube trigger and GA4 event tag. When you set up the YouTube trigger there is an option to automatically add the JSAPI flag to every video:

With this trigger you no longer need to worry about adding the enablejsapi flag to every video manually—the trigger will do it automatically.

Along with this trigger, you need to set up a GA4 event tag, as well as turn on the default video parameters. Pass these parameters in with your event tag using the trigger shown above to fire the event. Another benefit of this approach? You can pass any other metadata along with the video that you desire. For example, user IDs, demographic information, etc. These would not be captured by the automatic tracking listed before.

With this approach you can safely track your YouTube videos without needing to manually add the enablejsapi flag to every new and existing video on your site. Your content developers will thank you for not increasing their workload.

Need a little more help with your tagging approach?

Contact us at InfoTrust and we would be happy to set up a tagging plan with you!

Author

  • Ben Brooks

    Ben Brooks is a Senior Lead Digital Analytics consultant at InfoTrust. In this role, he works with clients to understand their analytics needs and concerns. He then works with developers to implement analytics to support these needs, and end users to understand and visualize the results of said analytics. In his free time, he can be found taking photographs of landscapes and transportation subjects, producing short videos, reading, and walking his miniature dachshund Bella. Ben lives in the Seattle, Washington area.

Facebook
Twitter
LinkedIn
Email
Originally Published: April 27, 2022

Subscribe To Our Newsletter

April 27, 2022

Other Articles You Will Enjoy

Tracking User Behavior with Events in Google Analytics 4: Examples and Use Cases

Tracking User Behavior with Events in Google Analytics 4: Examples and Use Cases

So you’ve created your Google Analytics 4 (GA4) properties, created your data stream(s), and followed all the necessary steps to configure your property. Now…

5-minute read
Is It Time to Upgrade? 4 Signs Your Organization Needs Google Analytics 4 360

Is It Time to Upgrade? 4 Signs Your Organization Needs Google Analytics 4 360

As VP of Partnerships at InfoTrust, I’ve had the opportunity to talk with hundreds of decision-makers about their interest in upgrading to Google Analytics…

4-minute read
Google Tag Best Practices for Google Analytics 4

Google Tag Best Practices for Google Analytics 4

After collaborating with several of my colleagues at InfoTrust including Bryan Lamb, Head of Capabilities, Corey Chapman, Senior Tag Management Engineer, Chinonso Emma-Ebere, Tech…

4-minute read
Leveraging Custom Dimensions and Metrics in Google Analytics 4 for Content Performance Measurement: Best Practices and Real-World Examples

Leveraging Custom Dimensions and Metrics in Google Analytics 4 for Content Performance Measurement: Best Practices and Real-World Examples

In today’s digital landscape where content reigns supreme, understanding how your audience interacts with your content is paramount for success. For news and media…

5-minute read
Best Practices for Leveraging Custom Insights in Google Analytics 4

Best Practices for Leveraging Custom Insights in Google Analytics 4

What Are Custom Insights? Google Analytics 4 (GA4) offers Custom Insights to detect changes in your data that are important to your team specifically….

3-minute read
Leveraging Attribution Models in Google Analytics 4 to Improve Your Marketing Strategy: Tips and Best Practices

Leveraging Attribution Models in Google Analytics 4 to Improve Your Marketing Strategy: Tips and Best Practices

In the dynamic landscape of digital marketing, understanding the customer journey is crucial for optimizing strategies and maximizing ROI. Google Analytics 4 (GA4) introduces…

5-minute read
How to Integrate Google Analytics 4 with BigQuery for Enhanced Data Analysis and Reporting

How to Integrate Google Analytics 4 with BigQuery for Enhanced Data Analysis and Reporting

Has your business found that its reporting needs require advanced analysis of your analytics data beyond what is practical in the Google Analytics 4…

4-minute read
App Install Attribution in Google Analytics 4: What You Need to Know

App Install Attribution in Google Analytics 4: What You Need to Know

App install attribution in Google Analytics for Firebase (GA4) is a feature that helps you understand how users discover and install your app. It…

6-minute read
Advanced Analysis Techniques in Google Analytics 4: How to Use AI-Powered Insights and Predictive Analytics for Effective Marketing

Advanced Analysis Techniques in Google Analytics 4: How to Use AI-Powered Insights and Predictive Analytics for Effective Marketing

AI-powered insights and predictive analytics are revolutionary tools reshaping the modern marketing landscape. These advanced analytics techniques, particularly prominent in Google Analytics 4 (GA4),…

8-minute read

Get Your Assessment

Thank you! We will be in touch with your results soon.
{{ field.placeholder }}
{{ option.name }}

Talk To Us

Talk To Us

Receive Book Updates

Fill out this form to receive email announcements about Crawl, Walk, Run: Advancing Analytics Maturity with Google Marketing Platform. This includes pre-sale dates, official publishing dates, and more.

Search InfoTrust

Leave Us A Review

Leave a review and let us know how we’re doing. Only actual clients, please.