Want to know who clicked “Order” on your website, how many people submitted a form, and which ad led to a purchase? Without calling a developer every time you change something? That’s what Google Tag Manager (GTM for short) is for. It’s free, and once you understand a few basic concepts, you’ll have your tracking under control. In this article, you’ll learn how GTM works, how to install it, and what to track first.
What Google Tag Manager is
GTM is a free tool from Google that works as one central box for all the tracking codes on your website. Instead of a developer adding the Google Analytics code, the Google Ads conversion tracking, and the Meta Pixel to your site separately, they add a single GTM code. You then set up everything else in a clear interface.
With GTM, you can, for example:
- track clicks on buttons and phone numbers,
- measure form submissions,
- record purchases in your online store, including the order value,
- fire remarketing tags for your ads,
- measure how far people scroll down a page.
Why track through GTM instead of directly in the code
- You don’t have to touch your website’s code with every change. You add new tracking in the GTM interface.
- Everything is in one place. You can see what’s being tracked on your website and when.
- You test everything before publishing. Preview mode shows whether a tag fired correctly.
- You have a version history. When something breaks, you roll back to the previous version.
- You manage access. You give access to an agency or a colleague and remove it when you stop working together. Our guide How to share access to Google Tag Manager shows you how.
Three concepts you need to know
- A tag is a piece of code that sends something, such as purchase data to Google Analytics or Google Ads.
- A trigger is a rule that decides when a tag fires. For example, when the “Thank you for your order” page is displayed or when someone clicks the “Call” button.
- A variable is an extra piece of information the tag or trigger needs: the page URL, the button text, the order value.
It all works simply: when the trigger happens, send the tag with these variables. Once you understand this logic, you can handle most common tracking setups.
Getting started with GTM step by step
- Create an account and a container in Google Tag Manager. A container is the space for one website.
- Add the GTM code to your website. In WordPress, a plugin does the job; Shoptet and other platforms usually have a dedicated field in the settings. You only do this once.
- Create your first tag. Most often, it’s the basic Google Analytics 4 tag with your measurement ID.
- Set the trigger. For the basic GA4 tag, that’s all pages.
- Test in Preview mode whether the tag fires where it should.
- Publish your changes and write what you changed in the version name. It’ll come in handy later.
You’ll find the detailed installation steps in the official Google Tag Manager help.
What to track from day one
- Clicks on main buttons, such as “Order,” “Book,” or “Contact us.”
- Clicks on your phone number and email. For local services, these are often the most important conversions.
- Views of the thank-you page after an order or form submission.
- Form submissions.
- Purchases with order value, if you run an online store.
- Scroll depth on long pages and articles.
Besides your main goals, it’s worth tracking smaller steps too, such as adding to cart or downloading a price list. We explain why in our article on micro-conversions.
Example: tracking clicks on a phone number
For a repair shop, a salon, or a contractor, a phone call from the website is often the most valuable lead. Here’s how to track it:
- In GTM, enable the built-in click variables, especially Click URL.
- Create a “Click – Just Links” trigger that fires when Click URL contains “tel:”.
- Create a Google Analytics 4 event tag, named for example “phone_click,” and assign this trigger to it.
- In Preview mode, click the phone number on your website and check whether the tag fired.
- Publish the changes and mark the event as a key event in GA4.
You can track clicks on your email address the same way; just use “mailto:” instead of “tel:”.
GTM and Google Analytics 4: a strong pair
Google Analytics 4 measures behavior on your website using events. GTM is the most convenient way to set up these events: no coding, and you can test them before publishing. Once your events are set up, you mark the important ones as key events in GA4 and can use them in Google Ads too. You’ll find how to set up GA4 so your data actually helps you in our guide to tracking in Google Analytics 4.
The most common mistakes
- The GTM code is on the website twice, or alongside a hard-coded GA4 code, so visits get counted twice.
- Changes are saved but not published, so nothing happens on the website.
- Tags fire regardless of cookie consent. Tracking has to respect what visitors allowed in the cookie banner.
- Confusing tag names that nobody can make sense of six months later.
- Nobody checks whether tracking still works after the website is updated.
Frequently asked questions
Is Google Tag Manager free?
Yes, the standard version is free and is more than enough for small and medium-sized businesses.
Does GTM replace Google Analytics?
No. GTM doesn’t analyze data; it only manages the codes that send it. To analyze data, you need Google Analytics 4 or an ad platform.
Will GTM slow down my website?
The container itself won’t slow your site down noticeably. A large number of tags you add to it can. So regularly remove tags you no longer need.
Can I set up GTM myself?
Basic tracking, yes, with this guide and a bit of patience. For an online store, tracking purchases with order value, or cookie consent, it pays to bring in someone who does this every day.
If you want your tracking set up right from the start, we’re happy to help. When we manage Google Ads, we always start with conversion tracking, so every euro in your campaigns counts.