GDPR compliance is not a choice but a must for webmasters to ensure the privacy and security of user data. The implementation of cookie consent according to Google Consent v2 policy is a crucial step in this process. For more info on this, visit the EU GDPR Information Portal.

Let’s look at how to set up cookie consent using Google Tag Manager and how to create a centre popup feature on CookieYES (for free!).

What is Google Consent Mode v2?

Google Consent v2 policy requires websites to obtain user consent before collecting data through cookies. This ensures that users are informed about data collection practices and can control their personal information. For a detailed overview, check out Google Consent Mode v2 Overview.

Google Consent Mode V2 introduces 2 new consent stats: ‘ad_user_data’ and ‘ad_personalisation’

  • ‘ad_user_data’ determines whether the user consents to sending advertising-related user data to Google
  • ‘ad_personalisation’ controls if data can be used for personalised ads, like remarketing.

These two new parameters are in addition to the current ‘ad_storage’ and ‘analytics_storage’ parameters.

What happens if you don’t set up Google Consent Mode v2?

If Google Consent Mode v2 is not implemented, several issues may arise.

Without consent for personalised advertising, ads become less targeted and, consequently, less effective. This lack of targeting can lead to lower conversion rates, as the ads are not tailored to the users’ interests and behaviours.

How to implement Google Consent Mode v2 using Google Tag Manager

Google provides a list of recommended Consent Management Platforms, and using one of these is the easiest way to get Consent Mode V2 up and running.

We chose CookieYES because it’s user-friendly and has a central popup feature. Keep reading for our tips on how you can achieve a centre popup feature on CookieYES for free!

1. Log in to your CookieYes web app account

2. Enable Google Consent Mode (GCM)

  • Navigate to the CookieYes Dashboard > Advanced Settings.
  • In Site Settings, toggle the button labelled “Support GCM” to the right.

Cookie YES advanced setting

3. Create a New Tag in Google Tag Manager

  • Click on “Tags” in the left sidebar, then click “New.”

4. Configure the tag

  • Click on “Tag Configuration” and select “Discover more tag types in the Community Template Gallery.”
  • Search for “CookieYes CMP.”
  • Choose the CookieYes template and click “Add to workspace,” then click “Add” to add the tag.

5. Set up the tag

  • Insert the CookieYes website key.
  • Set other fields to the appropriate values.
  • Select “Enabled” or “Disabled” from the dropdown for each cookie category based on your requirements.
  • Save the tag after naming it.

7. Republish the script

  • Ensure all settings are correct and republish the script to apply the changes.

8. Open your website’s homepage and you should see cookie consent box!

Create a Centre Popup Consent Banner with CookieYES Free Version

Customise for Popup Appearance

Add below CSS to your site to style the consent banner as a popup and appear in the centre.

.cky-consent-container {
height: auto;
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%);
bottom: inherit !important;
}.cky-overlay {
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
background-color: rgba(0, 0, 0, 0.8) !important;
z-index: 9999998 !important;
}.cky-hide-new {
display:none !important;
}

Test and adjust!

Test the popup to ensure it appears correctly on different devices and browsers. Adjust the styling as needed to enhance the user experience and ensure compliance.

We hope that helps!

Implementing cookie consent in line with Google Consent v2 policy is crucial for GDPR compliance. By using Google Tag Manager and enhancing your setup with CookieYES, you can effectively manage user consent. Remember to regularly review and update your consent mechanisms to maintain ongoing compliance and build user trust.