How to configure Google Consent Mode V2 with Avacy Solution: step by step guide

Index
immagine autore

Giammarco Tassinari

Reading time:

9 minutes

If you are looking for a detailed guide on how to implement Google Consent Mode V2 using Avacy, you are in the right place.

In this article, we will explore step by step the procedures required to effectively integrate this update with the Avacy consent management platform. From activating the consensus overview to creating the TAGs and verifying that the setup is correct, we cover every crucial aspect of the process.

What is Avacy

Avacy is a Consent Management Platform (CMP), developed with the support of a team of legal experts, which offers a complete solution for website and app compliance management enabling companies to manage regulatory compliance (GDPR) in an agile way.

Thanks to its ability to integrate with the industry's leading technologies, Avacy is the ideal solution to ensure compliance in a practical and cost-effective manner.

Its interface is easy to use, making it accessible to both professionals and users without previous experiencethus ensuring excellent usability for all.

In addition, Avacy offers direct customer support, thanks to which companies and professionals receive acontinuous and customised assistance.

But that's not all! If you want to know more about all the features of Avacy click here.

What are the steps to implement Google Consent Mode V2 with Avacy?

After having configured the Avacy CMP on your Site, the procedure to enable Google Consent Mode V2 might seem complicated, but with our guide below you will find all the steps clearly!

Let's see them together.

1. Enable consensus overview

  • Inside the Avacy web space click on "Cookie Banner", then go to "Advanced Settings" and in the dropdown "support for consent mode" select "Activate".
Abilitare panoramica del consenso da Avacy
  • Now go to Settings (click on the small wheel at the bottom left) and click on "Integration of Avacy on your web space".
Installare Avacy sul tuo spazio web
  • Click on the 'Google Tag Manager' tab and copy the Web Space Key and the Team Name.
Salvare web space key e nome del team
  • Now open Tag Manager, go to 'Administration' and 'Container Settings'. Under "Additional Settings" tick the checkbox "Activate Consensus Overview". This will give you a global overview of the tags configured for Consent Mode.
Attivare panoramica del consenso su google tag manager

2. Creating the Avacy CMP TAG

  • In Tag Manager, go to 'Templates' and create a New Model.
  • Next, click on the 3 dots in the top right-hand corner, go to 'Import' and select this file after downloading it (you can also download the file here). Accept the terms and conditions and click on 'Save'.
  • Close (by pressing the X) and return to the Tag manager work area.
Creare modello gtm per Avacy cmp

3. Creating the customised activator

  • Create a customised activator by naming it avacy_consent_update

Avacy will send a custom event whenever there is a consent update from the user. Think for instance when a user consents to all cookies, or subsequently changes them: this event is handled by the custom activator avacy_consent_update.

Creare attivatore avacy_consent_update

4. Adding the Avacy TAG

  • Create Avacy Tag: select Tag and click on 'New'.
  • From the list, select customised tag "Avacy CMP" that was installed in the previous steps (see step 2).
Aggiungere il tag Avacy a GTM
  • Enter the data you obtained from the Avacy settings from the previous steps (Web Spaces Key and Team Name: see step 1).
  • In the activator, set to 'Consent Initialisation - All Pages".
Avacy CMP tag

How are you doing so far?
If you need a FREE consultation write to support@avacysolution.com

or

5. Modifying TAGs for consent mode

At this point we move on to the configuration of the tags.

Tags can be divided into two macro-categories:

  • I Google tagssuch as analytics or Google Ads tags. This type of tag has the native support for consent mode.
  • All other tracking codesall other types of tags, such as Facebook, Tik Tok and others.

Configuring Google Tags with Consent Mode v2

Let's start with Google Tags.

To continue with the next steps, keep in mind that the two configuration modes introduced with Consent Mode v2 are as follows:

  1. BASIC configuration: in this mode, if users deny consent to cookies, no data is transmitted to Googlenot even in aggregated or anonymous form. This configuration represents the most restrictive and conservative at consensus management, particularly suitable if you do not conduct marketing or advertising campaigns on platforms such as Meta or Google Ads.
  2. ADVANCED configurationUnlike the basic version, the advanced mode continues to send data to Google in aggregate form and non-identifying even if users do not accept cookies. This approach maintains the traditional operation of Consent Mode, offering a greater flexibility for those conducting online marketing and advertising campaigns.

Let us take as an example the Google configuration tagsUnder 'Advanced Settings' go to 'Consent Settings'. Here you will find three choices:

  • Not set
  • No additional consent required
  • Additional consent is required to activate the tag
Google tag consent mode v2

If you select the "Not set" you will enter the advanced consent mode. Conversely, by selecting the "Additional consent is required to activate the tag" will be activated basic mode and the Google tag will not be activated when the user rejects these flags. In the latter case, ad_storage, ad_personalisation, ad_user_data e analytics_storage must be set manually.

modalità avanzata consent mode v2

Whichever mode is chosen, the activation of this tag must be set to thecustomised event you configured earlier, i.e. avacy_consent_update (see step 3).
This customised Avacy activator is important because when the user accesses the page, they do not instantly click 'accept' or 'reject' in the cookie banner. The Avacy activator therefore 'listens' until the user interacts with the cookie banner and expresses their preferences.

Configure all other tracking codes

The major innovation introduced by consent mode v2 concerns the advanced mode by which it is possible to receive data even without the user's explicit consent, provided it is in aggregated form.

However, this type of tracking only concerns Google tags. For all other tracking codes, such as Meta, Linkedin or Tik Tok, it is necessary to follow the basic implementation.

Then, follow the steps below:

  • Within the tag configuration go to 'Advanced Settings'.
  • Under 'Consent Settings' select 'Additional consent is required for tag activation'.
  • Set the activator to thecustomised event you configured earlier, i.e. avacy_consent_update (see step 3).

In this case, events will only be activated if the user consents to data tracking.

How to check that the setup is correct: Debug Google Consent Mode v2

Once we have followed all the steps above, all that remains is to check that the setup is correct! To do this, it is important to monitor two fronts: on the one hand the Tag Manager debug, so as to verify that the consent status is correctly registered, and on the other hand the web page itself which, thanks to a plugin, verifies in real time what the user's consent status is. Let's see them together:

1. Using the GTM debugger

  • Select a any Google Tag Manager event on the first column.
  • Go to the 'Consent' tab to check the current status of consent.
Google Tag Manager debugger consent mode v2

It is possible to monitor which tags have been blocked by consent mode.

In the case of the advanced mode the Google Tag started despite the denied consent to all flags while the generic tracking code was correctly blocked.

Debug google tag

In the case of the Basic mode, consent was also given on the Google Tag. Both were therefore blocked.

Debug Google Tag consent mode v2 con modalità avanzata

If you display this message: 'A tag read consent state before a default was set', but the default state was set correctly at the Consent Initialisation level, this is a false alarm.

warning consent mode

If you still want to remove it, simply insert the following script on the page before the gtag:

.

2. Use the InfoTrust plugin for Chrome

InfoTrust is a leading digital solutions company specialising in data analysis and digital marketing. Among its services, InfoTrust provides adedicated debugging extension for Chrome which monitor consensus status and shows the payload of data sent to Google, facilitating the optimisation of marketing strategies and regulatory compliance.

There are three tabs in the plugin:

  • the Google Consent State (GCS), or Google Consensus State, or a coding used to indicate the consent status for various Google services.
  • GCD CodeIt also includes the history of what the user has done with the consent.
  • History: encodes values for all four consensus signals (ad_storage, analytics_storage, ad_user_data e ad_personalisation) and includes information on how the consent signal was generated.

In particular, we will find the following entries:

  • G100: No consent was granted.
  • G110: Google Ads has consent, Google Analytics does not.
  • G101: Google Analytics has consent, Google Ads does not.
  • G111: Both Google Ads and Google Analytics have consent.

To view this information, simply load the web page and click on the InfoTrust extension in the top right of the Chrome window.

3. Warning on Google services (e.g. GA4)

In the event that GA4 o Google Ads receive events without the various flags of consent mode, Google will promptly show you a warning in the backend.

Warning consent mode v2

Once the issue is resolved, however, the window will not disappear automatically (it may take several days).

Watch the webinar Google Consent Mode V2 explained simply

Did you find all the proposed steps clear and easy to follow?
If you would like further support, why not watch the dedicated webinar?

The author of this post

immagine autore
Giammarco Tassinari
A graduate in Economics and Business Management with honors from Alma Mater Studiorum in Bologna, he has extensive experience in digital marketing. As Marketing Director for Jump Group, he coordinates the development of complex strategies spanning SEO, SEA, Facebook Ads, marketing management, web marketing and advertising strategies. His passion for digital marketing constantly drives him to stay abreast of the latest trends, demonstrating a relentless commitment to innovation and professional development.

Try Avacy for free

We support you to comply with the legal obligations of your websites.
Easy, guided and understandable for everyone.

You might also be interested in

Need information?

Fill the form below and we will get in contact with you as soon as possible.