Overview
Google Consent Mode allows Google tags to adjust their behavior based on a visitor’s consent choices from your cookie banner. Consent Mode does not replace a cookie banner. Instead, it works with your consent banner to communicate consent choices to Google services such as Google Analytics, Google Ads, Floodlight, and Google Tag Manager.
This guide helps you choose the correct Enzuzo setup for your website.
Enzuzo supports two main Google Consent Mode installation methods:
Google Tag Manager, also called GTM
gtag / direct script installation
You should choose one installation method and follow that method completely.
Important: Do not mix the GTM and gtag installation methods unless your developer or implementation partner has intentionally designed a custom setup. Mixing methods can cause the Enzuzo banner, Consent Mode defaults, and Google tags to load in the wrong order.
Before you start
Before configuring Consent Mode, make sure you have:
An Enzuzo account
Access to your website or ecommerce platform
Access to Google Tag Manager, if your website uses GTM
Access to your Google tag setup, such as Google Analytics or Google Ads
A list of the Google and third-party tags used on your website
A decision on whether you need IAB TCF support
If you are not sure whether your website uses Google Tag Manager, check your website source code or ask your developer.
A Google Tag Manager script usually contains:
googletagmanager.com/gtm.js?id=GTM-XXXXXXX
A script that contains the following is not Google Tag Manager by itself:
googletagmanager.com/gtag/js
That script loads the Google tag directly and may or may not be managed through Google Tag Manager. Confusing gtm.js and gtag/js is a common implementation issue.
Choose your installation method
Use the table below to choose the correct setup.
Your website setup | Recommended Enzuzo guide |
You already use Google Tag Manager and want to load the Enzuzo banner through GTM | |
You do not use Google Tag Manager and your Google tags are installed directly in your website code | |
You use Google Tag Gateway, or Enzuzo reports that consent is loading late | |
Your banner does not load, Google tags fire too early, or Google shows a consent warning |
Recommended setup: Google Tag Manager
Use the Google Tag Manager setup if:
Your website already has Google Tag Manager installed
You manage Google Analytics, Google Ads, or third-party tags in GTM
You want to load the Enzuzo banner through GTM
You want the recommended setup for controlling Consent Mode timing
In this setup, you must complete both parts of the GTM implementation:
Install the Enzuzo Cookie Manager template from the GTM Community Template Gallery.
Create an Enzuzo Cookie Manager tag and trigger it on Consent Initialization.
The Enzuzo GTM configuration guide currently instructs customers to install the Enzuzo Community Template and set the Enzuzo Cookie Manager tag to Consent Initialized. Google also explains that the Consent Initialization trigger is designed for tags that set or update consent state and fires before other triggers.
Use this method when
Use the GTM method when Google Tag Manager is already installed on your website and you want GTM to control when the Enzuzo banner and other tags load.
Alternative setup: gtag / direct script installation
Use the gtag / direct script setup if:
You do not use Google Tag Manager
Your Google tags are installed directly in your website code
You or your developer can edit the website’s
<head>codeYou want to install the Enzuzo banner directly on the page
In this setup, the Consent Mode default command must be available before Google tags send measurement data. Google’s developer documentation says the gtag('consent', 'default', ...) command should be called before commands that send measurement data, such as config or event.
The Enzuzo gtag integration guide provides a direct script-based setup for customers who do not use the Enzuzo Google Tag Manager template.
Use this method when
Use the gtag method when your Google tag is installed directly on your website and you are not loading the Enzuzo banner through GTM.
If you use Google Tag Gateway
Google Tag Gateway, or GTG, can affect how Google tags are loaded on your website.
If Google tags load before Enzuzo has made Consent Mode defaults available, you may see a warning that consent was set too late or that a tag read consent state before a default was set. Google’s troubleshooting documentation explains that default consent state should be set before any tags or other code uses or updates consent, and that CMP banners should load before Google tags send data.
GTG requires special attention because some automated or CDN-based setups can change how scripts are inserted or loaded. Google’s GTG documentation notes that when Consent Mode is used, automated script setup must be turned off, and that automated setups may insert scripts into the page HTML.
Review this method when
You enabled Google Tag Gateway
Your Google tag is served through a first-party measurement path
Enzuzo debug mode or a diagnostic scan reports a late consent signal
Google Tag Assistant reports that default consent was set too late
Google tags are firing before the Enzuzo banner or Consent Mode defaults are available
Basic vs advanced Consent Mode
Google supports two Consent Mode implementations: basic Consent Mode and advanced Consent Mode.
With basic Consent Mode, Google tags are blocked from loading until the visitor interacts with the consent banner. Google says this setup sends no data to Google before the visitor interacts with the banner.
With advanced Consent Mode, Google tags load when the visitor opens the website, default consent states are applied, and tags adjust behavior based on the visitor’s consent choice. Google says that when consent is denied, Google tags may send cookieless pings, and only send full measurement data when the visitor grants consent.
Your Consent Mode setup should reflect your legal requirements, your Google product configuration, and your measurement needs.
For Google tags managed through GTM, Enzuzo generally recommends using Google tags with their built-in consent checks rather than treating Google tags like ordinary third-party scripts. Third-party scripts that do not have built-in consent checks should be configured to fire only after the appropriate Enzuzo consent update event.
Verify your setup
After publishing your setup, verify that Consent Mode works correctly.
Check that:
The Enzuzo banner loads on public-facing pages.
Consent Mode defaults are available before Google tags send data.
The IAB TCF stub loads before Google tags, if you use IAB TCF.
Consent updates occur when a visitor accepts, rejects, or changes preferences.
Google tags are configured according to your selected setup method.
GTG enrollment has been reviewed, if you use Google Tag Gateway.
You can use Google Tag Assistant and GTM Preview mode to help verify your implementation.
Google’s consent troubleshooting documentation identifies “default consent not set” and “default consent set too late” as common implementation issues.
Troubleshooting
The Enzuzo banner is not loading
If you use GTM, confirm that:
Google Tag Manager is installed on the website.
The Enzuzo Cookie Manager template is installed in GTM.
The Enzuzo Cookie Manager tag uses the correct Enzuzo Script URL.
The Enzuzo tag fires on Consent Initialization.
The Enzuzo tag has no additional consent required.
Google says consent was set too late
This usually means a Google tag loaded before Consent Mode defaults were available.
If you use GTM, confirm that the Enzuzo tag fires on Consent Initialization and that Google tags are not firing before the CMP has initialized.
If you use gtag, confirm that the Consent Mode default command is placed before Google measurement commands such as config or event.
If you use GTG, first verify whether the affected Google tag is enrolled in Google Tag Gateway, then follow the remediation steps in the GTG article.
A tag read consent state before a default was set
This usually indicates an incorrect tag load order.
For GTM installations:
Enzuzo Cookie Manager should fire on Consent Initialization.
Google tags should fire on Initialization, Page View, or another appropriate trigger.
Third-party scripts that require consent should fire after the
enzuzo_consent_updateevent.
For direct gtag installations:
Consent defaults should be set before Google measurement commands.
The Enzuzo script should load before consent-dependent tags rely on the user’s consent state.
Support
For support with Enzuzo’s Google Consent Mode integration, contact:
We can help troubleshoot Consent Mode, Google Tag Manager, gtag, IAB TCF, and Google Tag Gateway implementation issues.
