Integrations

Understanding & Configuring Google Consent Mode (GCM) V2

Google Consent Mode V2 allows websites to adjust how and when data is shared with Google based on user consent collected via the Concord Consent Banner & Privacy Center. This article explains what Google Consent Mode (GCM) V2 is, how it works, and steps you through how to enable GCM in your Concord organization.

Overview

Concord is a Gold Certified CMP with Google and our Google Consent Mode V2 integration allows websites to adjust how and when data is shared with Google based on user consent collected via Concord. This article explains what Google Consent Mode (GCM) V2 is, how it works, and steps you through how to enable GCM in your Concord organization.

Our simplified setup integrates with Google in the following ways:

  • Based on the user’s geographical location, privacy laws in that region, and your consent settings in Concord, we can be configured to block all non-essential cookies and scripts until the user grants consent. The GCM integration allows for a few different options that determine how and when Google tags are allowed and what data is shared with them and when.
  • Regardless of the chosen GCM Mode (Basic vs. Advanced modes are discussed in more detail below), when enabled and once consent is granted, Concord automatically shares the user's consent preferences with Google, which changes the behavior of Google services based on these preferences. This works with both Google Tag Manager (GTM) and Google Tag (gtag).

Google Consent Mode v2 is an updated framework by Google that helps adjust data collection practices based on user consent. Features of this framework include:

  • Implementation: Website owners can integrate Consent Mode to handle user consent for cookies used by Google Ad Manager.
  • Integration: The framework works with Ad Manager and other Google products, adapting reporting and data collection practices based on consent preferences.
  • Functionality: When consent is not given, Consent Mode can be set up to allow cookieless tracking that uses anonymous or aggregated data, allowing for consent-based data gaps to be filled using that cookieless data coupled with machine learning.
  • Benefits: This approach helps balance privacy requirements with effective advertising and analytics, providing flexibility in managing user consent.

Google Consent Mode V2 works by modifying how Google tags behave based on user consent. The 7 parameters used in GCM V2 are:

  • ad_storage: Enables storage, such as cookies, related to advertising.
  • analytics_storage: Enables storage, such as cookies, related to analytics (for example, visit duration).
  • functionality_storage: Enables storage that supports the functionality of the website or app such as language settings.
  • personalization_storage: Enables storage related to personalization such as video recommendations.
  • security_storage: Enables storage related to security such as authentication functionality, fraud prevention, and other user protection.
  • ad_user_data: Sets consent for sending user data to Google for online advertising purposes. This was newly added in V2.
  • ad_personalization: Sets consent for personalized advertising. This was newly added in V2.

You can pick from three different modes when enabling Google Consent Mode V2 in Concord:

  • Disabled: Concord functions normally, blocking any Google tags until consent is received based on your standard consent and tracker settings. After user consent is received, no consent data is synced with Google.
  • Basic Mode: Basic Consent Mode offers a simplified privacy-friendly option to sync data with Google. Google tags remain inactive until the user interacts with the consent banner. Once users consent, Google tags are enabled, consent data is synced, and Google begins collecting data based on the user’s consent settings. Without consent, no data is sent to Google, and Google Ads relies on a general conversion model.
  • Advanced Mode: Advanced Consent Mode offers a more robust option that shares additional data with Google prior to consent. Google tags load immediately and while waiting for user consent, a minimal amount of cookieless measurement data is sent to Google to allow for more accurate conversion modeling. Once consent is granted, full measurement data is then sent to Google based on each user’s consent settings. For more details on Google’s conversion modeling please refer to https://support.google.com/google-ads/answer/12443859
  1. Log in to Concord’s Admin UI and navigate to Consent → Consent Settings → General Settings.
  2. On the General Settings tab, select the Google Consent Mode V2 dropdown and choose Disabled (default), Basic, or Advanced. Click Save to apply your changes.
  3. View your Google Consent Mode configuration status in the Deployment → Integrations → Google section in the Concord app and use the instructions and links on that page if implementing via Google Tag Manager.

Regardless of the Google option that you use (you should use either Google Tag Manager or Gtag and not both), we highly recommend first following our Install Concord instructions in the Deployment → Integrations → Install Concord section of the Concord Admin UI to add the Concord code to your website. Concord should be in the <head> section and should always be above other external script tags to ensure that the scanning and blocking process functions correctly. Once that is complete (or if you want to use Google Tag Manager to inject the Concord code, which is not recommended), follow the instructions below or refer to the detailed Google docs: https://developers.google.com/tag-platform/security/guides/consent?consentmode=basic

Google Tag Manager (Option 1)

When using Google Tag Manager and our Google Tag Manager community template (available in the GTM gallery), you have two implementation options. Use the Concord GTM community template along with the Project ID found in the Deployment → Integrations → Google section of the Admin UI. We recommend configuring it to run using the Consent Initialization - All Pages Trigger option and set the default Google consent settings to denied initially.

  1. Follow the Install Concord instructions in the Deployment → Integrations section in the Concord Admin UI to directly install Concord on your website. Our single line of code is placed at the top of the <head> section of your website, and you then add the Google Tag Manager script below the Concord script. That ensures that Concord runs first, allowing better control over the process and easier selection between different Google Consent Modes in Concord. We recommend you use this method in almost all cases.
  2. You can use the Inject Concord Script option found in our Google Tag Manager template. In this case, Google will control the initialization process and Google will automatically inject our script onto your website. Since we are not guaranteed to run first, all other scripts, cookies, and iframes (trackers) would also need to be implemented and ordered correctly in Google Tag Manager. As this can be an error prone process that is not future proof, we highly recommend choosing the first option above.

Regardless of which implementation option you use, you will use our Google Tag Manager community template along with the Project ID found in the Deployment → Integrations → Google section of the Admin UI. We should be configured to run using the Consent Initialization - All Pages Trigger option shown below and the default Google consent settings should typically all be set to denied initially. In most cases the rest of the settings do not need to be adjusted.

The user’s consent settings will now be automatically synced with Google based on their consent choices in your Concord Consent Banner & Privacy Center.

Gtag (Option 2)

First, add your normal Gtag code to your page below the Concord script you implemented above, ensuring that the Concord script is above the Gtag script. Once that is done, add the separate dataLayer object found below before your Concord code. This establishes your consent defaults in the data layer, but will not trigger your Google tag, since you haven't loaded the Google tag library yet.

<script>
  window.dataLayer = window.dataLayer || [];
  function gtag() { dataLayer.push(arguments); }
  gtag('consent', 'default', {
    ad_personalization: 'denied',
    ad_storage: 'denied',
    ad_user_data: 'denied',
    analytics_storage: 'denied',
    functionality_storage: 'denied',
    personalization_storage: 'denied',
    security_storage: 'granted',
    'wait_for_update': 500,
  });
  gtag('js', new Date());
  gtag('config', 'Google tag ID');
  </script>

Concord will now automatically integrate with your Google Gtag script prior to consent and will handle everything else for you automatically based on user consent choices.

Additional Resources

For more details on the different Google options, including advanced settings like region-specific behaviors in Google Tag Manager or URL passthroughs, please refer to the Google docs:

As a Gold Certified CMP Partner with Google, our support team is dedicated to ensuring you are successful when it comes to integrating Concord’s CMP with Google. We offer comprehensive assistance for all aspects of our platform, including setting up Concord and integrating with Google via our Google Consent Mode V2 integration.

Ways to get support:

For more information on Concord’s Support Commitment, visit: https://concord.tech/docs/concord-support-commitment