Google Tag Manager (GTM) is Google's free tag management system: one container on your site loads every tag you set up in a web interface. So the answer to what is Google Tag Manager is a delivery system for tags such as GA4, Google Ads conversions and the Meta Pixel, run by rules instead of site code.
This guide is part of the analytics, tracking and privacy hub and follows Google's Tag Manager Help documentation as of December 2026. The core recommendation: use one container per website, install GA4 through one method only, and test every change in Preview mode before you publish a version.
What is Google Tag Manager, and what does it actually do?
Google Tag Manager is a tag management system that lets you add and change tracking tags on a website or app without editing its code each time. A tag is a snippet of code that sends data to a platform such as GA4, Google Ads or Meta. GTM decides which tags load, on which pages and after which actions.
Google's Introduction to Tag Manager describes it as a system that allows you "to set up and manage tags on your site without changing your website's code." The same page defines a container as "a collection of tags, triggers, variables, and related configurations installed on a given website," with an ID that starts with GTM. Google advises one container per website or app, not one per page.
GTM works on five platforms. When you create a container you pick Web, iOS, Android, AMP or Server, per Google's account and container setup guide. Web is the common case for marketers. Server containers run on a tagging server you host yourself.
The standard version costs nothing: Google's Tag Manager product page says it delivers tag management "for free," as of December 2026. Tag Manager 360, the paid enterprise edition, adds approvals, zones and unlimited workspaces, according to Google's feature overview as of December 2026.
What should a GTM tracking plan for one conversion list before you build it?
A GTM tracking plan for one conversion lists, before anyone opens the container, the data layer event the site must push, the trigger that matches it, the variables each tag needs and every platform that should receive the conversion. Writing it down first stops duplicate tags and missing values at launch.
A trigger is a rule that fires tags when an event such as a page load, click or scroll happens, per the components page. A variable is a named value that tags and triggers read. The hypothetical plan uses the same booking a Google Ads book appointment conversion goal optimizes on.
| Part | What it holds | Platform that receives it | Check in Preview |
|---|---|---|---|
| Trigger | Custom event booking_confirmed | None | Event appears in the event list |
| Variables | service_type and booking_value | None | Values show in the Data Layer tab |
| Tag 1 | GA4 event generate_lead | GA4 | Hit listed under Hits Sent |
| Tag 2 | Conversion with booking_value | Google Ads | Hit listed under Hits Sent |
| Tag 3 | Pixel event Schedule | Meta | Fires on booking_confirmed |
The data layer is "an object used by Google Tag Manager and gtag.js to pass information to tags," per Google's data layer guide. The site must declare it above the container snippet. Labels in the last column follow Google's Tag Assistant guide.
What are two capabilities of Google Tag Manager, and what can it not do?
Two core capabilities of Google Tag Manager are deploying tags without editing site code and testing every change in Preview mode before it goes live. Version history and user permissions come right after. What GTM cannot do is store, process or report data: that remains the job of Google Analytics 4 or another analytics tool.
| Area | Google Tag Manager can | Google Tag Manager cannot |
|---|---|---|
| Deployment | Load Google and third-party tags from built-in templates or custom code | Change what a platform does with the data it receives |
| Testing | Show in Tag Assistant which tags fired and why, before publishing | Show traffic, sessions or conversion reports |
| Change control | Keep every published version and restore an earlier one | Undo data that a faulty tag already sent |
| Access | Grant Read, Edit, Approve or Publish rights per container | Replace consent decisions; it applies the consent state your banner sets |
| Data | Pass values from the data layer to tags | Store events or user data for later analysis |
The reporting gap is why GTM never replaces GA4. The full split between the two tools sits in Google Tag Manager vs Google Analytics. Campaign tagging also sits outside GTM: UTM parameters label traffic in the link itself, so they work with or without a container.
Google tag or container: the three-condition rule
The Google tag (gtag.js) is a single tag you add to a website to send data to Google products such as Google Analytics 4, Google Ads and Campaign Manager, per Google's gtag.js developer guide. It runs with or without a container. Google's GA4 troubleshooting guide warns: "You should only use either the Google tag or Tag Manager, not both," because both methods together cause overcounting.
The plain Google tag is enough without Google Tag Manager only when three conditions hold together: data goes to Google products only, the default page view and enhanced measurement events cover your needs, and your consent banner sets consent without rules per tag. If any one of them fails, a container saves developer time.
Google's own guidance leans toward containers: "If you are installing a Google tag for the first time, we recommend using Google Tag Manager." Standalone setups now show up as a Google tag upgraded to Tag Manager container, and containers that complete the GTM optimized tagging experience send data to Google destinations without loading gtag.js separately.
How do you install the Google Tag Manager container on a website?
To install Google Tag Manager, create an account and a Web container at tagmanager.google.com, copy the container code from the Workspace tab and paste it as high in the head of every page as possible. Website builders and CMS platforms often offer an integration that adds the code without editing each page.
- Create the account. Go to tagmanager.google.com, enter an account name and country, per Google's setup guide.
- Create the container. Name it after the website and choose Web as the target platform, then click Create and accept the Terms of Service.
- Copy the code. In the Workspace tab, click Install Tag Manager, then Install Manually.
- Paste it on every page. Place the code "as high in the
<head>tag as possible," per the web container guide. - Declare the data layer first. Any data layer code goes above the container snippet, per the data layer guide.
- Publish a first version. Add the GA4 Google tag, test it in Preview, then publish.
The current code is one block in the head. Older installs used two parts, a head snippet and a body snippet. Google states that sites with the previous version "do not need to retag," and the container keeps working as is, as of December 2026.
How do you run a Google Tag Manager test with Preview mode and Tag Assistant?
A Google Tag Manager test runs in Preview mode: click Preview in the Workspace tab, enter your site address, and Tag Assistant opens your site in debug mode. The debug view lists every event and shows which tags fired, which did not and why, while regular visitors keep seeing the published version.
Preview mode is the Google Tag Manager debug mode that runs your current workspace draft as if it were published, for you and anyone with the preview URL. Google's Preview and debug page says the debug interface "is not visible to your regular website visitors."
Tag Assistant is Google's debugging tool, opened from Preview or from tagassistant.google.com, that shows which tags fired and in which order. Its Chrome extension merges the former Legacy and Companion extensions, and Google says Tag Assistant Companion will be deprecated "in the coming months," without a date as of December 2026. With the extension installed, Preview opens your site in a new tab instead of a new window.
Workspaces, versions and permissions: how GTM controls who changes what
Google Tag Manager controls change through three features. A workspace is a separate set of draft changes, a version is a snapshot of the whole container at one moment, and permissions decide who may read, edit, approve or publish. Together they let several people work in one container without publishing each other's drafts.
- Workspaces. Standard accounts can add "up to 2 additional workspaces," three in total with the default, while Tag Manager 360 allows unlimited workspaces, per Google's workspaces page as of December 2026.
- Versions. Google defines a version as "a snapshot of a container configuration at a particular time." To roll back, open Versions, choose Set as Latest Version from the Actions menu and publish the result, per the publishing page.
- Permissions. Container access comes in No access, Read, Edit, Approve and Publish, per Google's user permissions page. Edit cannot publish.
- Size. Google advises optimizing once the Size indicator passes 70%, as of December 2026.
How to delete a Google Tag Manager account
Go to Admin, open Account Settings, open the More Settings menu and choose Delete. Containers use the same path under Container Settings. Deleted items stay in the trash "for 30 days before they are permanently deleted," per Google's trash can page as of December 2026, and a restored container must be republished.
Common mistakes with Google Tag Manager
The most common mistakes with Google Tag Manager come from treating it as a reporting tool or as a place to publish without checks. Each one corrupts data quietly: tags fire twice, fire before consent or stop firing, and the reports in GA4 and Google Ads look normal while the numbers are wrong.
- Installing GA4 twice. A hardcoded Google tag plus a GA4 tag in the container doubles page views. Remove one, as Google's troubleshooting guide advises.
- Publishing without Preview. Submit followed by Publish makes the version live for every visitor at once. Test the full conversion path in Tag Assistant first.
- One container per page or per campaign. Google advises one container per website or app. Extra containers split tags and access.
- Data layer below the snippet. A data layer declared after the container code can miss the first events. Declare it above.
- Everyone gets Publish. Give Edit to most users and Publish to one or two owners.
- Deleting the account but not the code. The snippet stays in the site template after the container is gone. Remove it, and move any tags you still need, in the same release.
- Expecting GTM to fix consent. GTM applies the consent state your cookie consent banner sets; it does not collect consent itself.
