Skip to main content
Blog/Decision Guide
Decision Guide

Which Google Tag Gateway Setup Is Right for You? A Decision Guide (With Flowchart)

Google Tag Gateway has four genuinely different setup paths: a Cloudflare flow that takes about fifteen minutes, a Google Cloud Load Balancer flow for GCP-hosted sites, a manual configuration that works on almost any other CDN, and a combined GTG plus server-side GTM architecture for teams with serious paid media spend. Picking the wrong one costs either an afternoon of wasted research or weeks of engineering effort on a setup that quietly underdelivers. This guide is a three-question flowchart that routes you to the right path, plus a comparison table and real scenarios to confirm the choice.

By GetInlytics·12 min read·June 2026
Decision tree diagram showing four paths to set up Google Tag Gateway based on CDN provider and server-side GTM usage

Before the flowchart: three questions that decide everything

Most teams researching Google Tag Gateway do not need a tutorial first - they need to know which tutorial to follow. That comes down to three questions. Answer these honestly before you open any setup guide, including our own step-by-step implementation guide.

1

Do you control your edge?

Google Tag Gateway works by inserting routing rules into whatever sits between your visitors and your origin - a CDN, load balancer, or web server you can configure. On Shopify, Wix, Squarespace, or any hosted platform where the platform owns the CDN, you cannot implement GTG today. This single question rules out a meaningful share of small business sites immediately.

2

What is your edge, specifically?

Not what you would like to use - what is actually in front of your site right now. Cloudflare, Akamai, Fastly, CloudFront, a Google Cloud external Application Load Balancer, or plain Nginx all lead to different paths, because Google has built different levels of automation for different providers. If you are not sure, check your DNS records or ask whoever manages your hosting.

3

Is server-side GTM in your present or near future?

If sGTM is running, or realistically on your roadmap, your Google Tag Gateway decision changes regardless of what your edge is. The recommended combined architecture has a same-origin requirement that affects how both pieces are configured, so it is worth deciding this before you start the GTG setup rather than after.

The decision flowchart

Three questions, four destinations. Here is the full path from start to setup:

Flowchart for choosing a Google Tag Gateway setup path based on CDN control, CDN provider, and server-side GTM plans

Reading it as text:

1

You do not control your CDN (Shopify, Wix, Squarespace)

Stop. Google Tag Gateway is not possible on your stack today.

2

You control your CDN, and server-side GTM is running or planned

Path D - the combined GTG plus CDN plus server-side GTM architecture, regardless of which CDN you use.

3

You control your CDN, no sGTM, and your domain is on Cloudflare

Path A - the Cloudflare automatic setup, roughly fifteen minutes.

4

You control your CDN, no sGTM, not on Cloudflare, behind a Google Cloud external Application Load Balancer

Path B - the Google Cloud Load Balancer in-UI flow.

5

You control your CDN, no sGTM, not on Cloudflare, any other CDN

Path C - manual setup on Akamai, Fastly, CloudFront, or another provider.

Path A: Cloudflare automatic setup - the default winner

You land here if: you control your edge, you are not running server-side GTM, and your domain is on Cloudflare.

This is the native Google-Cloudflare integration. You authorise from GTM, GA4, or Google Ads, pick a measurement path, select your domains, and Google writes the routing rules automatically - no DNS edits, no page rules, no code. It is free on both sides, and gateway-routed traffic does not count toward Cloudflare usage or billing, including on the free plan.

Effort: about 15 minutes. Skills: admin access only. Maintenance: close to zero.
One check before you start: your Cloudflare user needs the Super Administrator, Administrator, or Zaraz Admin role.

When not to take this path despite being on Cloudflare: if your security policy prohibits granting external API access to your CDN account, use the Cloudflare manual setup in Path C instead. For the full five-step walkthrough, see the companion setup guide.

Path B: Google Cloud Load Balancer - for GCP-native infrastructure

You land here if: you are not on Cloudflare, and your site sits behind a Google Cloud external Application Load Balancer.

This is an in-UI flow driven from Google Ads. It walks you through selecting your project, confirming the load balancer, and customising the pre-selected domains, then provisions a backend service that handles geolocation lookup and routes measurement traffic to Google with a prioritised path rule.

Effort: under an hour once permissions are in place.
The real constraint: the Google Tag Gateway Admin IAM role plus publish permissions on the relevant GTM containers. The practical first step is usually a conversation with whoever owns the cloud console, not the setup itself.

When not to take this path: if your load balancer is managed as infrastructure-as-code (Terraform), UI changes get overwritten on the next deploy. Implement the equivalent configuration through your IaC workflow instead.

Path C: Manual CDN setup - maximum compatibility, maximum care

You land here if: you control your edge, but it is Akamai, Fastly, CloudFront, another CDN, or a self-managed setup - including a Cloudflare configuration you choose to do manually.

The job is the same everywhere, even though the dialect changes per provider:

1Route the measurement path - requests to yourdomain.com/[path]/* are forwarded to [TAG-ID].fps.goog.
2Do not cache the path, and allow POST - tag scripts must not be cached at the edge, and measurement hits arrive as POST requests.
3Forward geolocation headers - otherwise your GA4 geography reports degrade into (not set).
Effort: about two hours if you already know your CDN, plus up to 72 hours for DNS propagation.
The risk: the three most common failures - caching not disabled, POST blocked, geo headers dropped - all look fine at deploy time and only surface in your data quality afterwards.

Provider-specific instructions for Akamai, Fastly, AWS CloudFront, and Cloudflare manual setups are covered step by step in the companion setup guide.

Path D: GTG + CDN + server-side GTM - the architecture decision

You land here if: server-side GTM is in your present or planned future, regardless of which CDN you use.

This is different in kind from Paths A through C - those are configurations, this is an architecture. Google Tag Gateway handles first-party delivery: serving scripts and routing hits through your domain. Server-side GTM handles processing: inspecting, cleaning, enriching, and consent-gating data before it leaves your infrastructure. Google's own documentation is explicit that the combination is the most durable setup available.

The forcing detail: the recommended setup is same-origin - script serving and data collection on paths of your main domain (yourdomain.com/metrics), not a subdomain (sgtm.yourdomain.com). If your server-side GTM is already on a subdomain, fold a migration into the GTG project. If you are planning sGTM, design it same-origin from day one.

Effort: days to weeks, not minutes. Who needs it: teams with meaningful paid media spend, strict data governance requirements, or attribution problems that delivery-only fixes will not solve. GetInlytics implements the full GTG plus server-side GTM architecture end to end.

The comparison table

A: Cloudflare AutoB: GCLBC: Manual CDND: GTG + sGTM
Setup time~15 min< 1 hour~2 hours + DNSDays to weeks
Technical skillNoneGCP basicsCDN-specific expertiseFull tagging + infra
PermissionsCloudflare admin roleGTG Admin IAM roleCDN admin accessAll of the above
Code changesNoneNoneNonesGTM container work
Data processing controlNoNoNoYes - full sGTM layer
Maintenance~ZeroLowLowReal (infrastructure)
Best forAnyone on CloudflareGCP-hosted sitesEnterprise CDNsPaid-media-heavy teams
CostFreeFree (existing GCLB)Free (existing CDN)sGTM hosting ~$40-150+/mo

Quick scenarios

DTC brand on WooCommerce, Cloudflare, no dev team: Path A. Fifteen minutes, this week.
SaaS on GCP with Terraform-managed infrastructure: Path B in spirit - implement it through your IaC workflow, not the UI.
Enterprise retailer on Akamai, separate analytics and infrastructure teams: Path C. Put both teams in the same project - the most common failure is each side assuming the other verified geolocation forwarding.
Agency managing 20 client sites: triage per client. Cloudflare clients get Path A this month, GCP and enterprise clients get scoped individually, and hosted-platform clients get a documented "not currently possible."
Six-figure monthly ad spend, attribution visibly degrading: Path D, properly, run as a project.
"We do not know what state our tracking is in": the flowchart is premature. Google Tag Gateway on top of duplicate tags or broken consent just delivers bad data faster. Run the free GA4 and GTM Gap Analysis first, fix what it flags, then come back.

FAQ

Can I start with the Cloudflare path now and move to the combined GTG plus server-side GTM architecture later?

Yes, and it is a common sequence. Turn on the Cloudflare automatic setup now for immediate signal recovery, then treat server-side GTM as a separate, planned project. If you know sGTM is coming, design that deployment as same-origin from the start so you do not have to migrate a subdomain setup later.

What if I run multiple domains on different CDNs?

Run the flowchart once per domain. Google Tag Gateway is configured per domain, so a marketing site on Cloudflare and a commerce site on Akamai can land on different paths - Path A for the first, Path C for the second - without any conflict.

Is there ever a reason not to set up Google Tag Gateway at all?

Two reasons. First, if you are on a hosted platform like Shopify, Wix, or Squarespace, you do not control the CDN and cannot implement GTG today. Second, if your current tracking has known issues such as duplicate tags or broken consent signals, turning on GTG just delivers that bad data faster and more reliably. Audit first, then gateway.

Does any Google Tag Gateway setup let me track visitors who declined consent?

No. All four paths respect Consent Mode v2 exactly as before. Google Tag Gateway recovers consented measurement that was being lost to ad blockers and Safari ITP - it does not change what consent allows.

Our agency manages our Cloudflare account. Who actually does the Google Tag Gateway setup?

Either side can do it. You can run the flow from Google Tag Manager and have your agency grant the Cloudflare authorisation when prompted, or your agency can complete it directly from the Cloudflare dashboard. In practice, the coordination email takes longer than the setup itself.

How do I confirm I picked the right setup and it is actually working?

Five checks: your tag script loads from your own domain instead of googletagmanager.com, Tag Assistant shows hits passing through your measurement path, Google Tag Manager admin shows a First-party status, GA4 geography data does not degrade to (not set), and event volume holds steady or improves week over week. The full walkthrough for each check is in our setup guide.

Conclusion

The right Google Tag Gateway path is mostly decided by facts you already have: what your edge is, who controls it, and whether server-side GTM is in your future. On Cloudflare, that is Path A, today. On Google Cloud with a load balancer, that is Path B after one IAM conversation. On any other CDN, that is Path C with verification discipline. With server-side GTM in play, that is Path D, designed same-origin from the start.

If you are not confident your tracking is healthy enough to build on, start before any of these paths with a free Gap Analysis audit. Google Tag Gateway amplifies whatever you are currently sending, including the parts that are broken.

Not sure which path - or whether your tracking is ready for any of them?

GetInlytics runs a free GA4 and GTM Gap Analysis, then designs and implements the right Google Tag Gateway and server-side GTM setup for your stack - CDN configuration, consent wiring, and post-launch verification included.