Digital Dan
← All posts

What is Google Tag Manager and what is it used for? (2026)

What is Google Tag Manager and what is it used for?

Google Tag Manager (GTM) is a free Google tool for adding and managing tracking codes (“tags”) on a website or app from one interface, without editing the site’s code each time. You install one container snippet once; after that, you add the Google tag for GA4, Google Ads conversions, the Meta pixel and other tags in Tag Manager, decide when each one fires, test them in Preview mode and publish. In 2026 it’s also where most businesses set up Consent Mode v2 and, increasingly, server-side tagging.

Need Tag Manager set up properly, or cleaned up? I set up GTM, GA4 and Google Ads conversion tracking for businesses that advertise. Get in touch about a Tag Manager setup.

Why Tag Manager exists

Every marketing tool wants its own code on your site: GA4, Google Ads, Meta, Microsoft Advertising, LinkedIn, a call tracking tool, a heatmap. Without Tag Manager, each one means asking a developer to edit the site, and each event (a form submission, a click on a phone number) means more code.

Tag Manager moves that work into one place. The developer installs the container once. From then on, marketers and analysts add and change tags in Tag Manager, every change is tested before it goes live, and every publish is saved as a version you can roll back to.

How it works: tags, triggers and variables

How Google Tag Manager works: the website loads one container snippet; inside the container a trigger listens for page events and the data layer, variables supply values, and the tag sends data to GA4, Google Ads, Meta or a server container

Everything in a Tag Manager container is built from three things.

Tags: what to do

A tag is code that sends information to a tool. Tag Manager has built-in tag types for Google products: the Google tag, Google Analytics: GA4 Event, Google Ads Conversion Tracking, Google Ads Remarketing, Conversion Linker and Floodlight. For other tools you use a template from the Community Template Gallery or a Custom HTML tag, so you’re never limited to the built-in list.

Triggers: when to do it

A trigger is the rule that makes a tag fire. Tag Manager’s trigger types include:

  • Page view: Consent Initialization, Initialization, Page View, DOM Ready, Window Loaded.
  • Click: All Elements, Just Links.
  • User engagement: Element Visibility, Form Submission, Scroll Depth, YouTube Video.
  • Other: Custom Event, History Change, JavaScript Error, Timer, Trigger Group.

The Choose trigger type list in Google Tag Manager, with Page View triggers (Consent Initialization, Initialization, Page View, DOM Ready, Window Loaded), Click triggers and User Engagement triggers

Each trigger can fire on all events of its type or only some, for example “Form Submission where Page Path contains /contact/”.

Variables: which values to use

A variable holds a value Tag Manager reads at the moment something happens: the page URL, the text of the clicked button, a form’s ID, a cookie, an order total. Variables are used in two places: in triggers, as conditions (“Click Text equals Call now”), and in tags, to send dynamic values (“send the order total as the conversion value”). Tag Manager has built-in variables you switch on, and user-defined ones you create.

The data layer

The data layer is how your website hands information to Tag Manager. It’s a JavaScript object (dataLayer) your site or platform pushes messages into, such as “a lead form was submitted, form name: quote” or “a purchase happened, value: 129.00”. A Custom Event trigger listens for those messages, and Data Layer Variables read their values.

The data layer is what makes tracking reliable. Reading values from the page’s text and layout works until someone redesigns the page; a data layer push from the site’s code keeps working. For ecommerce and lead forms that matter for your ads, ask your developer (or your platform’s plugin) for data layer events.

Containers: web, mobile and server

A container holds all the tags, triggers and variables for one website or app. Google recommends one Tag Manager account for your company and one container per website or app. The container types are:

ContainerWhat it’s for
WebWebsites and web apps. By far the most common.
iOS and AndroidMobile apps (they work with the Firebase SDK).
AMPPages built with Accelerated Mobile Pages.
ServerServer-side tagging: a container that runs on your own cloud server and forwards data to Google and other tools.

A web container has an ID like GTM-XXXXXXX, and its snippet goes on every page of the site, in the <head> and right after the opening <body> tag.

Workspaces, versions and environments

These are what make Tag Manager safe to use with a team:

  • Workspaces are separate drafts of the container, so two people can work on different changes without overwriting each other. The free version allows three at once (the Default Workspace plus two); Tag Manager 360 has no limit.
  • Preview opens your site connected to Tag Assistant, where you see every event, which tags fired and which didn’t, the values of every variable and the consent state, before anything goes live.
  • Versions are saved every time you publish. If a change breaks something, you publish the previous version again.
  • Environments let you test a container version on a staging site before it reaches the live one.
  • User permissions per container (Read, Edit, Approve, Publish), so an agency can edit without being able to publish, or a developer can approve what goes live.

What Tag Manager is used for in 2026

GA4

The Google tag loads GA4 on every page and sends page views and enhanced measurement events; GA4 Event tags add everything else: lead forms, phone clicks, sign-ups, purchases. The step-by-step is in how to install GA4 using Google Tag Manager, and a worked example is tracking every click on your menu items.

Google Ads Conversion Tracking tags send leads and sales to Google Ads so Smart Bidding knows what a conversion is worth; the Conversion Linker keeps the ad click information; Remarketing tags build audience segments. Tag Manager is also where you collect user-provided data for enhanced conversions. In most accounts I audit, conversion tracking is where the biggest problems are, and it’s where Tag Manager pays for itself.

If you have visitors from the European Economic Area, the UK or Switzerland, Google requires consent signals for Google Ads and GA4 measurement and remarketing. In Tag Manager, your cookie banner’s template sets the default consent on the Consent Initialization trigger, Google tags adjust by themselves, and non-Google tags get consent checks so they don’t fire without permission. Full setup: Consent Mode v2 with Google Tag Manager.

Meta, Microsoft, LinkedIn and other platforms

The Meta pixel, Microsoft Advertising UET, LinkedIn Insight, TikTok, call tracking and heatmap tools all go in the same container, with the same triggers and the same consent rules. One place to see every tag on the site is the main reason I put clients on Tag Manager even when they only run Google Ads today.

Server-side tagging

A server container receives data from your site and sends it on to GA4, Google Ads, Meta’s Conversions API and others from your own server. It can improve data control and reduce browser-side code, but it costs money to host and needs maintenance. I cover when it’s worth it in server-side tagging with Google Tag Manager.

Google Tag Manager vs the Google tag

The Google tag (formerly gtag.js, the global site tag) is one snippet with one tag ID that sends data to Google products. Tag Manager is a container for Google and non-Google tags with triggers, variables, preview and versions. Inside Tag Manager, the Google tag is just one of your tags.

In 2026 Google is bringing the two together: Google tags are being upgraded to full Tag Manager containers, Tag Manager gained a Settings section for container-wide Google settings, and an optional container optimization lets a container send data directly to Google products instead of loading an extra gtag.js file. Nothing changes until someone with publish rights accepts it. I compare the two in detail in Google Tag Manager vs the Google tag (gtag.js).

Who should use Tag Manager (and who shouldn’t)

Use it if:

  • You run Google Ads or Meta ads and track leads, calls or sales.
  • You use more than one marketing or analytics tool.
  • You need events beyond page views.
  • You need a cookie banner with Consent Mode.
  • More than one person or an agency works on your tracking.

You may not need it if:

  • Your site only needs GA4 page views, and your platform (Shopify, Wix, Squarespace and others) installs the Google tag for you.
  • Your developers prefer every tag in the site’s code and already test and review it there.

Limits and things to know

  • It doesn’t fix bad data by itself. Tag Manager only fires what you set up. A form trigger that fires on every click of the Submit button, including failed submissions, gives you inflated conversions.
  • Triggers that read the page can break. Click and form triggers that depend on button text or CSS classes stop working when the site is redesigned. The data layer is more robust.
  • Performance depends on what’s inside. The container loads asynchronously; twenty tags firing on every page is what slows a site, not Tag Manager itself.
  • Custom HTML runs anything. Whoever can publish can put any JavaScript on your site, so give Publish permission carefully.
  • Ad blockers and browser privacy features block many tags, whether they come from Tag Manager or the site’s code.
  • Ownership. If an agency or freelancer created the account under their own login and leaves, you lose access. Make sure your business owns the account and has Administrator access to the account.

Common mistakes I see

  1. Two containers, or a container nobody can access. Before creating a new one, check the site’s code for an existing GTM- ID.
  2. GA4 in Tag Manager and hard-coded too, so every page view counts twice.
  3. Changes left in Preview, never published.
  4. No version names. “Version 47” tells nobody what changed. Name every version.
  5. Old tags for tools nobody uses, still firing on every page years later.

FAQ

Is Google Tag Manager free?

Yes. Tag Manager is free; Tag Manager 360, part of Google Marketing Platform, is the paid enterprise version with extra workspaces, approval workflows and support. Server-side tagging is free to use, but you pay for the server.

Do I need to know how to code to use Tag Manager?

Not for the common setups: the Google tag, GA4 events on clicks and forms, Google Ads conversions. Reliable ecommerce tracking and a data layer usually need a developer once.

Does Tag Manager replace Google Analytics?

No. Tag Manager sends data; GA4 stores and reports it. You use Tag Manager to install and configure GA4.

Will Tag Manager slow down my website?

The container loads asynchronously and doesn’t block the page from rendering. What slows a site is too many heavy tags firing everywhere, which is easier to control in Tag Manager than in code.

What’s the difference between a tag, a trigger and a variable?

A tag is what happens (send an event to GA4), a trigger is when it happens (a form submitted on the contact page), and a variable is a value used along the way (the form’s name or the page URL).

Need help with Google Tag Manager?

I set up Tag Manager from scratch, take over messy containers, and make sure GA4 and Google Ads count each lead and sale once. If you’re not sure what’s installed on your site or who owns it, ask me for a conversion tracking review.

Daniel Timponi

Digital Marketing Analyst & Consultant · 17+ years crafting digital marketing that converts.

Schedule a call