All posts

Google Tag Gateway: Agency Setup for Client Accounts

How to set up Google Tag Gateway for client accounts: first-party data collection, server-side tagging, cross-account configuration, and how Hellyeah X-Ray validates tracking coverage.

Bharath
13 min read
Google Tag Gateway: Agency Setup for Client Accounts
On this page

When you manage conversion tracking across a portfolio of client accounts, a single ad blocker or browser cookie restriction can quietly erase the signal you depend on for bidding decisions. Google Tag Gateway lets you route Google tags through your client's own domain, turning every tag load into a first-party request that ad blockers and Intelligent Tracking Prevention treat the same way as any other asset from that site. Google introduced expanded CDN integrations for Tag Gateway in 2025, and by 2026 it has become a standard part of agency onboarding for clients running conversion-dependent campaigns. For agencies running Google Search, Performance Max, or any conversion-dependent campaign in Hellyeah, getting this infrastructure right before you add spend is the difference between accurate ROAS reporting and chasing phantom data.

Quick Answer

  • Google Tag Gateway is a CDN-based proxy that serves your Google tags (GA4, Google Ads, Floodlight) from the client's own domain instead of Google's servers, recovering signal lost to ad blockers and browser restrictions.
  • Agencies set it up once per client domain through GTM Admin, Cloudflare (or another supported CDN), using a unique measurement path per client to avoid collisions across your portfolio.
  • After setup, Hellyeah's X-Ray shows conversion signal improvement within 24 to 48 hours, validating whether the gateway is actually recovering lost events before you scale spend.

What Google Tag Gateway Actually Does

Google Tag Gateway, which Google also calls First-Party Mode for Google Tag, reroutes how the browser fetches your Google tag scripts and sends measurement hits. Without it, a page loads gtag.js directly from googletagmanager.com or google-analytics.com. Those are third-party domains from the browser's perspective, which makes them visible targets for ad blockers and browser-level cookie partitioning.

With the gateway active, your CDN intercepts requests to a path on the client's own domain, for example example-client.com/metrics/collect, and proxies them to Google's endpoints. The browser treats that request as first-party. The same cookie that authenticates the user session is accessible to the tag, the event travels to Google, and ad blockers that block third-party domains pass it through.

Google reports a median 11% improvement in conversion signal when Tag Gateway is active, according to Google's Tag Gateway documentation. The actual lift depends on how much of your client's audience uses ad blockers or privacy browsers. For clients running campaigns targeting technical users or engineers, the lift is typically higher.

Google Tag Gateway is a configuration that routes Google tag requests through your own domain using a CDN proxy rather than loading scripts directly from Google's servers. It supports Google Analytics 4, Google Ads conversion tracking, and Floodlight, but not third-party platforms like Meta or TikTok. The CDN intercepts requests to a reserved path on your domain, such as /metrics/collect, and forwards them to Google's measurement endpoints. The browser treats the request as first-party, bypassing ad blockers and browser cookie restrictions that target third-party domains. Google reports a median 11% improvement in conversion signal after activation. Setup requires CDN access, a GTM container or direct Google tag installation, and about 45 to 60 minutes per client domain, plus 24 to 48 hours for DNS propagation.

What Tag Gateway Does Not Replace

Before you configure this for every client, understand its boundaries.

Tag Gateway only supports Google's own tag ecosystem: Google Analytics 4, Google Ads, and Floodlight. It does nothing for Meta Pixel, TikTok Events API, LinkedIn Insight Tag, or any other third-party measurement tool. If a client needs first-party routing for platforms outside Google, that requires a full server-side GTM setup, which is a separate and more complex infrastructure investment.

Tag Gateway also changes the delivery path, not the data destination. Your client's data still travels to Google's servers. The gateway improves signal recovery; it does not change what Google collects or how long they retain it. Consent mode configuration and your client's privacy policy still govern what data is collected.

The gateway cannot resolve tracking problems caused by missing or misconfigured GTM tags, incorrect conversion action settings, or consent mode blocking. Fix those before enabling the gateway, or you will spend time debugging a proxy that is working correctly while the underlying tracking remains broken.

Agency Prerequisites Before You Start

For each client account you plan to configure, verify these before touching the gateway settings.

CDN requirement. The client's domain must be behind a supported CDN. Cloudflare is the native integration with the fewest steps. Google also supports Akamai, Fastly, Amazon CloudFront, and Google Cloud Load Balancer. If a client's site is on shared hosting with no CDN, set up Cloudflare in front of it first. This is not optional.

GTM container access. You need Editor or Administrator access to the client's GTM web container. If the client manages their own Cloudflare account, they will need to authorize the connection from their Cloudflare dashboard. Coordinate access before the setup call to avoid delays.

Measurement path check. The gateway uses a reserved path on the client's domain. The default is /metrics/collect. Before proceeding, confirm with the client's development team that this path is not already in use by an existing page, redirect rule, or API endpoint. Choose a different path if there is a conflict.

Baseline conversion data. Pull the last 30 days of conversion data from Google Ads and GA4 before enabling the gateway. You need this baseline to measure the signal improvement afterward. Hellyeah's X-Ray can snapshot this automatically if the client account is already connected.

How Agencies Set Up Tag Gateway Across Multiple Client Accounts

Most articles describe Google Tag Gateway for a single site. This section covers how to run it across a client portfolio without collisions or access problems.

Step 1: Create a naming convention for measurement paths. Each client domain needs its own reserved path. Use a consistent pattern across your portfolio. A good default: /gtw/[client-code] where [client-code] is a short, lowercase abbreviation of the client name. This makes paths identifiable in CDN logs and avoids the default /metrics/collect path that might conflict on older sites.

Step 2: Enable from the GTM Admin tab. In the client's GTM web container, go to Admin, then select Google Tag Gateway. GTM shows which channels (GA4, Google Ads, Floodlight) are connected to the container and will be routed through the gateway. Review this list with the client before continuing. If a tag is connected to a channel the client does not want proxied, remove it from the container or use a separate container.

Step 3: Connect Cloudflare. GTM will prompt you to authorize the Cloudflare connection. The authorization uses OAuth and requires that you or the client have access to the Cloudflare zone for that domain. If you manage the Cloudflare account on the client's behalf, authorize from your account. If the client manages their own Cloudflare, share the GTM authorization link and have them complete it. GTM will confirm when the connection is live.

Step 4: Set the measurement path. Enter the path you chose in step 1. Cloudflare creates a worker rule at this path that proxies requests to Google. The path is zone-wide, meaning it applies to all subdomains under that Cloudflare zone. If the client has multiple subdomains with separate tracking needs, use GTM triggers to restrict which tags fire on which hostnames.

Step 5: Update the container snippet if needed. If the client uses the standard GTM snippet installed manually or through a CMS plugin, check whether Cloudflare has automatically updated it to use the measurement path. If not, update the snippet source URL to use the measurement path. Running the old snippet and the new Cloudflare-injected snippet simultaneously loads the container twice, which inflates event counts.

Step 6: Validate before launch. Open the client site in a browser, go to DevTools Network tab, and filter requests by the measurement path. You should see the container load and hit requests passing through the client's domain. Use Tag Assistant to confirm it identifies the tag source as Google Tag Gateway. Also check [client-domain]/metrics/collect/healthy (or your custom path) for a 200 status response. Only push live after both checks pass.

Author's Comment

"When we built the multi-client rollout pipeline for Google Tag Gateway at Hellyeah, the single biggest issue was measurement path collisions on clients sharing a Cloudflare account with multiple zones. We standardized on a per-client path prefix tied to the GTM container ID suffix. That convention alone eliminated the ambiguity in proxy logs and made rollback straightforward because you can toggle one Cloudflare worker rule without touching any other client's setup."
Bharath, Head of Engineering, Hellyeah AI

How to Validate Signal Recovery After Tag Gateway Goes Live

Setting up Google Tag Gateway is infrastructure work. What tells you it is working is conversion data, not just network requests.

To verify that Google Tag Gateway is recovering lost conversion signal after setup, compare three data points: the number of conversion events in Google Ads before and after the gateway activation date, the modeled conversion count in GA4 Explorations using the same date range, and the browser-side network requests in Tag Assistant showing hits routing through the measurement path. A meaningful recovery should appear within 48 hours of activation and persist across sessions, not spike once. Google Ads typically shows signal improvement in the Diagnostics tab under Conversion Actions within two to three days. For agencies managing multiple clients on Hellyeah, the X-Ray dashboard surfaces conversion event counts per account in a single view, so you can see which clients are benefiting from the gateway without switching between Google Ads tabs.

A B2B SaaS client running Google Search and Performance Max through Hellyeah saw 847 conversion events recorded in Google Ads in the 30 days before Tag Gateway was enabled. In the 30 days after activation, the same campaign recorded 943 events, with no change in bid strategy or budget. The 11.3% increase matched exactly what the signal recovery rate predicted given the client's 18% ad-blocker penetration measured in GA4. That conversion delta was enough for AIMA to exit the learning phase and move into stable CPA bidding.

Hellyeah's X-Ray tracks conversion event volume, event quality signals, and campaign-level performance in the same interface where you manage bids and budgets. After enabling Tag Gateway for a client, X-Ray surfaces the delta in conversion events within one to two days. If a client's Google Ads account was losing 15% of conversion events to ad blockers before setup, you will see that 15% appear in the post-activation data, which then flows into smart bidding signals.

This matters for agencies because the default Google Ads reporting does not make it easy to isolate the signal recovery effect from normal conversion volume variance. X-Ray's historical view lets you mark the activation date and compare event counts cleanly.

For clients where the conversion signal improvement is meaningful, Hellyeah's AIMA engine can automatically adjust bid strategies to take advantage of the recovered signal rather than waiting for a manual review cycle.

Non-Cloudflare CDN Setup

If a client uses Akamai, Fastly, Amazon CloudFront, or Google Cloud Load Balancer, the setup process is manual rather than automated through a GTM OAuth flow.

The principle is the same. You configure a forwarding rule at the measurement path that proxies requests to the Google Tag Gateway endpoint for your tag ID. The endpoint format is [tag-id].fps.goog where [tag-id] is the client's Google tag ID or GTM container ID.

Google's manual setup documentation covers the specific headers and regional settings required. The key agency note: document the CDN rule configuration for every client in your system of record. When a client migrates CDN providers or a Fastly contract expires, you need to know which forwarding rules to recreate on the new platform. A lost proxy rule means silent tracking failure with no alert.

For agencies managing clients on Amazon CloudFront, Lambda@Edge functions are the standard approach for the proxy logic. This adds infrastructure complexity compared to Cloudflare, but the first-party signal benefit is identical.

Troubleshooting the Most Common Agency Issues

IP attribution showing "(not set)" in GA4. When traffic routes through Cloudflare's workers, Google's geolocation sees Cloudflare's data center IP rather than the user's IP. GA4 may attribute city or region as "(not set)." This is a Cloudflare limitation and does not affect conversion matching, which uses different identifiers. If accurate geographic data matters for a client's reporting, document this before setup and manage the expectation.

Container loading twice. The most common mistake when enabling via Cloudflare's dashboard rather than GTM. Cloudflare injects a new container snippet at the measurement path, but the client's existing manual snippet also loads. Check the page source for duplicate GTM snippet entries. Remove the manual snippet or disable Cloudflare's injection, keeping only one load path active.

Admin pages tagged. The gateway applies to all pages behind the CDN zone, including CMS admin panels and staging environments. If a client's admin traffic inflates event counts, add a GTM trigger condition that excludes admin URL paths. This is especially relevant for Shopify and WordPress clients where the admin uses the same domain.

Measurement path conflicts after CMS update. Some CMS plugins create redirect rules or rewrite rules that intercept paths matching certain patterns. After a WordPress or Shopify update, verify the measurement path still returns a 200 from Google's proxy. Add the health endpoint check to your agency's monthly tracking audit.

Pairing Tag Gateway with Hellyeah's Tracking Stack

Google Tag Gateway handles tag delivery. Hellyeah's tracking requirements for Search and Performance Max campaigns start with conversion tracking that sends accurate signals. These two layers work together.

When you connect a client's Google Ads account to Hellyeah and enable conversion tracking, Hellyeah requires at least one active conversion action with adequate signal to run bid optimization through AIMA. If that conversion action is undercounting because of ad blockers or cookie restrictions, AIMA is optimizing on incomplete data.

Enabling Tag Gateway before connecting the account to Hellyeah means the conversion signal you bring in is already at its highest recoverable quality. For clients with significant ad-blocker exposure, this can be the difference between a bid strategy that has enough signal to learn and one that stays in the learning phase indefinitely.

The setup sequence for new client onboarding is: verify CDN, enable Tag Gateway, confirm signal recovery in X-Ray, then activate AIMA bid optimization. For clients where the signal improvement from Tag Gateway is under 5%, the priority shifts to other tracking improvements like enhanced conversions or consent mode optimization.

Final Round AI, a Hellyeah client (and the same parent company), saw 4.2x ROAS after combining accurate first-party tracking infrastructure with Hellyeah's campaign optimization. Accurate signal at the input level is what makes the output numbers meaningful.

Bharath

Engineering

Engineer at Hellyeah. Builds the runtime the marketing systems live in: pipelines, integrations, and the guardrails that keep them safe to ship.

Your next campaign, handled.

Hellyeah takes care of strategy, creative, and optimization.