Back to Knowledge Hub

What is Google Consent Mode V2? How to Implement It?

Understand how Google Consent Mode V2 helps manage Google advertising and analytics services based on user consent, aligning with evolving privacy regulations.

Doğancan Doğan
CONSENT
What is Google Consent Mode V2? How to Implement It?

Google Consent Mode V2 is a crucial tool for managing how Google advertising and analytics services function in accordance with user consent. This updated version addresses the requirements of various privacy frameworks and regulations. This article will explain its operation, highlight its key features, and compare it to the previous version. We will also discuss the consequences of not implementing it, offer guidance on implementation, and share best practices for ensuring compliance and optimizing data collection. Discover how Consent Mode V2 can help you balance user privacy with valuable data insights.

Google Consent Mode is a mechanism developed by Google to control how its advertising and analytics services behave based on user consent. It facilitates the tracking of basic user interactions even when full consent isn't granted, utilizing predictive modeling to maintain privacy. Initially launched in 2020 for GDPR compliance concerning Google Analytics and Google Ads data collection, the updated version, Google Consent Mode V2, aligns with the new Digital Markets Act (DMA), which became effective in March 2024.

Consent Mode does not eliminate the need for a Consent Management Platform (CMP) or a cookie consent banner. Instead, it functions in conjunction with these tools to ensure that Google tags and scripts operate according to user consent preferences. This allows websites to comply with privacy regulations like the EU GDPR while retaining essential analytical data.

Google Consent Mode v2 functions by modifying the behavior of Google tags based on user consent choices. The mode uses four primary parameters:

  • ad_storage: Controls the storage of personal data for advertising purposes.
  • analytics_storage: Manages the storage of data for analytics purposes.
  • ad_user_data: Relates to the collection and utilization of user data for advertising.
  • ad_personalization: Permits the use of user data for personalizing ads.

The process unfolds as follows:

When users visit a website, they are presented with a consent banner where they select their preferences for data collection and usage. The website's Consent Management Platform (CMP) transmits these consent signals to Google tags based on the user's choices. Google tags, such as Google Analytics 4 and Google Ads, receive these signals and adjust their operations to respect the user's consent. For example, if a user denies ad_storage, the Google Ads tag will not store cookies for advertising purposes. Data is then collected and processed aligned with the user's consent settings.

Basic Consent Mode

In this mode, Google tags remain inactive until the user interacts with the consent banner. Upon receiving user consent, Google tags send consent information to Google and begin data collection. Without consent, no data is sent to Google, and Google Ads defaults to a general conversion model.

Advanced Consent Mode

In this mode, Google tags load immediately but remain dormant until consent is provided. While awaiting user input, they send minimal data (cookieless pings). Once consent is granted, full measurement data is sent to Google, enabling more precise conversion modeling.

Consent Mode v2 represents an enhancement of the original Consent Mode, offering improved customization and better alignment with privacy requirements. V1 predominantly focused on collecting data only after explicit user consent and introduced two main parameters: ad_storage and analytics_storage, which controlled cookie storage for advertising and analytics, respectively.

Consent Mode V2 builds upon V1 by providing more granular control over data collection and processing. It also introduced two new parameters, ad_user_data and ad_personalization, to govern data usage for advertising and personalization. Google Consent Mode V2 has also introduced the concepts of Basic and Advanced Consent Modes.

Enabling Google Consent Mode v2 is crucial for websites to comply with stringent data privacy regulations like GDPR and the Digital Markets Act. Failure to enable it can lead to several negative consequences:

  • Non-compliance: Your website may violate data privacy laws, potentially resulting in significant fines and legal issues.
  • Data loss: Without Consent Mode, collecting and processing user data without proper consent can lead to data loss.
  • Inaccurate analytics: Your analytics data, including audience or conversion metrics, will be unreliable as it won't accurately reflect user behavior due to missing consent-based data. This affects conversion tracking accuracy.
  • Reduced ad revenue: Ad performance may decrease as targeted advertising relies on user data, which is restricted without appropriate user consent.
  • Damaged reputation: Failure to prioritize user privacy can negatively impact your website's reputation and user trust.

1. Manual Implementation

While technically possible, manual implementation is generally not advisable due to its complexity and potential for errors. It involves modifying your website's code to incorporate Consent Mode logic for each Google tag.

Steps include: Listing all Google tags (Google Analytics 4, Google Ads, Google Tag Manager, etc.), defining different consent states (granted, denied, unknown), writing code to check consent status and adjust tag behavior, and ensuring correct behavior in all consent scenarios.

2. Google Tag Manager (GTM)

GTM provides a more manageable approach to implementing Consent Mode v2. It offers a user-friendly interface for tag management and deployment.

Steps include: Defining variables to store consent status (e.g., ‘consent_granted’), adding Consent Mode parameters to your Google tag configurations, and using triggers to control tag firing based on consent status. More details can be found [here](link to relevant GTM guide).

3. Using a CMP like CookieYes

CMPs like CookieYes simplify the process by handling consent management and integrating with Google Consent Mode. As a Google-certified CMP, CookieYes supports IAB TCF v2.2 integration, automatically ensuring compliance with Google Consent Mode v2.

Here's how to implement Consent Mode v2 using CookieYes: Install a cookie banner using CookieYes and enable Google Consent Mode in settings. Choose either Google Tag Manager (GTM) or a custom script for integration. For GTM, create a new tag, add the CookieYes template, and configure settings. For a custom script, add the provided script along with the GTM and CookieYes scripts on your site. Set up consent categories and regions as needed. Verify functionality to ensure proper implementation.

Every time website users make a consent choice, CookieYes signals Google to adjust tag behavior accordingly. You can find instructions on implementing Google Consent Mode v2 using CookieYes [here](link to CookieYes guide).

Benefits of using a CMP:

  • Simplified implementation
  • Pre-built integrations
  • User-friendly interface
  • Compliance with data privacy regulations

Here are some common issues you may encounter during or after implementing Consent Mode v2:

  • Misconfiguration of consent settings: This can result in an empty consent tab, leading to data loss and compliance issues.
  • Incorrect default consent settings: This can prevent Google tags from firing correctly, impacting data collection and analysis.
  • Issues with CMP integration: Difficulties integrating Google Consent Mode with CMPs can cause discrepancies in consent management and the inability to update user preferences.
  • Other tags running before consent is recorded: This can create measurement gaps and inaccuracies in data reporting.
  • Managing cookies and identifiers while respecting user consent: This can be complex and requires careful attention to ensure compliance and accurate data handling.

CookieYes users can refer to the Google Consent Mode troubleshooting guide to ensure error-free implementation.

Here are some best practices for implementing Google Consent Mode v2:

  • Understand the fundamentals of Consent Mode.
  • Determine how to effectively obtain and manage user consent.
  • Select the most suitable approach based on technical expertise and website complexity.
  • If using a CMP, ensure it is Google-certified and IAB TCF-compliant.
  • Verify correct configuration of settings, including default consent states, triggers, and variables, in line with Google guidelines.
  • Confirm that data collection and ad serving are accurate based on consent.
  • Check for potential issues and errors.
  • Monitor consent rates and user behavior, tracking the impact on website performance and ad revenue.
  • Stay informed about data privacy regulations and Consent Mode requirements.
  • Review Google's guidelines: Familiarize yourself with the technical details and new features of Google Consent Mode v2 directly from Google's official documentation.
  • Audit data and consent management practices: Assess your current consent management practices to align with Consent Mode v2’s integration capabilities.
  • Implement granular consent settings: Ensure that your CMP can handle the granular consent settings introduced in Consent Mode v2. These settings allow users to choose their preferences regarding various types of cookies, such as analytics or advertisement cookies.
  • Ensure good UX: Update your CMP to handle consent updates effectively, ensuring data collection respects user consent without disrupting their experience.
  • Enable consent sharing: Configure settings so user consent preferences persist over multiple sessions. This reduces consent fatigue by preventing repeated prompts for consent.
  • Enhance integration with other services: Ensure that Consent Mode v2 is compatible with your website’s other Google services and third-party platforms. This ensures that consent preferences are consistently respected and applied across all services.
  • Test and validate: Before going live, thoroughly test the implementation in various scenarios to ensure compliance and functionality. This includes checking how the consent mode interacts with different types of cookies and user settings.
  • Communicate changes to users: Transparently disclose the updated consent management practices to users. This fosters trust and ensures compliance by clearly explaining how websites manage and protect user data.
  • Monitor and maintain compliance: Regularly review and update your consent management practices to ensure ongoing compliance with GDPR and other relevant data protection regulations.

You can update Consent Mode v1 to v2 by configuring your CMP to handle the new consent parameters. Most CMPs offer automated updates or provide clear instructions on how to upgrade to v2. You should also modify your code or GTM triggers and tags to incorporate the new consent parameters (ad_user_data and ad_personalization). Existing users of CookieYes can easily upgrade from Consent Mode v1 to v2.

Google Consent Mode v2 impacts analytics by potentially reducing data volume and accuracy due to user consent choices. Ad performance tracking is affected by limited conversion data and personalized ad targeting. Businesses must balance privacy compliance with data collection by optimizing consent prompts, using privacy-friendly tools, and focusing on high-value metrics.

Need Privacy Guidance?

Our experts can help you implement best practices and ensure compliance. Let's connect.