Google Tag Manager for beginners.
Every digital marketer needs to know GTM. These four guides take you from installing it to tracking conversions for Google Ads and Meta Ads, step by step, with screenshots.
What is Google Tag Manager?
If this is your first time hearing about it, start here.
It is a delivery system for tracking codes
Your website needs tracking codes to send data to platforms like Google Analytics, Google Ads and Meta. GTM lets you manage all these codes from one dashboard instead of editing your website every time.
You install GTM once, then manage everything from its dashboard
You add a small piece of GTM code to your website one time. After that, you add, edit or remove tracking codes from GTM's web interface. No need to touch the website code again for most changes.
It reduces your dependence on developers
Without GTM, every small tracking change means asking a developer to edit the website. With GTM, marketers can handle most tracking changes themselves. You still need a developer for the initial GTM installation and some advanced setups.
It is free
Google Tag Manager is completely free. The platforms you connect (Google Ads, Meta Ads) have their own costs, but GTM itself costs nothing.
Three things to understand in GTM.
Tag
The tracking code you want to run.
Trigger
When should this tag fire?
Variable
Extra details about the action.
Why marketers use it.
| Without GTM | With GTM |
|---|---|
| Ask a developer to add each tracking code to the website | Add tracking codes yourself from GTM's dashboard |
| Wait for the developer every time you need a small change | Make most changes in minutes, without touching the website |
| Multiple tracking codes scattered in the website code | All tracking managed in one place |
| Hard to test if tracking is working correctly | GTM's Preview Mode lets you test before publishing |
| Risk of breaking the website if code is added wrong | Mistakes in GTM don't break your website, just the tracking |
Pick a guide and follow along.
Start with Guide 1. The others build on it.
How to set up Google Tag Manager on your website
Create your GTM account and container, install the code on your website, and verify it is working. This is the first step for everything else.
Read the guide 02 Easiest tagHow to set up Google Analytics (GA4) with GTM
Connect GA4 to your website through GTM. Your first tag: one setup and you get page views, scrolls and outbound clicks tracked automatically.
Read the guide 03 For Google AdsHow to set up Google Ads conversion tracking with GTM
Track which Google Ads clicks turn into enquiries. Set up the Conversion Linker, create a conversion action, and test it with Tag Assistant.
Read the guide 04 For Meta AdsHow to set up Meta Pixel with GTM
Install the Meta Pixel through GTM to track website visitors from Facebook and Instagram ads. Set up PageView and custom events like Lead.
Read the guideWhich guides are for you?
| If you are… | You need |
|---|---|
| A beginner learning digital marketing | Guide 1 + Guide 2 |
| Running Google Ads | Guide 1 + Guide 3 |
| Running Meta (Facebook/Instagram) Ads | Guide 1 + Guide 4 |
| Running both Google Ads and Meta Ads | All four guides, in order |
| An SEO tracking organic conversions | Guide 1 + Guide 2 (custom events section) |
Common doubts.
What is Google Tag Manager?
Google Tag Manager (GTM) is a free tool from Google that lets you manage tracking codes (called tags) on your website without editing the website code every time. You install GTM once, and then add or change tracking for Google Analytics, Google Ads, Meta Pixel and other platforms from GTM's dashboard.
Is Google Tag Manager free?
Yes. Google Tag Manager is completely free to use. The platforms you connect through it, such as Google Ads or Meta Ads, have their own costs, but GTM itself costs nothing.
Do I need GTM if I already have Google Analytics?
GA4 can be installed directly without GTM, and it tracks basic things like page views, scrolls and outbound clicks automatically with Enhanced Measurement. But GTM makes it easier to add custom event tracking (like form submissions or button clicks) and to manage tags for multiple platforms (Google Ads, Meta Pixel) from one place. For a simple website with only GA4, you may not need GTM. For anything with paid ads or custom tracking, GTM saves time.
What is the difference between a tag, a trigger and a variable in GTM?
A tag is the tracking code you want to run, like sending an event to Google Analytics. A trigger is the condition that decides when the tag runs, like when someone clicks a button. A variable is extra information about that action, like which page the click happened on or what link was clicked.
Should I install GTM before or after Google Analytics?
If you plan to use GTM, set it up first, then add Google Analytics as a tag inside GTM. That way all your tracking goes through one system. If you already installed GA4 directly on your site, you can switch to GTM later, but remove the direct GA4 code first so you don't double-count.
Related reading
- Google Search Console for beginners — the reports to check after GA4 is running
- WhatsApp ads vs lead forms — a case study where conversion tracking mattered
- Meta Ads service — how I set up and manage Meta Ads for clients
- Google Ads service — how I manage Google Ads campaigns