Documentation › Google Consent Mode

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_data and ad_personalization are denied.
  • 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 consentUpdate event to the dataLayer that 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.