GuidesTrack and report

Google Tag Manager: how to set it up

Google Tag Manager is a free container that holds your tracking tags so you can add, change and remove them without editing your site each time. You install one snippet once, then build tags, triggers and variables inside the Tag Manager interface, test them in Preview mode, and publish a version.

Updated November 16, 20265 steps5 min read

Check my tracking →

$1 today. Cancel anytime before day 7.

Google Tag Manager setup, start to finish
  1. 1Create account and containerOne account per business, one Web container per site.
  2. 2Install the snippetPaste the two code blocks into every page, or use your CMS integration.
  3. 3Add a tag and triggerStart with your Google tag on All Pages, then one conversion tag.
  4. 4Test in Preview modeConfirm each tag fires on the right page or click, and only once.
  5. 5Submit and publishName the version so you can roll back later.
On this page
  1. What Tag Manager is, and what it is not
  2. Create the container and install the snippet
  3. Tags, triggers and variables
  4. Test in Preview, then publish
  5. Consent and privacy settings
  6. Mistakes, access and removal
  7. Questions

What Tag Manager is, and what it is not

Tag Manager is a separate product from Google Analytics. It does not measure anything by itself. It is a delivery layer: it loads the tags that do the measuring, such as the Google tag for GA4 and Google Ads, the Meta pixel, or the LinkedIn Insight Tag.

So is it a tracker? Only in the sense that it fires the trackers you put in it. If you never add a tag, it collects nothing. The reason to use it is control: marketers can ship tracking changes in minutes without a developer release, and every change is versioned.

It earns its place once you have more than two or three tags, or when ad platforms keep asking for new events. For a site with one analytics tag and no ads, the plain snippet is fine.

A rule of thumb for deciding: if you have changed a tracking tag more than twice in a year, or you wait on a developer for each one, put it in Tag Manager. If you have not and will not, leave it alone.

Create the container and install the snippet

Sign in to Tag Manager with a Google account, create an account for your business, then create a container. Choose the Web target platform for a site. Name the container after the site it will live on, and use one container per site.

Tag Manager then shows two code blocks. The first goes as high in the head of every page as you can get it. The second goes right after the opening body tag, as a fallback for browsers with scripts off. WordPress, Shopify, Wix and most builders have a field or an official integration for this, which is safer than editing theme files by hand.

Put the snippet on every page, including the checkout and thank-you pages. A snippet that is missing on the page where the sale happens is the most common reason conversions go unreported. If you track across a payment page on another host, see server-side tracking for the cleaner setup.

Is your tracking counting every conversion?

Runs tracking health checks on your pixels and tags. Sends a weekly performance review.

Tags, triggers and variables

A tag is the thing that runs, such as a GA4 event or a conversion tag. A trigger says when it runs: a page view, a click on a button, a form submission, or a custom event pushed by your site. A variable is a value either of them reads, like the page URL, a click text, or an order value.

Build in this order. Add your Google tag and fire it on All Pages. Then add one event tag at a time, each with the narrowest trigger that is still true. Name them in a pattern you will recognize in six months, for example “GA4 - event - generate_lead”.

For the events that matter to ads, mark them as key events in GA4 and import them into the ad platform. The steps are in GA4 key events.

Test in Preview, then publish

Click Preview, enter your site, and Tag Manager opens a debug session that lists every tag that fired and every tag that did not on each interaction. Click through the real path a customer takes. Submit the form. Go through checkout in a test mode if your store allows it.

Check three things: the tag fired on the right action, it fired once and not twice, and the values it carries are right. A purchase event with an empty value is worse than no event, because it trains the ad platform on a zero.

When it is clean, Submit, give the version a name and a one-line description, and Publish. If something breaks later, open the Versions list and publish the previous one.

Mistakes, access and removal

The usual failures are duplicate tags (the same event hard-coded on the site and again in Tag Manager), triggers that are too broad, no consent handling where the law requires it, and a container with ten people who have publish rights. Give most people Read or Edit and keep Publish to one or two.

To get into a container you do not own, ask the owner to add your Google account under the account’s user management. To remove Tag Manager, delete the two snippets from your site first, then delete the container in its settings. Doing it in the other order leaves a page calling a container that no longer exists.

Sprites reads your Google Ads and GA4 data and can run a tracking health check on a schedule, so you hear when a tag stops reporting. It proposes fixes as approval cards. You still own the container.

Questions

Is Google Tag Manager part of Google Analytics?

No. They are two separate products that work together. Tag Manager loads the tag, and Analytics receives and reports the data. You can use either without the other.

Is Google Tag Manager a tracker?

On its own it tracks nothing. It is a container that fires the tags you add. Whatever those tags collect is what gets tracked, so the privacy impact is the tags’ impact.

Is Google Tag Manager worth it?

Yes once you run several tags or ad platforms. You get versioning, a preview mode and no developer queue for each change. For one analytics tag on a small site, it adds little.

How do I get rid of Google Tag Manager?

Remove both snippets from your site and confirm the pages no longer load the container. Then delete the container from its settings. Remove the snippets first so no page is left calling a deleted container.

How do I stop Google Tag Manager from tracking me?

As a visitor, a browser with tracking protection or a content blocker will stop most tags from loading. As the site owner, use consent settings so tags fire only after a visitor agrees where that is required.

Keep going

Have Sprites check your tracking

  • Runs tracking health checks on your pixels and tags
  • Reads GA4, Search Console and every connected ad account
  • Sends a weekly performance review