Tracking domains

What is www.googletagmanager.com? Tag Manager and the Google tag explained

www.googletagmanager.com is the Google domain that serves Google Tag Manager containers (gtm.js?id=GTM-…) and the Google tag (gtag/js?id=G-… or AW-…). It delivers the script that then runs the site's tags; the data itself goes to other domains such as google-analytics.com and googleadservices.com. It is official and safe, and if it is blocked, every tag inside the container stops with it.

At a glance

Domain
www.googletagmanager.com
Owner
Google (Tag Manager and the Google tag)
Network filter
googletagmanager

The hosts and paths you may see

RequestWhat it is
www.googletagmanager.com/gtm.js?id=GTM-XXXXXXXA Google Tag Manager web container
www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXXThe Google tag for a GA4 property
www.googletagmanager.com/gtag/js?id=AW-123456789The Google tag for a Google Ads account
www.googletagmanager.com/ns.html?id=GTM-XXXXXXXThe noscript iframe from the GTM install snippet, for browsers without JavaScript
A Tag Manager container request
https://www.googletagmanager.com/gtm.js1?id=GTM-AB12CDE2&l=dataLayer3
  1. gtm.js a Tag Manager container. gtag/js here instead means the Google tag, installed without a container.
  2. id=GTM-AB12CDE the container ID. Compare it with the one in your Tag Manager account; two different GTM- IDs on a page are two containers.
  3. l=dataLayer the name of the data layer the container reads. dataLayer is the default.

Example values. Long requests are shortened to the parameters that matter.

A loader, not a tracker

The script from googletagmanager.com is the toolbox, not the measurement. Once it has loaded, it runs whatever tags are published in the container: GA4, Google Ads, and often Meta, TikTok or LinkedIn pixels too. Those tags send their data to their own domains. That is why a page can load gtm.js without a single analytics request following it: the container is there, but its tags did not fire, were never published, or are waiting for consent.

Is it safe?

Yes. It is Google's official domain for Tag Manager and the Google tag. What the container does depends entirely on what the site owner put in it, so the questions worth asking are about the tags inside: which platforms receive data, and whether they wait for consent.

When it is blocked or missing

  • Blocked by an ad blocker: many block this domain outright, so every tag in the container stops for those visitors, including non-Google pixels loaded through it. Some sites serve the container from their own domain (Google tag gateway or server-side Tag Manager) for this reason.
  • Blocked by a Content Security Policy: the console shows "Refused to load the script". Every visitor is affected; add Google's domains to the policy.
  • Missing on some pages: a checkout or thank-you template that never got the snippet means no purchase tags fire there, however the container is set up.
  • Two GTM- IDs: two containers, often one left from an earlier agency. Tags in both fire, so page views and purchases can count twice.

Find the container ID on any site

  1. Open DevTools (F12 or Cmd+Option+I), go to the Network tab and filter on googletagmanager.
  2. Reload. Each gtm.js?id=GTM-… request is one container, and each gtag/js?id=… is a Google tag.
  3. Click the request and check the status: 200 means it loaded. A red line or (blocked:…) means it did not.

See every tracking domain on your site: the free scan loads your page in a real browser, accepts and rejects the cookie banner, and lists what each platform received, with the request as evidence.

Related

Sources

Based on the platforms' public documentation and the requests their public tags make. Paths and parameters change; check the linked pages if something looks different.

Other tracking domains