What is Google Consent Mode v2?
Consent mode lets us communicate the users’ cookie or app identifier consent status to Google. Google Tags adjust their behavior and respect users’ choices accordingly.
Consent mode receives your users' consent choices from the Mandatly cookie banner integrated on your website or widget and dynamically adapts the behavior of Analytics, Ads, and third-party tags that create or read cookies.
Google Consent Mode v2 applies to the following products deployed using either the global site tag (gtag.js) or Google Tag Manager (GTM):
- Google Ads
- Floodlight
- Google Analytics
- Conversion Linker
As of 2023, Google is transitioning from Google Consent Mode to Google Consent Mode v2. To continue utilizing Google Ads for your advertising activities in the EEA markets, it is necessary to implement a Cookie Banner that is integrated with Google Consent Mode v2 by March 2024.
The company offers comprehensive integration with Google Consent Mode v2 through the following features:
- Availability of a Tag Manager Community Template on Google Tag Manager (GTM)
- Support for consent default signals
- Support for consent update signals
Supported consent types:
Consent Type |
Description |
ad_storage |
Enables storage, such as cookies (web) or device identifiers (apps), related to advertising. |
ad_user_data |
Sets consent for sending user data to Google for online advertising purposes. |
ad_personalization |
Sets consent for personalized advertising. |
analytics_storage |
Enables storage, such as cookies (web) or device identifiers (apps), related to analytics, for example, visit duration. |
functionality_storage |
Enables storage that supports the functionality of the website or app, for example, language settings. |
personalization_storage |
Enables storage related to personalization, for example, video recommendations. |
security_storage |
Enables storage related to security such as authentication functionality, fraud prevention, and other user protection. |
Note: For security_storage Consent Type, to enable necessary cookies for website security and protection, user UI preferences, etc. Such cookies do not require consent.
Consent Modes under GCM:
You can implement consent mode on your website or application using one of the following two methods:
- Basic Mode
When you set up consent mode in its basic form, Google tags won’t load until a user interacts with a consent banner. In this configuration, no data is sent to Google before the user takes action on the banner. Once the user grants consent, Google tags load and activate the consent mode APIs, sending consent states to Google in this order:
- Transmit default consent states: The default consent states are communicated as either "grant" or "deny" immediately upon the loading of the website for all relevant consent types.
- Transmit updated consent states: The updated consent states are communicated when a visitor indicates their consent preferences.
If the user does not give consent, no data-including consent status-is sent to Google, and Google tags are completely prevented from firing. Consequently, conversion modeling in Ads relies on a general model.
- Advanced Mode
When you implement consent mode in its advanced version, Google tags load automatically when a user visits your website or app. The tags activate the consent mode API and perform the following actions:
- Set default consent states, which are denied by default unless you specify your own.
- While consent is denied, Google tags send cookieless pings.
- Wait for user interaction with the consent banner to update the consent states.
- Only after a user grants consent for data collection do the Google tags send full measurement data.
This implementation offers enhanced modeling capabilities compared to the basic version, providing an advertiser-specific model instead of a general one.
Google Documentation:
For a comprehensive understanding of Google Consent Mode v2, please refer to the official Google documentation. This guide provides detailed instructions and best practices for configuring Google Consent Mode to manage user consent effectively. Access the documentation here to explore the technical requirements and implementation steps.
Next Step:
- Configure the Google Consent Mode v2 default settings in Mandatly
- Implement Google Consent Mode with Mandatly Banner