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.
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).

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.

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.
- In Tag Manager, Admin → Google tag gateway → Continue.
- Scan your site or pick Cloudflare from the list, then Continue.
- On Set up and complete, leave Automated selected (1). Guided (2) gives manual instructions instead.
- 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.
- 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.
- Click Complete setup.

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.
- 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. - 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. - Add location. Send
X-Forwarded-CountryRegion(for exampleLT-KU) or the pairX-Forwarded-CountryandX-Forwarded-Region. - 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.
| Platform | What you configure | Plan or note |
|---|---|---|
| Cloudflare (built-in) | Sign in from GTM or toggle in the dashboard | Free; Cloudflare injects the tag |
| Cloudflare Snippets | A snippet that rewrites the host to fps.goog and adds geo headers | Pro plan or higher |
| Google Cloud Load Balancer | Internet NEG backend + path rule | Built-in route is in beta |
| Amazon CloudFront | Origin + behavior with CachingDisabled, AllViewerExceptHostHeader | Move the behavior above all others |
| Akamai | Origin Server rule + Content Targeting (EdgeScape) | Do not strip Content-Type headers |
| Fastly | Condition, host and two VCL snippets (miss and pass) | Purge the service before testing |
How do you check that it works?
- Open
https://your-domain/metrics/healthy(with your path). The page should sayok. Then openhttps://your-domain/metrics/?validate_geo=healthy, which also checks the location headers. - 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.
- In Chrome DevTools, Network tab, filter by your path. You should see
gtm.jsorgtag/jsrequested from your domain and no request togoogletagmanager.comexcept the noscript fallback. - A week later, compare conversions in Google Ads and key events in GA4 with the week before. Expect a small change, not a jump.
What about consent and the cookie banner?
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
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
| Symptom | Likely cause | Fix |
|---|---|---|
| Scan says "Your site does not use a supported platform" | No supported CDN in front of the site, or it is not detected | Pick the platform manually, use the Guided or manual setup, or put the domain behind Cloudflare |
| Status stays Pending | No diagnostic data has reached Google yet | Wait for traffic, then check /metrics/healthy |
| Container loads twice | Cloudflare injects it and the old snippet is still in the theme | Cloudflare says the injected tag overrides the old one; if you still see two, remove the snippet |
| Tags fire before consent | The banner blocked the Google domain instead of using Consent Mode | Set up Consent Mode in the banner and test denied consent |
| Some pages broke after setup | The measurement path was already used by the site | Change to an unused random path |
| Meta Pixel events still blocked | The gateway covers Google tags only | Server-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.
Related guides
sGTM meaning: server-side Google Tag Manager, explained simply
What sGTM (server-side Google Tag Manager) is, how it works, what it costs on Google Cloud or Stape, what it fixes and when a small site does not need it.
Testing and debuggingGoogle Tag Assistant: how to use it, step by step
How to connect Google Tag Assistant to your site, read the Summary, check one event and its consent state, and fix could-not-connect and no-access errors.
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.