Google Tag Manager (GTM) is a free tool that lets you add, edit and control tracking tags on your website from one dashboard. Instead of pasting separate scripts for GA4, Google Ads, the Meta Pixel, LinkedIn and so on, you install the GTM container once and manage the rest inside it.
Key concepts
- Tags: the code that sends data, such as a GA4 event or a Google Ads conversion.
- Triggers: the conditions that fire a tag, such as a form submission or a page view.
- Variables: values that tags and triggers use, such as an order value or button text.
- Data layer: structured information the website passes to GTM, such as purchase details.
Why use it
- marketing changes do not wait for a developer release
- one place to see every tracking tool on the site
- built-in preview and debug mode
- consent settings applied consistently to all tags (see Consent Mode v2)
- version history so mistakes can be rolled back
Server-side GTM
A server-side container runs on your own cloud server rather than in the visitor’s browser. It forms the basis of server-side tracking, improving data accuracy and control.
A word of caution
GTM makes it easy to add tags, which also makes it easy to slow a site down. Audit and remove unused tags regularly.
Related terms
GA4
GA4, or Google Analytics 4, is Google's free analytics platform. It tracks visits, traffic sources and conversions using events rather than sessions.
Server-side tracking
Server-side tracking sends analytics and ad conversion data from your own server rather than the visitor's browser, improving accuracy, speed and control.
Consent Mode v2
Consent Mode v2 is Google's framework that passes each visitor's cookie choices to GA4 and Google Ads, required for UK ad personalisation and remarketing.
Meta Pixel
The Meta Pixel is a tracking code from Meta that records actions on your website so Facebook and Instagram ads can be measured, optimised and retargeted.
Enhanced conversions
Enhanced conversions improve Google Ads tracking by sending hashed customer details, like an email address, to match conversions to ad clicks more accurately.