Skip to Content
InstallationDeployment recommendations

Google Tag Gateway deployment recommendations

This page describes recommended deployment patterns when using CookieHub together with Google Tag Gateway.

In this configuration, CookieHub and the Google Tag are both managed by Google Tag Manager. This is the recommended approach for most deployments.

Benefits:

  • Predictable initialization order
  • Consent defaults established before measurement
  • Easier troubleshooting

CookieHub can also be loaded directly on the website while Google Tag Gateway serves the Google Tag.

Benefits:

  • Consent defaults are typically available early in the page lifecycle
  • Reduced dependency on GTM initialization order

Use with caution: Automatic Google Tag setup through CDN GTG

Some CDN-based GTG implementations can automatically configure and initialize Google Tags. The exact behavior may vary between providers.

If CookieHub is deployed through GTM and the Google Tag is automatically initialized by GTG before GTM completes loading, measurement requests may occur before CookieHub has established consent defaults.

This can result in late consent signals being reported by Google.

If CookieHub is deployed through GTM, we recommend allowing GTM to manage the Google Tag instead of automatically configuring the tag through GTG.

CookieHub recommends configuring GTG using a Google Tag ID.

Using other identifiers may result in unexpected behavior depending on the GTG implementation.

Verify your deployment

After enabling GTG:

  1. Verify GTG enrollment in Tag Assistant.
  2. Verify consent defaults are applied before measurement occurs.
  3. Check for consent-related warnings in Google diagnostics.
  4. Confirm Google Tags are firing as expected.
  5. Review CookieHub Action Center and scan reports for Consent Mode warnings.
Last updated on