What is Google Tag Manager and who is it for?
At its simplest, Google Tag Manager is a free tool that acts as a “middleman” between your website and your marketing tools.
Traditionally, tracking codes (such as Google Analytics, Google Ads or the Meta Pixel) had to be pasted straight into your website’s source code, line by line. GTM changes that. Instead of adding dozens of different codes to your site, you add just one: the Google Tag Manager “container”. After that, you manage all your other tracking codes directly from GTM’s easy-to-use dashboard.
Who is GTM for?
The short answer: everyone.
More specifically, it is meant for:
- Marketers: you can test and launch new campaign tracking on your own, without help from the IT department.
- Online shop owners: you can track purchases, abandoned baskets and product views precisely.
- Developers: GTM frees developers from small marketing “odd jobs”, so they can concentrate on actually developing the site.
- Analysts: the tool offers advanced ways to collect and shape data before it is sent to your analytics tools.
The five biggest benefits of Google Tag Manager for website owners
Why should you take the trouble to learn GTM? Here are five strong reasons that have a direct effect on your business.
1. Speed and agility
This is GTM’s biggest trump card. You can create new tags, test them and publish them in a few minutes. Your marketing campaigns are no longer held up by technical bottlenecks.
2. Faster loading
If your site’s source code is full of dozens of different tracking pixels, it slows the site down. GTM loads tags asynchronously. This means that loading the tags doesn’t stop the rest of the site’s content from appearing for the user. A faster site means a better user experience and a better ranking in Google’s search results.
3. Version control and safety
Every time you publish changes in GTM, it creates a new version. If something goes wrong and your tracking breaks, you can restore an earlier, working version in seconds. It gives you peace of mind that editing the source code directly never can.
4. Centralised management
Do you have any idea which codes have been installed on your site over the last five years? GTM gives you a single view of every active tag. This helps you keep things under control and remove unnecessary, outdated tracking codes.
5. Built-in testing (Preview Mode)
GTM’s preview mode is brilliant. You can test whether a tracking code works correctly in your own browser before you publish it to all users. You see in real time whether the tag fires when you click a button or submit a form.
Tags, triggers and variables: GTM’s three main components explained
GTM may look complicated at first, but its logic rests on three simple pieces. Once you understand them, you have mastered the whole tool.
1. Tags – “What happens?”
A tag is the piece of code you want to run. It is the action.
- Example: “Send a page view to Google Analytics” or “Tell Facebook that the user bought a product.”
2. Triggers – “When does it happen?”
A trigger is a rule that decides when a tag “fires”, that is, runs. Without a trigger, a tag does nothing.
- Example: “When the user loads the home page”, “When the user clicks the ‘Buy’ button” or “When the user has scrolled 50% of the way down the page.”
3. Variables – “What information is needed?”
Variables are dynamic pieces of information that tags and triggers use to work more precisely. They are like placeholders.
- Example:
Click URL(the address the link goes to),Page Path(the page the user is on) orTransaction ID(the online shop’s order number).
Putting the pieces together:
You want to track newsletter sign-ups.
- Tag: a Google Analytics 4 event called “newsletter_signup”.
- Trigger: fire this tag ONLY when the user lands on the page
/thank-you-for-subscribing. - Variable: use the
Page Pathvariable to check whether the user is on the right page.
Step by step: how to get started with Google Tag Manager
Ready to take control yourself? Here is a quick start guide.
Step 1: Create an account
Go to tagmanager.google.com and sign in with your Google account. Create a new account (usually your company’s name) and a new container (your website’s address). Choose “Web” as the platform.
Step 2: Install the container code
When you create a container, GTM gives you two snippets of code.
- The first goes near the top of your site’s
<head>section. - The second goes right at the start of the
<body>section. - Tip: if you use WordPress, you can use a plugin (such as GTM4WP) where you simply enter your GTM ID (in the form GTM-XXXXXX), and you don’t have to touch the code at all.
Step 3: Create your first tag
The most common first tag is the Google Tag (formerly the Config tag) for Google Analytics 4.
- Click “Tags” > “New”.
- Choose Tag Configuration > Google Analytics: Google Tag.
- Enter your GA4 Measurement ID.
- Choose Triggering > All Pages (this is the default trigger, already there for you).
- Save.
Step 4: Test (Preview)
Don’t publish yet. Click Preview in the top right-hand corner and enter your site’s address. A new window opens on your site. If you see “Tag Assistant Connected” at the bottom of the screen and your tag is listed under “Tags Fired”, the installation works.
Step 5: Publish
Go back to the GTM view and press Submit in the top right-hand corner. Give the version a name (for example “GA4 setup”) and press Publish. Your tracking is now live.
If you’d like me to build the tracking and the cookie banner for you, take a look at web analytics and cookie management.
Google Tag Manager, cookies and GDPR: how to stay compliant
In Finland and the rest of the EU, you can’t talk about tracking without mentioning GDPR. GTM plays a critical role here.
It is important to understand this: GTM on its own does not make your site GDPR compliant. It is just a tool. You have to configure it to respect the user’s consent.
Consent Mode v2
Since March 2024, Google has required Consent Mode v2 when data from visitors in the European Economic Area (EEA) is used for ad measurement and personalisation. This means GTM has to “talk to” your site’s cookie banner (such as Cookiebot, CookieFirst or OneTrust).
How does it work?
- When a user arrives on the site, GTM blocks all tags by default.
- The user makes a choice in the cookie banner (for example “Accept only necessary”).
- The cookie banner sends a signal to GTM.
- GTM updates the consent state. If the user declined marketing cookies, GTM does not fire the Google Ads tag, even if its trigger (“All Pages”) is met.
This takes some technical set-up, but most cookie banners now have ready-made GTM templates (Community Templates) that make the integration easier. I also offer ready-made solutions for cookie management.
Avoiding the most common mistakes with Google Tag Manager
GTM is efficient, but it also lets you make mistakes very efficiently. Avoid these pitfalls:
1. Forgetting to publish
This is a classic. You make some great changes, test them in Preview mode and close the browser. A week later you remember that you never pressed the “Submit” button. Nobody but you has seen the changes.
2. Double tagging
When you move to GTM, remember to remove the old, hard-coded tracking codes from your site’s source code. If you have the GA4 code both in the source code and in GTM, you get twice the page views and your data is ruined.
3. Overusing the “All Pages” trigger
Not every tag needs to load on every page. Conversion pixels (such as “Thank you for your order”), for example, should only load on that particular page. If you load them on every page, your reports will show that every visitor has made a purchase.
4. Naming conventions
“Tag 1” and “New tag” are poor names. Use clear, logical names, for example GA4 - Event - Purchase or Meta - Pageview. You’ll thank yourself later, when the container has 50 tags.
Advanced features: server-side tagging and future strategies
Digital marketing is changing, and browser-based (client-side) tracking faces challenges. Browsers such as Safari (ITP) and Firefox limit how long cookies live, and ad blockers are common.
The answer to this is Server-Side GTM.
With traditional GTM, the user’s browser sends the data straight to Google or Facebook. With server-side GTM, the data goes first to your own server, which then passes it on.
Benefits:
- Better privacy: you can “clean” the data (for example remove IP addresses) before passing it on.
- Longer cookie lifetime: because the cookies are set from your own server, browsers don’t block them as aggressively.
- A faster site: the user’s browser has fewer scripts to load.
This is an advanced feature that needs server space of its own (for example on Google Cloud), but it is the direction professional analytics is heading in.
Five key facts
- Completely free: GTM is a free, cloud-based tool with no monthly fees for basic use.
- One code to rule them all: you install just one container code on your site, and from then on you manage all your other tags (Analytics, Ads, Meta) in one place without coding.
- GDPR-safe: it works smoothly with consent management platforms (CMPs) and supports Google Consent Mode v2, ensuring you comply with the law.
- Three essential components: the tool’s logic is based on tags (what happens), triggers (when it happens) and variables (what information is passed on).
- Performance and SEO: it cuts the clutter in your site’s source code and loads scripts asynchronously, which improves loading speed and the user experience.
Frequently asked questions
Who is Google Tag Manager for?
GTM suits anyone who owns a website or a mobile app and wants to collect data or do digital marketing. It is invaluable for businesses that want to depend less on developers for routine marketing tasks. Technical understanding helps, but you don’t need programming skills for basic use.
How much does Google Tag Manager cost?
The standard version of GTM is completely free. There are no monthly fees and no limits on traffic for ordinary websites. A paid version (GTM 360) exists for large enterprises, but the free version is enough for 99% of users. Any costs come only from the third-party tools you install through GTM.
Is GTM difficult to set up?
No. Setting up the basic features and creating an account takes about 20–30 minutes. The hardest part is copying the GTM code into your site’s source code, and even that can often be done with a ready-made plugin (in WordPress, for example). Once the container is installed, managing the tags themselves is logical and visual.
What is GTM used for?
It is used for installing Google Analytics 4, Google Ads conversion tracking, managing the Facebook/Meta pixel and tracking all kinds of events (such as button clicks, video views or form submissions). It is also a key tool for putting cookie consent management (CMP) in place.
What is a trigger in Google Tag Manager?
A trigger is the rule that says “Now”. It defines the conditions under which a tag runs. For example, if you want to measure how many people click your phone number, the trigger is “Link click where the URL contains ‘tel:'”. Without a trigger, a tag would just be a passive piece of code.
What is the difference between tags and variables?
A tag is the “worker” that carries out a task (for example, sending information to Google). A variable is the “data bank” the tag fetches more detailed information from. For example, a tag sends information about a purchase, but it uses a variable to find out what the purchase total was.
Is GTM safe for privacy and GDPR?
Yes, if it is configured correctly. GTM supports Google Consent Mode v2 and integrates with the most common cookie banners. This lets you make sure tags don’t fire or set cookies until the user has given explicit permission. Server-side GTM can improve privacy even further.



