Set up Google Consent Mode v2 with CCM19
Google has been offering Consent Mode v2 since November 2023 in response to the requirements of the Digital Markets Act. By March 2024, all websites that record conversions via Google services or use remarketing must use Consent Mode v2 to ensure that data is processed in compliance with data protection regulations.
What is Google Consent Mode?
Google Consent Mode makes it possible to customize Google tags and codes according to the user's privacy settings. If the visitor agrees to the marketing cookies via the CCM19 cookie banner, all Google services will be executed as usual.
With Google Consent Mode, data aggregation and pings can be used without cookies to continue measuring data such as conversions for Google Ads.
How do I activate Google Consent Mode in CCM19?
To activate Consent Mode in CCM19, you must edit the entry for the Google application for which Consent Mode is to be activated in the "Embeddings & Cookies" menu item. This will usually be the entries "Google Analytics" or "Google Tag Manager".
To do this, click on the pencil icon in the "Google Analytics" line:
In the editing screen, you will find the settings for Google Consent Mode in a tab. Here you can activate the consent types. For Google Consent Mode v2, the entries "ad_user_data" and "ad_personalization" must be activated in any case.
What changes are required on my website?
In addition to activating Consent Mode in CCM19, you must follow Google's setup instructions: https://developers.google.com/tag-platform/security/guides/consent?hl=en#implementation_example
You must therefore add a script before the Tag Manager or Google Analytics code that includes all consent types activated in CCM19 so that CCM19 can set the value from "denied" to "granted" in the event of consent via the cookie banner. This allows Google services to switch seamlessly between data collection with and without cookies.