Google Tag Manager (GTM) or Global Site Tag (gtag.js)?

Search for a command to run...

No comments yet. Be the first to comment.
What you need to know
Is My Site Being Found or Referenced in ChatGPT?
Google offers a suite of powerful tools that, while distinct in their primary functions, often overlap in the metrics and dimensions they collect or can be integrated to provide a more holistic view of your digital presence. The specific metrics and ...
A must-read from a16z that sheds light on the evolving landscape of digital marketing. In the age of ChatGPT, Perplexity, and Claude, Generative Engine Optimization (GEO) is positioned to become the new playbook for brand visibility, signalling that ...
Are you a Shopify store owner or marketing professional struggling with fragmented data and missed attribution? It's time to unlock the full power of your marketing efforts with a truly robust and future-proof tracking solution! I am offering a com...
Google Tag Manager is a robust and full-featured tag management system, which supports Google and 3rd party tags(Facebook conversion pixels or heatmapping tool tags).
In 2018, Google updated their tracking code from analytics.js to gtag.js (known as the Global Site Tag)
Difference between Universal Analytics (Analytics.js) And Global Site Tag (gtag.js)
gtag.js is a script that allows you to send data to only Google Marketing Platform (Google Ads, Campaign Manager, Display & Video 360, Search Ads 360, and Google Analytics) It will not work with non-google products like Facebook conversion pixels or heatmapping tool tags(the so-called "3rd party tags")

Your gtag.js snippet would look like this if you’re using Google Analytics and Google AdWords together
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-1234567-8');
gtag('config', 'AW-1234567-8');
</script>
For product-specific documentation related to gtag.js, refer to the following:
If you are a website owner that do not deal with code, you do not need to worry about. Hire me, a marketing analytics developer to deal with this.