Fortunitus Check your tracking

Google tag gateway: what it is and how to set it up

Google tag gateway loads your Google Tag Manager container and sends Google measurement hits through a path on your own domain. It is free, needs no tagging server and takes minutes on Cloudflare. It also has limits that most posts about it skip, so this guide covers both.

Short answer: Google tag gateway for advertisers serves the Google tag or GTM container from a path on your own domain, such as example.com/metrics, and routes Google measurement hits through it. Your CDN or load balancer forwards that path to Google. Set it up in Tag Manager under Admin → Google tag gateway. With Cloudflare it is a few clicks; on other CDNs you add one routing rule and change the tag snippet. It only covers Google tags.

What does Google tag gateway do?

In a normal setup the page downloads gtm.js or gtag.js from www.googletagmanager.com, and the tags then send hits to Google domains. With the gateway, the browser asks your own domain for the script, and your CDN quietly passes the request to Google's gateway endpoint (a host under fps.goog). Google's documentation says that some measurement requests then also go to Google through your domain. The tags inside the container stay exactly as they are.

Four steps: the page loads gtm.js from example.com/metrics, the CDN forwards /metrics/* to fps.goog with country and region, GA4 and Google Ads hits use the same path, Google keeps Google cookies and drops the rest.

Two details matter for privacy reviews. The CDN adds the visitor's country and region as request headers, because the request now reaches Google from your CDN rather than from the visitor. And Google states that any non-Google first-party cookies forwarded through the gateway are dropped, so your session or cart cookies are not processed.

Is Google tag gateway worth turning on?

Google's own announcement says advertisers who adopted it saw on average 14% more conversions, and up to 7% lower cost per acquisition. Those are Google's averages across its advertisers, not a promise for your site. Where the gain comes from is simple: some ad blockers and privacy tools block requests to googletagmanager.com and google-analytics.com by domain. A request to your own domain does not match those rules. Blockers that match URL patterns can still catch it, which is one reason Google suggests a random path instead of /gtm.

Our take: if you run Google Ads and your site already sits behind Cloudflare, turn it on. It costs nothing, the change is reversible, and more conversions reaching Google Ads helps bidding. If your site is not behind a supported CDN, moving DNS just for this is a bigger decision, and the gain is usually a few percent of hits, not a rescue for broken tracking. Fix missing or duplicate tags first; the website tracking checker shows what a page loads today.

Which platforms support it?

Open Tag Manager, go to Admin and find Google tag gateway in the container column (1). A container that has never used it shows Not started (2).

Google Tag Manager Admin screen for the fortunitus.com container: Google tag gateway row with a Not started badge.
Tag Manager, November 2026. 1: the Google tag gateway setting. 2: its status, Not started.

Click it, read the introduction and click Continue. The Check compatibility step lists the platforms with a built-in setup: Akamai, Amazon CloudFront, Cloudflare, Fastly, Google Cloud Load Balancer and Webflow. You can type your URL into Scan your site and let Google detect the platform. We scanned fortunitus.com, which runs on Hostinger without Cloudflare in front, and got the warning you see here (1). That does not rule the site out; it means the built-in route (2) is not available and you would set it up manually or put the site behind a supported CDN first.

Check compatibility step: warning Your site does not use a supported platform after scanning fortunitus.com, with the list Akamai, Amazon CloudFront, Cloudflare, Fastly, Google Cloud Load Balancer, Webflow.
1: the scan result for a site hosted on Hostinger. 2: Cloudflare, the fastest route when your DNS is already there.

Google's 2026 announcement also lists in-UI integrations with the website builder Duda and calls the Google Cloud one a beta.

How do you set it up with Cloudflare in GTM?

You need a Cloudflare user with the Super Administrator, Administrator or Zaraz Admin role (or Domain Administrator if you use domain-scoped roles), and admin access to the GTM container.

  1. In Tag Manager, Admin → Google tag gateway → Continue.
  2. Scan your site or pick Cloudflare from the list, then Continue.
  3. On Set up and complete, leave Automated selected (1). Guided (2) gives manual instructions instead.
  4. Open Your container will be updated and check the Measurement path (3). GTM suggests a random four-letter path; keep it unless you have a reason not to. It must not exist on your site already.
  5. Click Sign into Cloudflare (4), allow the access Google asks for, choose the domains in Choose website domains and click Done. Closing that panel without Done resets your choice.
  6. Click Complete setup.
Set up and complete step for Cloudflare: More ways to set up menu with Automated and Guided, the measurement path field with example.com/xiyd, and the Sign into Cloudflare button.
1: Automated, the default. 2: Guided. 3: the measurement path GTM proposed. 4: Sign into Cloudflare. We stopped here; nothing was changed on this container.

When it works, the Google tag gateway screen shows Active and lists each domain with a status: First-party (running), Pending (enabled, no diagnostic data yet), Paused or Not started. Give Pending a day of traffic before you worry.

Or start from the Cloudflare dashboard

In Cloudflare, open the Google Tag Gateway page, pick the domain, switch on Turn on and configure Google tag gateway, enter your tag ID and an unused measurement path, and save. Two things from Cloudflare's documentation surprise people. First, Cloudflare then injects the container itself, and it overrides a GTM script that is already on the page. Second, the setting works per zone: it applies to every hostname and subdomain of example.com, and you cannot switch it off for one subdomain. If a subdomain needs different tags, use a Page Hostname condition in GTM triggers. Cloudflare says the gateway is free and its requests do not count toward other Cloudflare billing.

How does the manual setup work?

Every other CDN, load balancer or web server follows the same recipe. Google's developer guide has exact steps for Google Cloud, Cloudflare Snippets, Akamai, Amazon CloudFront and Fastly.

  1. Pick a path. Unused on your domain, not /, at most 100 characters. One path per GTM container or standalone tag ID. A single container covers all GA4 and Google Ads tags inside it.
  2. Route it. Add an origin or backend pointing to GTM-XXXXXX.fps.goog (your ID), override the Host header to the same value, forward all cookies and query strings, and send /metrics/* there with higher priority than your default rule.
  3. Add location. Send X-Forwarded-CountryRegion (for example LT-KU) or the pair X-Forwarded-Country and X-Forwarded-Region.
  4. Change the snippet. The manual route does not rewrite your pages. Replace the script source on every page.
<!-- gtag.js: before -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-12345"></script>
<!-- after -->
<script async src="/metrics/"></script>

<!-- GTM: in the standard snippet change only the src line -->
j.src='/metrics/?id='+i+dl;

The <noscript> iframe is not supported through the gateway, so keep the standard one pointing to www.googletagmanager.com.

PlatformWhat you configurePlan or note
Cloudflare (built-in)Sign in from GTM or toggle in the dashboardFree; Cloudflare injects the tag
Cloudflare SnippetsA snippet that rewrites the host to fps.goog and adds geo headersPro plan or higher
Google Cloud Load BalancerInternet NEG backend + path ruleBuilt-in route is in beta
Amazon CloudFrontOrigin + behavior with CachingDisabled, AllViewerExceptHostHeaderMove the behavior above all others
AkamaiOrigin Server rule + Content Targeting (EdgeScape)Do not strip Content-Type headers
FastlyCondition, host and two VCL snippets (miss and pass)Purge the service before testing

How do you check that it works?

  1. Open https://your-domain/metrics/healthy (with your path). The page should say ok. Then open https://your-domain/metrics/?validate_geo=healthy, which also checks the location headers.
  2. Run Tag Assistant on the site, click around so tags fire, and open Summary → Output → Hits Sent. The hits should go to your measurement path.
  3. In Chrome DevTools, Network tab, filter by your path. You should see gtm.js or gtag/js requested from your domain and no request to googletagmanager.com except the noscript fallback.
  4. A week later, compare conversions in Google Ads and key events in GA4 with the week before. Expect a small change, not a jump.

This is the part to check before you switch it on. Google's help page warns that the gateway changes how Google tags fire and tells you to use Consent Mode if tags depend on consent. The reason is practical: many banners block tracking by blocking the googletagmanager.com script. When the container comes from your own domain, or Cloudflare injects it, that blocking rule no longer matches. With Consent Mode set up properly, the tags read the consent state themselves, so the source of the script does not matter. After setup, open the site in a private window, refuse cookies and check in Tag Assistant that the consent state is denied and no ad cookies are written.

Google tag gateway vs server-side GTM

Comparison of standard tag, tag gateway and server-side GTM: script source, server needed, monthly cost, coverage of Meta and others, data editing, setup time.

They solve different problems. The gateway is a proxy for Google's own tags: nothing runs on your side, and you cannot change what is sent. Server-side GTM is your own tagging server. It can feed the Meta Conversions API and other platforms, remove or enrich fields before they leave, and set cookies from your server. It also costs money and needs maintenance. If you only advertise on Google, start with the gateway. If Meta or TikTok spend matters, or you have to control what data leaves, you need a server container, and the gateway adds little on top of it.

Common problems

SymptomLikely causeFix
Scan says "Your site does not use a supported platform"No supported CDN in front of the site, or it is not detectedPick the platform manually, use the Guided or manual setup, or put the domain behind Cloudflare
Status stays PendingNo diagnostic data has reached Google yetWait for traffic, then check /metrics/healthy
Container loads twiceCloudflare injects it and the old snippet is still in the themeCloudflare says the injected tag overrides the old one; if you still see two, remove the snippet
Tags fire before consentThe banner blocked the Google domain instead of using Consent ModeSet up Consent Mode in the banner and test denied consent
Some pages broke after setupThe measurement path was already used by the siteChange to an unused random path
Meta Pixel events still blockedThe gateway covers Google tags onlyServer-side GTM with the Meta Conversions API

Frequently asked questions

What is Google tag gateway for advertisers?

A free Google feature that serves the Google tag or a GTM container from a path on your own domain and routes Google measurement requests through it. Your CDN or load balancer forwards that path to Google.

Is Google tag gateway free?

Yes. Google charges nothing, and Cloudflare says gateway requests do not count toward other Cloudflare billing. Other CDNs bill the forwarded traffic like any other requests.

Does Google tag gateway bypass ad blockers?

Partly. It avoids blockers that match Google domains such as googletagmanager.com. Blockers that match URL patterns or script content can still block it, so a random measurement path works better than /gtm.

Does Google tag gateway work for Meta Pixel or TikTok?

No. It only routes Google tags such as GA4, Google Ads and Floodlight. For Meta and other platforms you need server-side tagging, for example a server GTM container with the Meta Conversions API.

Do I need Cloudflare for Google tag gateway?

No. Cloudflare has the quickest setup, but Google Cloud Load Balancer, Akamai, Amazon CloudFront, Fastly, Webflow and any CDN or server that can forward a path to Google work too.

Check your own setup in 20 seconds

Run any website through the free tracking checker: GA4, Google Tag Manager, Google Ads, Meta Pixel, cookie banner and what sits inside the GTM container.