- Google tag gateway serves Google's tag scripts and measurement requests through your own domain instead of Google's; it changes the delivery path, not what is measured.
- It only covers Google tags; Meta, TikTok and other pixels keep loading from their own domains.
- Server-side GTM is a different layer: a container that receives events, processes them and forwards them to any destination. The two can be combined.
- On a standard Shopify store you do not control the CDN in front of the storefront, so the usual one-click setup does not fit; a server-side container or a headless storefront is the realistic path.
- If your purchases already reach Google Ads from a server, the gateway adds less: it mainly helps the browser tag on landing and product pages.
Google tag gateway for advertisers lets you load Google's tag scripts, and send Google's measurement requests, through your own website's domain instead of directly to Google's. It runs on infrastructure you control: a content delivery network (CDN), a load balancer, a web server or a server-side tagging container. Google says it makes measurement more resilient. On a standard Shopify store, though, you do not control the layer in front of your storefront, so most merchants cannot use the simple setup.
This guide explains what the gateway does and does not do, how it differs from server-side Google Tag Manager, what is possible on Shopify, and how to decide whether you need it.
Key points
- The gateway is a delivery change for Google tags, not a new tracking feature.
- It does not touch non-Google tags, does not bypass consent and does not change how long browsers keep cookies set by scripts.
- Google recommends combining it with server-side tagging for the most durable setup.
- For Shopify stores, the question is less "is it useful?" and more "is there a path to set it up?".
What does Google tag gateway actually do?
Normally, the browser loads gtag.js or gtm.js from googletagmanager.com and sends measurement hits to Google's collection endpoints. With the gateway on, the browser loads the same script from a path on your own domain, such as yourshop.com/metrics/, and the measurement requests go to that path too. Your CDN or server forwards them to Google.
Because the requests now look first-party, filters that block known Google domains no longer catch them. Google also says that tags set up through the gateway encrypt user-provided data before it is sent, and that it is adding confidential computing.
What it does not do
- Other vendors. Meta, TikTok, Pinterest and other pixels still load from their own domains and send to their own endpoints.
- Consent. Consent Mode and your consent banner apply as before. The gateway does not make a declined visitor trackable.
- Browser cookie limits. Safari's tracking prevention limits cookies set by scripts. Serving the script from your domain does not change that by itself.
- Purchases the tag never sends. If the thank-you page does not load or the tag is not on it, there is nothing to route.
Why is Google recommending it?
Blockers and network filters stop a share of Google measurement requests before they reach Google. The gateway is Google's way of recovering part of that signal for all its tag-based products at once, which is why the prompt appears in Google Ads, GA4 and Tag Manager alike. Google reported that advertisers who set it up saw an 11% uplift in signals. That is Google's average across its advertisers, not a forecast for your store: what you recover depends on how many of your requests are blocked today.
Google tag gateway vs server-side GTM
| Google tag gateway | Server-side GTM | |
|---|---|---|
| Main purpose | First-party delivery of Google tag scripts and hits | Receive, process and forward measurement data |
| Destinations | Google products only | Any destination a server tag supports |
| Changes the data? | No | Yes: filter, enrich, transform |
| Needs a server container? | No, a CDN or server path is enough | Yes |
| Running cost | Little or none on a supported CDN | Hosting for the tagging server |
| On a standard Shopify store | Hard: you do not control the edge in front of the store | Possible: the container runs on its own subdomain |
| Combine them? | Yes | Yes |
Server-side GTM does not automatically serve your Google scripts first-party; that is a separate configuration. And a store that "has server-side tracking" may not have a GTM server container at all: many tracking tools send server events from their own servers. Read server-side tracking in the glossary for the general idea.
Can you use Google tag gateway on Shopify?
The quickest setup is a CDN integration, such as Cloudflare's, for sites already served through that CDN. A Shopify-hosted storefront is served by Shopify's infrastructure. To put your own CDN in front of it, Cloudflare documents an "orange-to-orange" setup in which your Cloudflare zone proxies the traffic before Shopify does. Cloudflare notes that you then take on more responsibility for that traffic and lists settings that interfere with Shopify, such as one that blocks Shopify's certificate renewal. Check with Shopify support before you route your storefront through a proxy.
The realistic options for most Shopify merchants:
- A server-side GTM container on a subdomain, configured to serve Google scripts first-party. This adds hosting for the container.
- A headless storefront, where you control the hosting and the CDN, so the standard gateway setup fits again. See headless setup.
- Google tags managed by an app. If the Google & YouTube app or a tracking tool loads your Google tags, whether the gateway applies depends on what that app supports.
A worked example: what the gateway can and cannot recover
An example store has 1,000 purchases a month from shoppers who clicked a Google ad. Here is where the browser tag loses them, and what each fix covers:
| Reason the browser tag missed a purchase | Purchases | Gateway helps? | Server upload helps? |
|---|---|---|---|
| Request to a Google domain blocked by a filter | 50 | Yes | Yes |
| Script blocked by a browser that blocks all trackers | 20 | Partly | Yes |
| Thank-you page never loaded | 25 | No | Yes |
| Visitor declined consent | 40 | No | No, by design |
| Purchases missed in total | 135 |
The gateway addresses the first rows, which come from blocked Google requests. A server upload of each order, with the click id stored at landing, addresses every row except declined consent, because it does not depend on the browser at all. For purchases, the server path does more. The gateway still helps the earlier steps, such as page views and add-to-carts that feed remarketing lists, which only the browser tag sends.
Should you enable Google tag gateway?
Consider it if Google Ads or GA4 are a large part of your measurement, a noticeable share of your traffic blocks Google requests, and you have a supported path: a server-side container, a headless storefront or a site on a CDN you control. The benefit is smaller if your purchases already reach Google from a server, or if most of your spend goes to platforms outside Google, which the gateway does not cover. Before a peak season, the BFCM tracking checklist helps you see where your data is lost first.
How ROASaurus fits next to the gateway
ROASaurus does not serve Google's scripts through a gateway. Its storefront and checkout load the Google tag from Google's own domain, as a conversion linker on landing and as the purchase tag in Shopify's checkout. Instead, ROASaurus covers the purchase from the server: every paid web order is uploaded to Google Ads through the Data Manager API with the click id it stored first-party at landing, so a blocked Google request on the thank-you page does not lose the sale. ROASaurus's own collection runs on your shop's domain through the Shopify app proxy, so its click and visitor data do not depend on a third-party domain.
If you run a server-side GTM container, add it under Connections › Tracking & destinations as a destination: ROASaurus then posts purchases and other events to your container in GA4 Measurement Protocol format, where your server tags can forward them, for visitors with marketing consent. ROASaurus does not push a GTM data layer on the storefront or supply GTM container templates today; if your setup depends on those, keep your existing GTM web container for that part. The server-side tracking page explains the full setup, and Klaviyo and Shopify tracking covers the email side.
Sources
- Google Tag Platform: What is Google tag gateway for advertisers?
- Google Ads Help: Enhance your conversion measurement with Google tag gateway for advertisers
- Google Ads Help: About enhanced conversions
- Cloudflare: Shopify provider guide (O2O)
- Google Tag Manager: Send data to server-side Tag Manager