Key takeaways
- Tag Manager is free and lets you add and change tracking codes without editing your website each time.
- Three building blocks: a tag (what to send), a trigger (when to send it) and variables (details like which link was clicked).
- Track the actions that bring business: WhatsApp clicks, phone number taps and form submissions. Then mark them as key events in GA4.
- Always test in Preview mode before publishing. It shows exactly which tags fired on each click.
- Keep ownership. Create the account under your business's Google account and add agencies as users.
What is Google Tag Manager? Google Tag Manager (GTM) is a free tool that holds all your website's tracking codes, such as Google Analytics, the Google Ads conversion tag and the Meta pixel, in one container. You install the container once. After that, you add or change tracking from the Tag Manager dashboard, test it in Preview mode, and publish, without touching your website's code.
Why use Tag Manager instead of pasting codes into your site?
- Speed: new tracking takes minutes, not a developer ticket.
- Safety: Preview mode lets you test before anything goes live, and every change is saved as a version you can roll back.
- Tidiness: all tracking lives in one place, so nothing is forgotten in an old theme file.
- Click tracking: GTM can listen for clicks and form submits that plain GA4 doesn't track on its own.
Tags, triggers and variables in plain English
| Term | What it is | Example |
|---|---|---|
| Container | The box that holds all your tracking for one website | GTM-ABC1234 |
| Tag | A piece of tracking code that sends data somewhere | "GA4 event: whatsapp_click" |
| Trigger | The rule for when a tag fires | "Clicks on links containing wa.me" |
| Variable | A value GTM reads from the page | Click URL, Page path, Click text |
| Workspace | Your draft area for changes | "Default Workspace" |
| Version | A saved snapshot of what's live | "v7: added WhatsApp tracking" |
A simple way to remember it: the tag is the message, the trigger is the moment, and variables are the details.
Step 1: Create your account and install the container
- Go to tagmanager.google.com and sign in with your business Google account.
- Click Create account. Enter your company name, country (India), your website address as the container name, and choose Web.
- GTM shows two code snippets. One goes as high as possible in the
<head>of every page, the other right after the opening<body>tag. - On WordPress, you can use a plugin such as Site Kit by Google or a header-and-footer plugin. On Shopify, Wix and other builders, follow their instructions for adding custom code or Google Tag Manager.
Full walkthroughs for WordPress, Shopify, Wix and custom sites are in our Search Console, Tag Manager and GA4 setup guide.
Important: if GA4 is already installed directly on your site (outside GTM), don't add it again in GTM, or every visit will be counted twice.
Step 2: Add the Google tag for GA4
- In GTM, click Tags > New.
- Choose Google Tag as the tag type and paste your GA4 measurement ID (it starts with G-; find it in GA4 under Admin > Data streams).
- Set the trigger to Initialization - All Pages (or All Pages).
- Name it clearly, such as "Google tag - GA4", and save.
Step 3: Turn on click variables
Go to Variables > Configure and tick all the Clicks variables (Click Element, Click Classes, Click ID, Click Target, Click URL, Click Text) and the Forms variables. GTM can't use click details until these are enabled. This one step solves a lot of "why isn't my trigger working?" problems.
Step 4: Track WhatsApp clicks
Most WhatsApp buttons link to wa.me/91XXXXXXXXXX or api.whatsapp.com/send.
Create the trigger
Triggers > New > Click - Just Links. Choose Some Link Clicks and set: Click URL matches RegEx
wa\.me|api\.whatsapp\.com|web\.whatsapp\.com. Name it "Click - WhatsApp".Create the tag
Tags > New > Google Analytics: GA4 Event. Enter your measurement ID, event name
whatsapp_click, and optionally add a parameterlink_urlwith value{{Click URL}}. Attach the "Click - WhatsApp" trigger.Test it
Use Preview mode (Step 7) and click your WhatsApp button. The tag should show as "Fired".
Tip: if your WhatsApp button is a floating widget from a plugin, it may not be a normal link. In Preview, click it and check what Click URL or Click Classes show, then build the trigger around those.
Step 5: Track phone number taps
A tappable phone number uses a link that starts with tel:.
- Trigger: Click - Just Links > Some Link Clicks, Click URL starts with
tel:. Name it "Click - Phone". - Tag: GA4 Event with event name
phone_click, attached to that trigger.
If your phone number isn't a tel: link, fix that first. Mobile visitors can't tap to call a plain number, and you can't track it either.
This measures taps on your website's number, not completed calls. To measure actual calls from Google Ads, use Google Ads call assets and call reporting as well.
Step 6: Track form submissions
Forms are trickier because they're built in many different ways. Try these methods in order:
- Thank-you page (easiest): if your form sends people to a page like
/thank-you, create a Page View trigger where Page Path containsthank-you, and a GA4 Event tag namedgenerate_lead. - Form Submission trigger: Triggers > New > Form Submission. Tick Check validation so only successful submits count. Test in Preview: many modern forms don't send a standard submit event, so this works on some sites and not others.
- Element Visibility trigger: if the form shows a success message like "Thanks, we'll call you soon" without changing page, create an Element Visibility trigger for that message's CSS selector or ID.
- Plugin or data layer events: popular WordPress form plugins and website builders can push a success event to the data layer. Ask your developer or check the plugin's documentation.
Use the event name generate_lead for enquiry forms. It's one of Google's recommended event names, which makes reports and Google Ads imports easier.
Step 7: Test everything in Preview mode
- Click Preview at the top right of GTM. Tag Assistant opens and asks for your website address.
- Your site opens in a new tab, connected to Tag Assistant. Click your WhatsApp button, tap the phone number, and submit a test form.
- In the Tag Assistant tab, each action appears in the left timeline. Click one to see which tags fired and which didn't fire, and why.
- In GA4, open Admin > DebugView to see the events arrive in real time.
Preview is visible only in your browser, so real visitors aren't affected while you test. You can also share a preview link with a colleague.
Step 8: Publish, then mark key events
- In GTM, click Submit. Give the version a clear name, like "Added WhatsApp, phone and form tracking", and publish.
- Wait a few hours, then in GA4 go to Admin > Events (or Reports > Engagement > Events). Your new events will appear once they've been triggered.
- Mark
whatsapp_click,phone_clickandgenerate_leadas key events. - If you run Google Ads, import these key events as conversions so your campaigns can optimise for real leads.
Now your GA4 reports can show leads by channel and page. Our GA4 reports guide shows where to look, and our Looker Studio guide puts them on a free monthly dashboard.
Other useful tags to manage in GTM
- Google Ads conversion tracking and remarketing.
- Meta pixel: see our Meta pixel setup guide.
- Microsoft Clarity: available as a ready-made template. See our Clarity guide.
- LinkedIn Insight Tag for B2B advertisers.
- Scroll depth and video plays for content-heavy sites.
7 common Tag Manager mistakes
- Installing GA4 twice (in the site code and in GTM), which doubles every number.
- Publishing without previewing.
- Forgetting to enable click variables, then wondering why click triggers don't work.
- Tracking every form view as a lead instead of successful submits only.
- Vague names like "Tag 1" and "New trigger". Use "GA4 Event - WhatsApp click".
- An agency owning the account. Your business should own it; give others Publish or Edit access as needed.
- Ignoring consent. If you have visitors from regions with strict cookie laws, set up a consent banner and Google's Consent Mode.
Frequently asked questions
Is Google Tag Manager free?
Yes. Google Tag Manager is free for websites and apps. There's a paid Tag Manager 360 for large enterprises, which small and medium businesses don't need.
Do I need Google Tag Manager if I already have GA4?
GA4 alone tracks page views and some interactions automatically. To track WhatsApp clicks, phone taps and most form submissions reliably, and to manage other tags like the Meta pixel and Google Ads, Tag Manager makes life much easier.
How do I track WhatsApp button clicks in GA4?
In Tag Manager, create a Just Links click trigger where the Click URL contains wa.me or api.whatsapp.com, attach a GA4 event tag named whatsapp_click, test in Preview, publish, and then mark whatsapp_click as a key event in GA4.
Why is my Tag Manager trigger not firing?
The most common reasons are that click variables aren't enabled, the trigger condition doesn't match the actual Click URL or class, or the button isn't a standard link. Use Preview mode to click the element and inspect the variables it shows.
Will Google Tag Manager slow down my website?
The container itself is light. Speed problems usually come from adding too many third-party tags. Remove tags you don't use and check page speed after major changes.
What is the difference between a tag and a trigger?
A tag is the code that sends data, such as a GA4 event. A trigger is the rule that decides when the tag runs, such as a click on a WhatsApp link or a visit to the thank-you page.
Can I undo a change in Google Tag Manager?
Yes. Every publish creates a version. Go to Versions, choose an earlier version, and publish it again to roll back.
The bottom line
An afternoon with Tag Manager can turn "we got some calls, I think" into clear numbers: how many WhatsApp chats, calls and forms came from Google, Instagram, ads or SEO. That's the difference between guessing where to spend your marketing budget and knowing.
Prefer us to set it up and test it for you? It's part of every website and marketing plan we run. Book a free consultation.
Sources and further reading
- Google Tag Manager. tagmanager.google.com
- Tag Manager Help, "Get started with Tag Manager" (preview and debug mode). support.google.com
- Tag Manager Help Center. support.google.com
- Google Tag Assistant. tagassistant.google.com
- Google Analytics Help, "[GA4] Mark events as key events". support.google.com
- Google Analytics Help, "[GA4] Recommended events". support.google.com
This article is for general information only and is not professional advice. Tools, prices and platform rules change often, so please check official sources before acting on it. See our Terms & Conditions.
Not sure which leads come from where?
We'll set up and test your tracking so every call, chat and form is counted. The first consultation is free.
