Key Takeaways
- Definition: Google Tag Manager (GTM) is a free tag manager: you simply add a single line of code to your website, and then all tracking and advertising tags (GA4, Google Ads, Meta, LinkedIn) can be managed from a single interface, without having to modify the code.
- Three bricks: tags (what is sent), triggers (when), and variables (with what data).
- Benefits: Marketing autonomy, deployment in minutes, preview mode for testing, versions and rollback, centralized consent management.
- Limitations: requires strict adherence (naming conventions, documentation); a poorly maintained container slows down the site and skews the data.
Google Tag Manager (GTM) is Google’s free tool for managing a website’s tags: tracking codes (GA4), advertising codes (Google Ads, Meta, LinkedIn, TikTok), and third-party tools (chat, heatmaps, A/B testing). Instead of adding each code snippet to individual pages, you simply install the GTM container once, and then everything is configured through the interface. For a small or medium-sized business, this tool allows the marketing team to operate independently of the developer. This guide explains how it works, how to install it, use cases, consent requirements, and best practices.
How GTM Works
| Brick | Role | Examples |
|---|---|---|
| Container | The unique code embedded on all pages, which loads the published configuration | One container per site (or per domain) |
| Tag | What is sent to a third-party tool | Google Tag (GA4), Google Ads conversion, Meta Pixel, chat script |
| Trigger | The condition that triggers the tag | All pages, clicking a button, submitting a form, thank-you page, 75% scroll, dataLayer event |
| Variable | The data used by the tag or trigger | Page URL, text of the clicked link, transaction ID, order value, consent status |
| dataLayer | The data layer where the site stores information for GTM | E-commerce data, hashed customer ID, page type |
| Workspace and Versions | Draft changes, test, publication, history | Revert to a previous version with one click |
Install GTM
- Create an account and a web container on tagmanager.google.com using the company's email address (not the service provider's).
- Insert the two code snippets provided: one in the
<head>as high as possible, the other right after the opening of the<body>. CMS platforms have dedicated extensions or fields (WordPress, Shopify, PrestaShop, Webflow). - Remove any old hard-coded tags (GA4, Meta pixel) to avoid duplicates.
- Create the Google tag with the GA4 measurement ID and the "Initialization" or "All Pages" trigger; detailed configuration instructions are in GA4 with Google Tag Manager.
- Test in Preview mode, then publish a first named version.
Common Use Cases for an SME
| Need | Tag | Trigger |
|---|---|---|
| Measuring Traffic | Google Tag (GA4) | All Pages |
| Count the number of forms sent | GA4 Event generate_lead | Form Submission Successful or Thank-You Page |
| Tracking Calls from Mobile Phones | GA4 Event click_phone | Click on a link tel: |
| Track Google Ads Conversions | Google Ads conversion tag (or GA4 import) | Same trigger as the key event; see Google Tag Manager and Google Ads |
| Feed Meta campaigns | Pixel Meta (community model) | All standard pages and events, subject to consent |
| E-commerce | GA4 Events view_item, add_to_cart, purchase | dataLayer events triggered by the store |
| Downloads, videos, scrolling | GA4 Events | Built-in triggers (link click, YouTube video, scroll depth) |
| Third-party tools (chat, reviews, heat maps) | Custom HTML or template | All pages, subject to consent if cookies are used |
Consent in GTM
Any tag that sets non-essential cookies must wait for the user's consent. GTM includes a consent mode: each tag declares the permissions it requires (analytics_storage, ad_storage, etc.), a Consent Management Platform (CMP) tag sets the default status to “declined” and updates it based on the user’s choice, and GTM blocks or adjusts the tags accordingly. The complete setup, including Consent Mode v2 for Google Ads, is described in Consent Mode v2 with GA4 and GTM. Enable the "consent overview" in the container settings to see which tags require no configuration at a glance.
Best Practices
- Naming according to a convention: “GA4 – Event – generate_lead,” “Ads – Conversion – Quote,” “Trigger – Contact Form.” A container with 40 tags that don’t follow a consistent naming convention becomes unreadable within six months.
- Document: the "Notes" field for each tag, and a named version for each post ("Added quote conversion, 2026-09-02").
- Test in Preview Mode before each publication, and check in GA4 DebugView.
- Limit tags: Every third-party script slows down the site and affects the INP; remove any that are no longer in use; see Core Web Vitals.
- Choose specific models (community gallery) with custom HTML, which is more secure and compliant with consent requirements.
- Manage access: Owner = the company; “modification” or “publication” service providers, who may be removed; access audits every six months.
- One container per site, and one folder per tool in the container.
Common Mistakes
| Error | Effect | Correction |
|---|---|---|
| Hard-coded values retained in addition to GTM | Let's Double Our Page Views and Conversions | Delete the theme and plugin code |
| Form trigger on button click | Conversions are counted even if there is a data entry error | Trigger on the success response or the thank-you page |
| Tags without consent settings | Non-compliance, data discrepancies | Consent Overview, CMP-Compliant |
| Changes Published Without Testing | Incorrect data for weeks | Systematic Preview Mode, DebugView |
| Container created by a service provider in their account | Loss of Access Upon Contract Expiration | Transfer ownership to the company's account |
| Accumulation of Unused Tags | Slower website, confusion | Quarterly Review, Discontinued |
Server-Side GTM: Who Is It For?
GTM offers a server-side option: the container runs on a server (Google Cloud or a third-party hosting provider, €10–50 per month) and forwards the data to the tools. Advantages: fewer scripts in the browser, resistance to ad blockers, control over the data sent, easier access to Meta conversion APIs and Google Ads enhanced conversions. Limitations: technical configuration, hosting costs, maintenance. Suitable for an e-commerce site or a site with high ad traffic; unnecessary for an SME showcase site. Details on GA4 tracking are available in Set up GA4 correctly from the start.
How GreenRed Can Help You
Instead of juggling multiple tools, GreenRed's GA4 Performance and Traffic Module brings these metrics together in a single dashboard, compares them over time, and shows you the top priorities. You can try it for free—no credit card required—on the page Rates.
Frequently Asked Questions
Is Google Tag Manager free?
Yes, the standard version is free with no limits on tags or traffic. A paid version, Tag Manager 360, is available for large accounts (zones, approvals, support). Server-side GTM is also free, but hosting the server container costs €10 to €50 per month.
What is the difference between Google Tag Manager and Google Analytics?
GTM is the platform that triggers the code; GA4 is the analytics tool that receives and analyzes the data. GTM does not track anything on its own: it sends events to GA4, Google Ads, Meta, and other tools. We use GTM to set up GA4—not one in place of the other.
Do you need a developer to use GTM?
For the initial setup of the container and the e-commerce data layer, it’s helpful to have a developer or use the CMS. After that, GA4, Google Ads, and Meta tags, as well as click and form triggers, can be configured without coding. A one-day training session equips a marketing manager to handle 90% of their needs independently.
Does GTM slow down the website?
The container itself is lightweight and loads asynchronously. What slows it down is the accumulation of third-party tags (chat, heatmaps, multiple pixels) that it loads. Limit the number of tags, remove unused ones, and defer those that aren’t needed for rendering; the improvement will be reflected in the INP metric of Core Web Vitals.