What the gateway does
Normally your site loads gtm.js or gtag.js from a Google domain, and measurement requests go back to Google domains. Google tag gateway puts your own infrastructure in the middle. Google describes it as deploying a Google tag using your own first-party infrastructure, hosted on your website's domain.
In practice the gateway does two things:
- Serves Google's scripts from your domain, for example from a path like
example.com/metrics. - Routes measurement requests to a first-party endpoint on your domain, which passes them on to Google.
It is set up in the CDN, load balancer or web server you already run. Cloudflare offered a one-click setup at launch, and Google also documents setups for Google Cloud's load balancer and other CDNs.
How it differs from server-side tagging
Google's own documentation draws the line this way:
| Google tag gateway | Server-side Google Tag Manager | |
|---|---|---|
| Job | Delivery: getting tags and requests through on your domain | Processing: receiving events on a server you control |
| Where it runs | Your CDN or load balancer | A server container |
| Can change the data | No | Yes: clean, enrich or filter events before they are sent |
| Platforms | Google tags | Any platform with a server-side tag, including Meta, TikTok and Pinterest |
Google describes the two as complementary. The gateway can route traffic to a server-side container, and Google recommends completing both steps for the most durable tagging setup.
Which one do you need?
- Only Google tags, and you run a supported CDN: the gateway alone gets Google's tags onto your domain with little effort.
- Several ad platforms, or you want control over what is sent: you need a server container. The gateway does not send conversions to Meta, TikTok or other platforms from a server; that is what conversions APIs and server-side tags are for.
- Both: the gateway delivers Google's scripts from your domain, and a server container processes the events and forwards them everywhere.
Tiide hosts the server container part: a server-side Google Tag Manager container on your own subdomain, with the GA4 client and routing set up for you.
Free tool
See how much conversion data your site is losing, in about a minute