Make your WordPress website ready for Google Consent Mode V2 with our GDPR Consent Pro plugin for WordPress!
Before you continue reading this guide, please take note of the following:
- To set up Google Consent Mode for GDPR Consent Pro, please make sure you’ve updated the GDPR Consent Plugin to at least version 3.6.1. If you haven’t already, please log in to your account and download the latest version here.
- This guide assumes you already installed and configured GDPR Consent Pro. If you haven’t already, please follow this quick start guide.
- This guide also assumes you already know what Google Consent Mode means and how to set it up at the Google Tag Manager side. If you don’t, please read this Readme from Google.
Setting up Google Consent Mode for GDPR Consent Pro. #
- Log in to your WordPress admin and go to GDPR Consent -> Settings in your left admin menu. You will now find a tab called ‘Google Consent Mode’. Click it to open:
- Check the box behind ‘Enable Google Consent Mode’ to activate Google Consent Mode.
- Now you will be able to configure each Google Consent Type, and map it with your configured consents in your WordPress website.
First choose a default state (which can be ‘None’, ‘Denied’, or ‘Granted’). In most cases you’ll want to choose ‘Denied’, unless you know what you’re doing. Second, select the Consent you want to map.
Example: You have configured a Consent in the plugin called ‘Advertisements’, and you’d like to map this consent with the Google Consent called ‘ad_storage’. This way, when a visitor consents with the ‘Advertisements’, it will also set the Google Consent ‘ad_storage’ to ‘Granted’: - Repeat the previous step for each Google Consent Type you need to configure in order to get Google Tag Manager working (in most cases you’ll at least need to map the Google Consent Types “ad_storage” and “analytics_storage”). Google Consent Types you don’t want to map should be left as is (Default state: None, Consent: Disabled).
- It is possible to map the same Consent to multiple Google Consent Types (as long as your Consent description accurately describes what this consent does). In our example, we have one Consent called ‘Advertisements Personalization’, which is mapped to the Google Consent Types ‘ad_user_data’ and ‘ad_personalisation’:
- When you’re done mapping Consents, press ‘Save changes’ and clear caches if necessary.
- Now you’re all set up! To be sure that Google Consent Mode is implemented correctly on your WordPress website, you can test this using Google Tag Assistant. Visit your website in Tag Assistant (be sure to be logged out in WordPress). Next, in the Tag Assistant window, you can click on a page or message and navigate to the ‘Consent’ tab. You should see which consents are given.