Google Consent Mode for Google Analytics and Google Ads

Use Google Consent Mode with PixelYourSite & ConsentMagic

What is Google Consent Mode?

Google Consent mode allows you to communicate your users’ cookie consent preferences. It works with Google Analytics and Google Ads tags.

Consent Mode supports two values:

  • accepted: the script will set up and use cookies on the user’s browser.
  • denied: the script will not set up cookies on the user’s browser. Previously set cookies will not be used, except for spam and fraud prevention. 

Use Google Consent Mode

If your Google tags are implemented with PixelYourSite and you manage consent with ConsentMagic, you can use Google Consent Mode. 

There are settings inside the ConsentMagic plugin that will allow you to enable Google Consent Mode for Google Analytics or Google Ads tags.

What happens when you use Google Consent Mode?

ConsentMagic will not block Google Analytics or Google Ads when the user’s consent is missing or not granted. The tags will fire with the consent variable set to “denied”.

This will result in more data being tracked by Google while respecting your users’ privacy options.

Required setup 

In order to use Google Consent Mode, you need the following plugins:

PixelYourSite Professional or Free

Google Analytics and Google Ads tags must be configured with the PixelYourSite plugin.

ConsentMagic

You need to manage consent with the ConsentMagic plugin. You must enable Google Consent Mode for Google Analytics or Google Ads on the Settings page.

Google Consent Mode and GDPR

Under the GDPR framework, users must be informed about tracking and asked for permission BEFORE you can start to track them. This means that if a visitor lands on your site for the first time, tracking is blocked until they give you their permission. 

If you use PixelYourSite to fire the Google tags, and ConsentMagic to manage users’ consent, and you decide to use Google Consnet Mode, the tags are not blocked anymore.  They fire the events, but send consent mode “denied” until the user agrees to tracking. This will instruct Google to stop adding or using cookies to track data about the user. It’s the privacy solution that Google come up with. A solution that respects the users’ privacy, but still allows for some data to be tracked.

Is this solution GDPR compliant? That’s a complicated questions, and it’s not for us to answer it here. We just want to remind you that GDPR impose obligations for the site owners. They should inform their users and ask their permission regarding tracking. When using Google’s Consent Mode, what happens is that a site owner will track their users in the first place, and rely on a third party, Google, to comply with privacy requirements. 

Because of such nuances, we decided to block scripts when needed as the default option. In order to use Google Consent Mode, you need to manually change the settings inside the ConsentMagic plugin. And to give you more optionality, we decided to go with separate options, one for Google Analytics, and one for Google Ads tag.

Google Consent Mode V2

How to enable Google Consent Mode V2