Google Consent Mode in Cookies správně
Cookies správně passes the choice a visitor made in the cookie bar to Google tags through Google Consent Mode v2. This section explains which signals the bar sends and how to configure them, how to set up basic and advanced mode, how to prepare a banner that meets Google's requirements and how to verify the installation.
What Consent Mode is
Google describes it like this: “Consent mode allows web and app developers to adjust tag and app SDK behavior based on user consent choices.” (Consent mode overview)
Consent Mode is a signalling layer, not a cookie banner. It shows nothing and collects no consent itself. The Cookies správně bar collects the consent, and Consent Mode then tells Google tags the result. The tags adjust what they store and what they send accordingly.
Consent Mode changes how Google tags behave. On its own it does not make a website comply with any law. Google's documentation states: “You are responsible for obtaining users' consent on your website or app.” The texts and settings of your bar remain your responsibility.
What Cookies správně does
- As soon as the page loads, it sets the default consent state:
ad_storage,analytics_storage,ad_user_dataandad_personalizationaredenied. - When the visitor chooses in the bar, it sends an update matching what the visitor allowed. For a returning visitor it sends the update from the stored choice as soon as the page loads.
- The update goes out before the bar releases any script it holds back until consent, so a Google tag the bar releases already works with the current state.
- It pushes a
consentUpdateevent to thedataLayerthat you can use to fire your own tags in Google Tag Manager. - The signals are on for every new license. You can switch them off with Send Google Consent Mode signals in the license Configuration.
When you install the bar through Google Tag Manager, our GTM template sets the default and the bar only sends updates. Details are in Settings and signals.
In this section
Settings and signals
Every technical Consent Mode setting: consent types, the default, updates, wait_for_update, the switch in Configuration and the options of the GTM template.
Basic and advanced mode
How to set up basic mode, where Google tags are blocked until consent, and advanced mode, where they load straight away. For direct installation and for GTM.
A banner that meets Google's requirements
The Google Consent Mode ready text preset, what the bar has to tell the visitor and what to keep when you edit the texts.
Verifying the installation and support
The installation check in the dashboard, verifying in Tag Assistant, the most common problems and who to contact.
Google documentation
The explanation of each setting in this section follows Google's official documentation, which always takes precedence:
- Consent mode overview: what Consent Mode is, consent types, basic and advanced mode.
- Set up consent mode on websites: the default and update commands, wait_for_update, regions, ads_data_redaction and url_passthrough.
- Create a consent mode template: how a Consent Mode template works in Google Tag Manager.
- Tag Manager consent mode support: Consent Initialization, built-in and additional consent checks, Consent Overview.
- Unblock Google tags when using consent mode: how to stop blocking Google tags in advanced mode.
- Troubleshoot consent mode with Tag Assistant: verifying the default and the updates.
- How Google uses data: the page the bar should link to.