To the average user these might all be the same, but after a few headaches induced by these three, I can promise you they are different!
We often see conflicting, mis-firing and broken versions of Google Analytics (GA), Global Site Tag (Gtag), and Google Tag Manager (GTM) implemented on sites, but what do they do and which ones are preferred?
This is the go-to for tracking visits and hits on your site. It is a web-based service that collects data from your visitors as they browse and interact with your site. There have been a few iterations including classic, universal, and GA4 – but for ease we’ll just call these Google Analytics.
Google Global Site Tag
This is a relatively new way to connect your site to your Google Analytics. Rather than installing the traditional GA script onto your site via the header, Global Site Tag is basically one script that communicates between your GA and all other services such as ads, remarketing, etc.
Google Tag Manager
Which Should I Have Installed?
This is where it gets a little complicated. You essentially want the GA script to fire once per page and then use other scripts to do your further tracking.
This might mean just a GA script, just a GTM script, just Gtag or multiple. Either way, the output should be that your GA script is firing once, and your custom scripts are firing as needed.
So, if you’re using GTM or Gtag to fire your GA script, you don’t want a hardcoded GA script. We’ve seen this a few times, particularly when transitioning from one to another and the old code isn’t removed. A tell-tale sign of this is a sharp jump in your pages/session and a drop in bounce rates in GA.
Should I Switch?
Moving over to GTM or Gtag from the old GA script is a good idea. Personally, GTM is the preferred method, but it has quite a learning curve.
GTM is probably better for agencies or when numerous people use it as it relies on setting up custom triggers in a web interface.