Google tag gateway for advertisers lets you load the Google tag or a GTM web container from your own domain. It also routes some measurement requests through that domain to Google. The tags still run in the browser; gateway does not give you a server container for processing events.

If you already use a CDN and want to serve Google tags through it, gateway is worth evaluating. Sending CRM payment events, removing fields before forwarding or sharing events with Google, Meta and TikTok requires a separate processing setup. Gateway can be one part of it.

How the request path changes

Normally, the browser loads the script from a Google domain. With gateway, it requests a dedicated path on your domain, which your infrastructure forwards to Google. An address such as https://example.com/metrics/ is just an example; you choose and configure the path for your site.

  1. Browser

  2. Path on your domain

  3. CDN or load balancer

  4. Google

Google says gateway routes some measurement requests. You may still see Google domains in the browser's Network panel after a successful deployment. Verify the requests for the tag you configured. Architecture and setup guide.

Here, first-party refers to the domain contacted by the browser. Google still receives the data; gateway does not store your analytics locally. It also cannot guarantee delivery through every blocker or recover every missing event.

Gateway, web GTM and server-side GTM

TaskWeb GTMGoogle tag gatewayServer-side GTM
Manage browser tagsYesUses an existing Google tag or containerDoes not replace the web container
Load Google scripts through your domainNeeds a separately configured routeIts core purposePossible with separate script-serving configuration
Process an event on the server before forwardingNoNo interface for custom server-side processingYes, through clients, variables, transformations and tags
Send to Meta CAPI or TikTok Events APINeeds a server integrationDoes not create one by itselfThrough the corresponding integration
Receive a payment event after the tab closesNeeds a backend sourceNeeds a backend sourceNeeds a backend source and configured ingestion

Loading a web container through gateway does not turn its third-party pixels into server API calls. Running sGTM on track.example.com is a separate consideration: it does not mean gtm.js already loads from your domain. Google separately documents first-party script serving through a CDN or tagging server for sGTM users. Event processing is covered in the server-side tagging introduction.

Work out where each event originates and where it needs to go before choosing how to route it. If the CRM confirms payment two days later, you still need to build that integration. Gateway will not create its webhook, queue or delivery log.

Choose a deployment option

Start with the infrastructure already serving the website. Moving the entire site to another CDN for a tagging feature is a separate decision with separate costs.

Starting pointWhat to check
The website already uses CloudflareEvaluate the integrated gateway setup
Another CDN or load balancerCheck the supported setup method and required routing capabilities
sGTM is already runningAudit script loading separately from event routing
Nobody owns DNS/CDN changes or can roll them backAssign an owner and arrange access first

Alongside manual setup, Google offers CDN integrations. As of November 13, 2026, Cloudflare lists its built-in gateway integration as free and excludes gateway requests from billable usage for its other products. Allow for the work involved in migration, setup and maintenance. Cloudflare documentation.

Cloudflare's built-in integration and the manual Origin Rules setup have different requirements. Google's instructions require Enterprise for the manual method; that requirement does not apply to every gateway deployment.

Check the existing setup before making changes

Save the current configuration and record a test journey: load a page, submit a form and confirm the outcome. Note which events reach each destination and how many times they arrive. Repeat that journey after setup to compare the results.

Choose a path that no application already uses. Check before reserving /analytics/, /api/ or any other address. In a manual setup, each separate container or standalone Google tag needs its own path. Multiple Google tags within one container do not each need a separate configuration.

Confirm who will make and roll back the change, that they have GTM and CDN access, and that CSP allows the required requests. Check how the container is currently installed. A CMS plugin, application code and CDN injection can each load it; adding gateway should not introduce a duplicate installation.

Review the subdomains too. Cloudflare applies gateway across the zone, with no separate enablement for individual subdomains. Hostname triggers in GTM can stop tags from firing, but the container may still load. If a subdomain must not load the container at all, verify that the integration can meet that requirement before enabling it.

Connect Cloudflare through GTM

With a web container already installed, open Admin → Google tag gateway in GTM, review the measurement path, connect the Cloudflare account and select domains. Check labels and available steps against Google's current instructions.

Only select domains you have reviewed. The interface may list sites that do not have the current tag, and selecting them can install it automatically. Check what runs on each site and how its CMP controls tags first.

After setup, inspect the HTML received by the browser and the Network panel. The CDN may rewrite the response, so checking the origin template alone is insufficient. Adding another GTM snippet to clear a status warning can leave you with two installations.

For manual deployment, follow the provider's guide to configure the route and change the script URL. Host handling, geolocation, caching, cookies and existing routes vary by infrastructure, so a single nginx snippet will not fit every site. Validate the route before switching the loader.

Google warns that enabling gateway can change tag firing behavior. A CMP that blocked the old script URL may not block the new one. Checking that the banner appears will not detect this.

The Cloudflare setup guide for the Google tag explicitly requires turning off automated script setup when using Consent Mode. This setting controls automatic script installation; it does not rule out automatic CDN route configuration. Check it in the provider's interface, and keep control over tag loading so consent commands run in the correct order. Google: when to re-tag your website.

In basic consent mode, Google tags remain blocked until the user grants consent. In advanced consent mode, tags may send cookieless pings while consent is denied. A request before consent can therefore be expected in advanced mode. Equally, the absence of an advertising cookie does not mean no data was sent. Google's description of both modes.

In a clean browser profile, test what happens before the user makes a choice, after they decline, after they accept and after they withdraw consent. Inspect the order of default/update commands, tag states, network requests and cookies. Document the expected behavior for your chosen mode, then compare it before and after gateway. If tags are injected automatically, check that this does not bypass the CMP's loading controls.

Google also documents first-party cookie handling in gateway: Google first-party cookies are used, while forwarded non-Google cookies are dropped. Inspect URLs and event payloads as well: filtering cookies will not remove sensitive information from a query string or event body.

Verify that events reach the right destination

Use this checklist to verify your implementation. An Active status alone does not establish that events arrive correctly.

CheckAcceptance criterion
LoaderThe intended container loads through the expected path, without a second independent installation
Test eventIts name, destination, parameters and count match the baseline test
ConsentAll four scenarios behave as required by the chosen mode
WebsiteForms, authentication and existing routes still work
Browsers and devicesThe same test journey works in the browsers your audience uses
SubdomainsThe main site and affected subdomains behave as intended
RollbackSomeone owns the rollback, with documented steps and a test to confirm recovery

In Tag Assistant, inspect routing under Summary → Output → Hits Sent. For manual setups, Google documents /metrics/healthy and /metrics/?validate_geo=healthy, both returning ok; substitute your own path. An ok response confirms those route and geolocation checks. You still need to verify that a purchase reaches the intended property.

In Network, investigate CSP errors, 4xx/5xx responses, unexpected redirects and HTML returned where a script was expected. Then check the destination system, allowing for its processing delay. Two HTTP requests do not necessarily represent duplicate conversions. Inspect what each request carries and how the destination counts it.

Separate tracking improvements from sales growth

More measured conversions after deployment may indicate recovered signals, changed consent behavior, duplicates or a different traffic mix. A rise in the reported count alone cannot tell you whether sales grew.

Record a baseline for spend, CRM leads and sales, event coverage, browser mix and consent choices. After deployment, compare cohorts with similar characteristics. Keep the bidding goal and lead-value model unchanged during that period so those changes do not confound the comparison.

To establish whether a change caused more sales, design a separate experiment. The Conversion Lift guide explains how to test causality. Gateway diagnostics tell you whether events are being delivered.

Plan the rollback before you need it

Roll back if the chosen consent behavior breaks, events duplicate, scripts fail to load or website routes break. For a manual deployment, restore the previous loader before retiring the gateway route. Keep cached pages and open tabs in mind: they may still request the gateway path.

For an integrated setup, review domain management and deactivation in advance. Google warns that deleting the Cloudflare configuration from GTM disables gateway for every active domain in that configuration. Deleting that configuration is therefore unsuitable for rolling back just one site.

If you already know where events originate and how they should be processed, assess gateway as a routing change within that setup. Otherwise, map each event's source and destination first. If you also need server-side processing, that belongs in a server-side GTM project.

Sources

Documentation and Cloudflare terms checked on November 13, 2026. This is an implementation guide, not a report of a gateway deployment on goodlabs.kz.

  1. Google Developers: Google tag gateway setup.
  2. Cloudflare: Google tag gateway, pricing and configuration scope.
  3. Google: GTM and Cloudflare setup.
  4. Google: CDN integrations.
  5. Google Developers: first-party script serving with sGTM.
  6. Google Developers: server-side tagging architecture.
  7. Google: basic and advanced consent mode.
  8. Google: gateway cookie handling.
  9. Google: Cloudflare, automated script setup and Consent Mode.

FAQ

Do I need to rename dataLayer events?

No. Keep your existing event names and parameters, then repeat the same test journey before and after switching. Changing how requests are routed does not require a new event schema. Handle any taxonomy redesign separately.

Will gateway stop redirects from dropping gclid?

Gateway does not change your redirect rules. If gclid disappears before the page loads, trace the redirects and check where the parameter is lost.

Can I remove all Google domains from CSP?

Do not remove them just because gateway is enabled. Some requests still go directly to Google, and the page may use other Google services. Inspect actual requests, adjust the allowed sources and retest the affected journeys.

Should I enable gateway when I change my bidding goal?

Make the changes separately so you can tell what caused any difference in the results. First verify that gateway delivers the expected events and preserves measurement. Then change the bidding goal.