Google Tag Gateway: what is it?

WBWojciech Bednarski · Dec 2, 2026 · 3 min

What Google Tag Gateway is, what it changes and what stays the same. Whether user consent is still required and which settings we recommend in CookieOfficer.

Google Tag Gateway is a Google mechanism that lets you load Google tools directly from your website's domain. In this article we describe how this solution works and what to watch out for when you use it together with CookieOfficer. You will find instructions for turning on Google Tag Gateway and verifying the setup in the article "Late default consent state and Google Tag Gateway".

What is Google Tag Gateway?

  • By default, Google tools are loaded from a Google domain, and measurement data goes directly to Google.
  • With Google Tag Gateway, Google tools are loaded from a path on the website's domain. Part of the measurement data is sent through this domain and then goes to Google.
  • In Google's documentation the mechanism is called "Google tag gateway for advertisers".

You can set up Google Tag Gateway in three ways:

MethodDescription
CDN, automatic setupGoogle connects to the CDN account, e.g. Cloudflare, and places the Google tools code in the website code on its own. In Cloudflare this is the "Automated" option.
CDN, setup following instructionsThe website owner points Google tools to the new path themselves, following Google's instructions. In Cloudflare this is the "Guided" option.
Load balancer or web serverThe path is set up on your own infrastructure.

How does Google Tag Gateway affect how Google tools work?

ChangesStays the same
The domain Google tools are loaded fromThe obligation to obtain user consent
How measurement data is passed to GoogleHow Google Consent Mode works
Passing data to Google
The scope of data from users who did not give consent

According to Google, the gateway processes only Google's own cookies. Other cookies passed through the gateway are dropped and not stored.

Google Tag Gateway does not anonymize data. It only changes the way Google tools and measurement data reach Google.

Is user consent still required with Google Tag Gateway?

Yes. Google tools rely on Google Consent Mode just as they did before Google Tag Gateway was set up. Only the URL they are loaded from changes. The rules on cookie consent stay the same.

Google Tag Gateway and CookieOfficer

CookieOfficer supports websites that use Google Tag Gateway. With this solution we recommend setting up Google Consent Mode in Advanced mode. Google tools are then loaded from the website's domain, so automatic cookie blocking does not stop them. The order in which scripts load also matters: the default consent state must be set before the Google tag runs. You will find setup details in the article "Late default consent state and Google Tag Gateway".

Google Tag Gateway and server-side tagging

Google Tag GatewayServer-side tagging
Useloading Google tools from the website's domainpassing measurement data through your own tagging server
Managed byGoogle and the CDNthe website owner
Effortsmall when set up through a CDNlarger, requires your own server

Google recommends combining both solutions. In both cases you need to set up user consent correctly through Google Consent Mode.

Most common mistakes when setting up Google Tag Gateway

  • Automatic script setup in Cloudflare with Google Consent Mode turned on. Google states that in this case it must be turned off.
  • Assuming that Google Tag Gateway removes the obligation to obtain user consent.

Frequently asked questions

No. Google tools still read the consent state through Google Consent Mode. Only the domain they are loaded from changes.

Google documentation

Related articles

WB

Wojciech Bednarski

Creator of CookieOfficer. Years of experience implementing measurement and compliance in e-commerce and agencies.

Take control of consent and cookies

Start with CookieOfficer and manage consent, your cookie banner and your cookies from one platform.