Google Tag Gateway for Advertisers: What It Is, How to Set It Up and What It Cannot Do
A plain guide to Google tag gateway for advertisers: what it changes, which setup route fits Cloudflare, Akamai, Fastly, Google Cloud or CloudFront sites, how to check it works, and why it is not server-side tagging.
In short
Google tag gateway for advertisers, previously called first-party mode, serves your Google tag or Tag Manager container from your own domain and routes some of its measurement requests through a path on that domain, which your CDN or load balancer forwards to Google. It only affects Google tags, the tags still run in the browser, and consent rules still apply.
Google tag gateway for advertisers is a Google feature that loads your Google tag (gtag.js) or Google Tag Manager container from your own website domain instead of googletagmanager.com, and sends some of the measurement requests from those tags to a path on your domain, such as /metrics. Your content delivery network (CDN), load balancer or web server then forwards those requests to Google. Until May 2025 it was called first-party mode. Google presents it as a way to get more control over your data, more accurate Google Analytics reports and more measured conversions.
What Google tag gateway changes
In a standard setup the visitor's browser downloads the tag from a Google domain and sends hits straight back to Google. With the gateway, Google's developer documentation says your infrastructure sits between your website and Google's services: the tag loads from your domain and some measurement requests go to Google under your first-party domain. If you are unsure what first party means here, our explainer on first-party vs third-party cookies covers the difference.
In practice you reserve a path on your domain that no page already uses. Requests to that path are forwarded to a Google host named after your tag ID, for example G-12345.fps.goog. Nothing about what the tag collects changes. It is the same Google Analytics or Google Ads tag, running in the same browser, just fetched and sent through your domain. You can switch it on from the Google tag settings in Google Ads, Google Analytics, Campaign Manager 360 or Tag Manager, and since the May 2025 rename it has supported both client-side and server-side tags.
The setup routes and when each was added
Which route you use depends on what sits in front of your website. The Tag Manager release notes give these dates:
| Your infrastructure | Setup route | Added |
|---|---|---|
| Cloudflare | Automated integration from Tag Manager or the Google tag, or guided setup with Cloudflare Snippets | Option added 9 October 2024, automated Tag Manager setup 10 December 2024, renamed tag gateway 8 May 2025 |
| Akamai | Added as a CDN option, then an automated integration that detects your zones | 29 January 2026, integration 14 May 2026 |
| Fastly | Automated integration that injects routing rules for you | 14 May 2026 |
| Google Cloud (Global external Application Load Balancer) | One-click setup from the Google tag settings | Beta 5 January 2026, generally available 1 June 2026 |
| Amazon CloudFront | Guided workflow in Tag Assistant that walks you through the AWS console | 3 June 2026 |
| Any other CDN, load balancer or web server | Manual self-service setup from Google's developer guide | No launch date in the release notes |
Two details catch people out. The Google Cloud route needs a Global external Application Load Balancer: Google states the classic Application Load Balancer is not supported, so you migrate first, and the person setting it up needs the Google Tag Gateway Admin role in the Cloud project plus publish rights on the Tag Manager container. Google says the integration itself is free and you pay normal load balancer charges. The second detail is location, covered in the manual setup section below.
How to set it up in Tag Manager with Cloudflare
Cloudflare was the first CDN option to appear in the Tag Manager release notes, in October 2024. Before you start, check your Cloudflare role: Google requires Super Administrator, Administrator or Zaraz Admin, or Domain Administrator if your account uses domain-scoped roles. Then:
- 1In your Tag Manager container, go to Admin and select Google tag gateway.
- 2Select Continue, enter your website address under Scan your site and select Scan.
- 3Confirm Cloudflare is selected and select Continue. Show all platforms lists the other CDNs if detection picked the wrong one.
- 4For the automated route (the default), confirm the measurement path on the Set up and complete screen and select Sign into Cloudflare.
- 5In the Choose website domains panel, activate the domains you want, select Done, then select Complete setup. Closing the panel without selecting Done resets your choices.
- 6For the guided route instead, open More ways to set up and choose Guided. The Tag Assistant version uses Cloudflare Snippets, which needs a Cloudflare Pro plan or higher, and takes you through creating the snippet, adding the expression, deploying, running health checks and re-tagging the site.
If you only use a standalone Google tag without Tag Manager, the same Google tag gateway screen sits under the tag's Admin settings: in Google Ads select the Tools icon, then Data manager, then Manage under Google tag, then Admin; in Google Analytics go to Admin, Data streams, choose a stream, then Configure tag settings, Admin. Google's Cloudflare guide for the Google tag says the automated route rewrites your scripts so you do not re-tag the site by hand, but if you use consent mode you must turn off automated script set up and tag the site yourself. It names a plan requirement only for the guided Snippets route.
How to check it is working
After setup you return to the Google tag gateway screen, which lists your domains, each with a status. First-party means the gateway is active. Not started means it was never activated. Paused means it is paused. Pending means it is enabled but Google has not received diagnostic data yet, which you can expect straight after setup.
To confirm hits really take the new route, make sure at least one tag in the container fires, open Tag Assistant, enter your site address and click around to trigger tags. Then open Summary, Output, Hits Sent and check that hits go to your measurement path rather than a Google domain. On a manual setup you can also visit your measurement path followed by /healthy (for example example.com/metrics/healthy) in a browser: Google's guide says it should show the text ok.
Manual setup and the location header problem
The manual route works with any CDN or proxy that can forward requests to an external host. You pick a measurement path, forward it to your tag ID's fps.goog host, and replace the script source in every page's head so gtag.js or gtm.js loads from that path. The step people miss is location. Normally Google reads a visitor's country and region from the IP address, but through a gateway it sees your CDN's address. Google's location article says the CDN must add geolocation headers, or region reports, consent mode regional defaults and data quality suffer:
- X-Forwarded-CountryRegion in ISO 3166-2 form, such as US-CA, is the preferred header.
- X-Forwarded-Country plus X-Forwarded-Region is the accepted alternative.
- X-Forwarded-For should carry the visitor's real IP address, unmasked.
- No CDN rule should strip or rewrite these headers.
Google says the Cloudflare one-click, Akamai automated and Google Cloud integrations typically handle these headers for you. Manual Akamai, Amazon CloudFront, Azure Front Door and Cloudflare Enterprise manual setups need them configured by hand.
What Google tag gateway cannot do
The gateway is a narrow feature, and most confusion comes from treating it as more than it is.
- It covers Google tags only. Your Meta Pixel, TikTok Pixel, LinkedIn Insight Tag and every other vendor still load from their own domains exactly as before.
- Tags still run in the visitor's browser. If the page is closed before a tag fires, or a script error stops it, the gateway changes nothing.
- It is not server-side tagging. There is no server where you can inspect, enrich or filter events before Google receives them.
- It is not a consent tool. Google says the feature changes how Google tags fire and tells you to adopt consent mode and review your consent settings first. Our guide to Google consent mode v2 explains the signals.
- It does not change what the law requires. Routing hits through your domain does not remove the need for a consent banner where you needed one before.
Be careful with uplift figures. Google's announcement says advertisers saw an 11% uplift in signals, and its footnote explains that this compares Google tag script loads with and without the gateway over one week in April 2025. That is a vendor measurement of script loads, not a benchmark for your conversions. Later figures from Google, CDN partners and agencies are vendor claims too. Measure your own: note conversions and sessions in the weeks before and after switching, with no other tracking changes in between.
Tag gateway vs server-side GTM vs a conversions API platform
| Google tag gateway | Server-side GTM | Conversions API platform | |
|---|---|---|---|
| What moves to your domain or a server | Script loading and hit routing for Google tags | Event processing in a server container you control | Conversion delivery from the vendor's servers to each ad platform |
| Where tags run | Still in the browser | Browser tags send to the server, which forwards | A snippet in the browser, conversions forwarded server-side |
| Vendors covered | Google only | Any vendor with a server tag | The destinations that vendor supports |
| Running cost | Your normal CDN or load balancer bill (Google says its Cloud integration is free; the Cloudflare Snippets route needs a Pro plan or higher) | Cloud hosting for the container, billed by your cloud provider or a managed host, plus the time to maintain it | A subscription, which varies by vendor |
Our comparison of server-side GTM and conversions API platforms goes deeper into the last two columns, and what a conversions API is explains why Meta and TikTok need their own server-side route.
Who should turn it on
If you spend on Google Ads or rely on GA4 and your site already sits behind Cloudflare, Akamai, Fastly or a Google Cloud load balancer, the automated route needs no new infrastructure and only a few clicks, so it is worth switching on and measuring. Sites on hosts with no CDN layer you control, or whose spend is mostly Meta or TikTok, gain little, because the gateway leaves those pixels untouched. For those platforms you need a server-side route of their own, such as a conversions API. EndFrame is one option: it records conversions with its own snippet and forwards them to Meta Conversions API, TikTok Events API, GA4 Measurement Protocol or a webhook. If GA4 already receives a conversion through Google tags, do not also send it through the Measurement Protocol, because GA4 does not deduplicate.
Frequently asked questions
Does Google tag gateway get around ad blockers?
Google does not describe it that way. Its help pages talk about data control, privacy and recovering measurement signals. Requests no longer go to a Google domain, so blockers that only match Google hostnames may miss them, but blockers also use other rules, and the result depends on each blocker. Treat any blocker effect as a side effect you cannot rely on, not a feature.
Do I need to change my Google tag snippet?
Not on the automated routes: Google says automated setup configures your scripts, and the Akamai and Fastly integrations inject the routing rules from the Google tag interface. On the guided or self-service route you must replace every instance of the Google tag script source with your measurement path, for example /metrics/. If you skip that, browsers keep requesting the scripts from Google and bypass the gateway.
Can I use Google tag gateway together with server-side GTM?
Yes. The Tag Manager release notes say that since the May 2025 rename the gateway supports both client-side and server-side tags. The two do different jobs: the gateway changes where Google scripts load from and where hits are sent, while the server container is where you inspect, change and forward events. Using one does not replace the other.
Sources
- 1.Set up Google tag gateway for advertisers in Google Tag Manager with Cloudflare - Tag Manager Help
- 2.Release notes - Tag Manager Help
- 3.Set up Google tag gateway for advertisers - Google for Developers
- 4.How Google tag gateway for advertisers sets location - Tag Manager Help
- 5.Set up Google tag gateway for advertisers with Google Cloud Load Balancer - Tag Manager Help
- 6.Enhance your conversion measurement and ad performance with Google tag gateway for advertisers - Google Ads Help
Try EndFrame
Add a server-side path for your conversions.
EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.
No credit card required