CookiePal Logo
CookiePal Logo
Log in

Features

Utilize advanced features and integrate CookiePal with other tools.

Google Consent Mode for Google Tag Gateway

Learn what Google Tag Gateway is and how it relates to first-party Google tag delivery.

Table of contents

back

to the top

Google Tag Gateway (GTG) is a first-party setup for serving Google tags through your website domain. This guide explains the core concept before moving into the setup details.

What is Google Tag Gateway (GTG)?

Google tag gateway for advertisers (GTG) is a first-party tagging setup that lets you serve Google tags from your own website domain instead of loading them directly from a Google domain.

In a standard Google tag setup, the browser requests the Google tag from Google and sends measurement requests directly to Google's services. With GTG, your website loads the tag through your first-party domain, and some measurement requests are routed through that domain before being forwarded to Google.

GTG can be configured using infrastructure such as a CDN, load balancer, or web server. Its purpose is to support first-party measurement by keeping the tag delivery path closer to your website while still connecting the measurement data to supported Google products.

For setup instructions, see Google's GTG setup guide. You can choose Self service for a manual setup or In-UI based on your implementation needs.

Example If a Google Analytics request normally uses this endpoint:

1https://analytics.google.com/g/collect

With GTG, the request can be served through your own first-party domain instead:

1https://yourdomain.com/metrics/ga/g/c

One-click CDN injection and load order

Some CDN tools offer a one-click GTG setup that injects or rewrites the Google tag through the CDN. This can be convenient because you may not need to edit your website code directly.

The trade-off is load order control. When the CDN adds the tag at the edge, the tag may not appear in the same place as the scripts you manage in your page template or Google Tag Manager workspace.

For consent setups, the default consent state should be available before Google tags send measurement data. If the CDN-injected tag starts too early, you may see consent timing issues, such as default consent being set too late.

After enabling one-click CDN injection, verify the implementation as explained in the Verify GCM implementation guide. Confirm that the consent default is set first, the banner updates consent after the visitor chooses, and GTG requests are routed through your first-party path.

If you need strict control over script placement, use a manual GTG setup or adjust the CDN injection rule so it does not run before your consent setup.

Verify GTG enrollment

You can verify GTG enrollment from the Google interface, Tag Assistant, and direct manual setup health checks.

Google interface: In Google Tag Manager, open your GTM container, then go to Admin > Google tag gateway. Confirm that Google Tag Gateway is enabled and that the configured domain/path matches your expected GTG setup.

[Google interface:bold]: In Google Tag Manager, open your GTM container, then go to [Admin > Google tag gateway:bold]. Confirm that Google Tag Gateway is enabled and that the configured domain/path matches your expected GTG setup.

Tag Assistant: Open Google Tag Assistant, preview your container, and navigate through your website to trigger Google tag requests. In Summary > Output > Hits Sent, check the hit URL.

Without GTG, the hit URL can appear as a direct Google Analytics endpoint, such as https://www.google-analytics.com/g/collect.

Without GTG, the hit URL can appear as a direct Google Analytics endpoint, such as `https://www.google-analytics.com/g/collect`.

With GTG, the hit URL should use your first-party measurement path, such as /metrics/ga/g/c.

With GTG, the hit URL should use your first-party measurement path, such as `/metrics/ga/g/c`.

Manual setup checks: If you configured GTG manually, replace yourdomain.com with your domain and replace /metrics with your configured tag serving path. The examples below use /metrics, but your setup may use a different path.

1https://yourdomain.com/metrics/healthy
1https://yourdomain.com/metrics/?validate_geo=healthy

Both manual checks should return ok. The first URL confirms the GTG path is reachable. The second confirms the setup is also passing the expected geographic information.

Any Questions Left?

Feel free to contact us and we will answer all of yours remaining questions!

Contact Us

Elevate Your Compliance with
CookiePal Today

View PlansTry for FREE

Privacy made simple!

Powered by WESTPOINT

© CookiePal 2026. All rights reserved. CookiePal Limited is registered in the UK. Company no. 15835702.

Terms and ConditionsPrivacy PolicyGet in Touch