Share on facebook
Share on twitter
Share on linkedin
Share on email

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

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

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!
Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn
Share on email
Email

Other Articles You Will Enjoy

Don’t Just Measure Data … Understand Your Consumers: Top Things to Know from InfoTrust + Google’s Virtual Retail Summit

Don’t Just Measure Data … Understand Your Consumers: Top Things to Know from InfoTrust + Google’s Virtual Retail Summit

Retail marketers and analytics professionals across the globe face a unique set of daily challenges. As a leader in the retail/eCommerce space (with partnerships…

Google Analytics 4 Update: February 2022 (Part 2) – InfoTrust’s Strategic Recommendation: Transitioning to Google Analytics 4

Google Analytics 4 Update: February 2022 (Part 2) – InfoTrust’s Strategic Recommendation: Transitioning to Google Analytics 4

As a follow-up to our Google Analytics 4 (GA4) February 2022 update, in which we cover some key features of GA4 and address whether…

Google Analytics 4 Privacy Updates: What They Mean For Your Business

Google Analytics 4 Privacy Updates: What They Mean For Your Business

2022 has been a busy year for Google Analytics (GA) in the domain of privacy. In February, the Austrian DPA announced the use of…

What I Learned about Digital Analytics from Buying a House

What I Learned about Digital Analytics from Buying a House

I honestly wasn’t sure if I could even buy a house, especially since I didn’t know where to begin—but to my surprise, my career…

Why Your Healthcare Org Should Upgrade to Google Analytics 4 Right Now

Why Your Healthcare Org Should Upgrade to Google Analytics 4 Right Now

You probably saw the news, but in case you’ve been blissfully unaware, Google just announced that their beloved Universal Analytics (UA) will sunset on…

Cookieless Tracking: What It Is and How It Will Optimize Your Marketing Analytics Strategy

Cookieless Tracking: What It Is and How It Will Optimize Your Marketing Analytics Strategy

Get the full infographic In today’s increasingly privacy-centric marketing environment, first-party data has never been more important nor more difficult to collect. A recent…

5 Benefits of Using Google Firebase

5 Benefits of Using Google Firebase

What Is Firebase? Firebase is Google’s Backend-as-a-Service (BAAS) solution for mobile app development. Originally, it was developed and launched in 2011 by Firebase Inc….

Google Analytics 4 Reporting: Locating Reports

Google Analytics 4 Reporting: Locating Reports

If you’re thinking the Google Analytics 4 (GA4) reporting interface has changed quite a bit, you are not alone. Upon initial login the interface…

Is Google Analytics Illegal? Part Deux

Is Google Analytics Illegal? Part Deux

**Important – This is not legal counsel, the materials provided are for informational purposes only and not for the purpose of providing legal advice….

Get Your Assessment

  • This field is for validation purposes and should be left unchanged.

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.

Our website uses cookies and may collect user information to provide a good experience. Read our Privacy Policy here.

Leave Us A Review

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