Google Tag Manager, usually shortened to GTM, is a free tool that manages the tracking code on your website. You install one snippet, and from then on you add, change and test tracking from GTM's interface instead of editing your site each time.
This article walks through the container I'd set up for a typical service business. It's part of my guide to conversion tracking and analytics for service businesses, which explains how GTM fits alongside GA4, call tracking and reporting.
Why Use Tag Manager at All
You can install GA4 directly on a site without GTM. So why add another tool?
- One place for everything. GA4, Google Ads conversion tags, Microsoft Clarity, a Meta pixel and anything else live in one container you can review.
- Changes without a site release. Adding a new event or fixing a broken one doesn't require a developer to change and redeploy the website.
- Testing before publishing. Preview mode lets you see exactly which tags fire on your real site before anyone else is affected.
- Version history. Every published version is saved, so a mistake can be rolled back in a minute.
The trade-off is that GTM is powerful enough to cause problems. Anyone with publish access can add code to your site, so keep that access limited to people you trust.
The Three Building Blocks
Everything in GTM is built from three pieces.
Tags are what send data somewhere. A Google tag that loads GA4, a GA4 event that records a form submission, a Google Ads conversion tag.
Triggers decide when tags fire. A page view, a click on a certain kind of link, a form submission, or a custom event your website announces.
Variables hold the details. Built-in variables include the page URL, the URL of a clicked link, the text of a clicked element and the ID of a form. Many built-in click and form variables are turned off by default, so one of the first things to do in a new container is enable them under Variables, using the Configure button for built-in variables.
A sentence that helps: "When this trigger happens, fire this tag, using these variables."
Setting Up the Container
Create a GTM account under your business's Google account, then a web container for your domain. GTM gives you two snippets: one for the head of every page and one right after the opening body tag. Your developer, or your website platform's GTM setting, installs them once.
Like GA4 and Google Ads, the GTM account should belong to your business. GTM has account-level and container-level permissions, and at the container level you can give someone read, edit, approve or publish access. An agency that builds your tags may need publish access; a freelancer who just needs to look around doesn't.
Tag 1: The Google Tag for GA4
The foundation is a Google tag with your GA4 measurement ID (it starts with G-). Set it to fire on the Initialization - All Pages trigger, which runs early on every page so later tags have what they need. If you use a consent banner, the order of these early triggers matters; I cover that in Privacy, Consent and Tracking for Small Businesses.
Tag 2: Form Submissions
Forms are where GTM setups go wrong most often, because "the form was submitted" and "the lead was received" aren't always the same thing. There are three common approaches, from most to least reliable.
A custom event from your website. The developer adds one line to the site so that, when the form submits successfully, the page pushes an event into the data layer, for example an event named generate_lead with a form_name value. In GTM you create a Custom Event trigger listening for generate_lead, and a Google Analytics: GA4 Event tag that sends an event called generate_lead to GA4. It's the approach I prefer whenever the site's code can be changed, because it only fires when the submission actually succeeded.
A thank-you page. If a successful submission takes the visitor to a page like /thank-you, a Page View trigger limited to that path works well. Two cautions: make sure people can't reach the thank-you page any other way, and remember that refreshing the page can count again.
GTM's Form Submission trigger. It listens for the browser's standard submit event. It works on some simple forms, but many modern forms submit in the background without that event, and it can fire even when validation fails. If you use it, turn on its option to check validation, and test with a deliberately incomplete submission to make sure it doesn't fire.
Whichever you choose, mark generate_lead as a key event in GA4. My GA4 setup guide for service businesses covers which events deserve that status.
Tag 3: Phone Number Taps
Phone links on a website use the tel: format, like tel:+17605550123. To track taps:
- Enable the Click URL built-in variable.
- Create a Click - Just Links trigger set to fire on some link clicks, where Click URL starts with "tel:".
- Create a GA4 Event tag named something like phone_click, fired by that trigger. You can send the page path as a parameter so you know where the tap happened.
This records a tap, not a completed call. On desktop, clicking a tel: link may open a calling app or do nothing at all, and many people simply read the number and dial it on their phone. For real call measurement you need call tracking, which I explain in Call Tracking for Service Businesses: How It Works and Why It Matters.
Tag 4: Email Clicks and Important Buttons
The same pattern covers email links: a Click - Just Links trigger where Click URL starts with "mailto:", feeding a GA4 event like email_click.
For important buttons that aren't links, such as an "Open booking calendar" button, use a Click - All Elements trigger with a condition on something stable about the button, like its Click ID or Click Text. Click Classes work too, but class names often change when a site is restyled, which silently breaks the trigger. If you control the site, ask your developer to give important buttons a stable ID.
Tag 5: Google Ads Conversions
If you run Google Ads, you have two ways to count conversions: import your GA4 key events into Google Ads, or use Google Ads' own conversion tags. Either can work. For lead forms on a site I control, I often use the Google Ads tag for the main conversion and keep the GA4 key event for reporting.
In GTM that means:
- A Conversion Linker tag firing on all pages, which helps Google Ads measure clicks accurately.
- A Google Ads Conversion Tracking tag for each conversion action, using the conversion ID and label from Google Ads, fired by the same trigger as the matching GA4 event.
Pick one source as the primary conversion in Google Ads for each action. Counting the same form both ways as primary conversions means double counting, which misleads Ads' bidding.
Preview, Publish and Keep Notes
Before publishing, click Preview in GTM. It opens Tag Assistant connected to your site, and as you browse, it lists which tags fired and which didn't for each action. Submit each form, tap each phone link, click each important button, and check that the right tags fire once.
When everything checks out, click Submit, give the version a descriptive name like "Add phone and email click events," and publish. Those names are your change log. If something breaks next month, you'll know what changed and can roll back to an earlier version from the Versions tab.
I also keep a short document listing every tag, what triggers it and why it exists. Containers tend to collect old tags from tools nobody uses anymore, and a written list makes cleanup easy.
When to Bring In Help
A basic container is a weekend project for a technical owner. It gets harder when forms are embedded from third-party tools, when you need consent handling, or when you want offline conversions in Google Ads. If you'd rather have it built and tested for you, get in touch and I'll take a look at what you have.
This article is part of Conversion Tracking and Analytics for Service Businesses: The Complete Guide.
Part of Conversion Tracking and Analytics for Service Businesses: The Complete Guide
