Introduction
With biskoui it’s easy, we’ve implemented Google Consent Mode v2 to make your life easier. This guide explains how to activate Google Consent Mode v2 for our managed and unmanaged consent management platform.
Not using biskoui yet? Create a free account account now and easily comply with Google Consent Mode v2.
What is Google Consent Mode v2 ?
Introduced in November 2023, Google Consent Mode V2 is a refined iteration of the initial Consent Mode created by Google. It enhances the communication of users’ cookie consent preferences to Google tags on websites. As of March 2024, it is obligatory for all websites utilizing Google services to implement Google Consent Mode V2.
Integration modes with biskoui
Biskoui supports two modes of integration with Google Consent Mode v2, thebiskoui integration which is fully managed by biskoui and themanual integration which allows you to manage the Google Consent Mode v2 lifecycle manually (typically via Google Tag Manager tags and templates).
We recommend activating Google Consent Mode v2 via biskoui integration andonly use manual integration if you need more advanced customization.
Biskoui integration versus manual integration
- Biskoui handles consent automatically, initialising consents to deny all.
- Consent is automatically granted for specific services (e.g., Google Analytics and Google Ads) upon acceptance.
Advantage: Simplified consent management.
Manual integration
- As a web developer, you manually configures consent handling outside of biskoui.
Advantage: Allows further customization.
Disadvantages: Increased complexity, more manual configuration required.
How to integrate biskoui
Connect to your biskoui account
- Select your the domain on which you want to activate the Managed mode
- Go to the “Services” tab
- Ensure that at least one Google service (Google Analytics, Google Ads, Conversion Linker) is configured
- Tick the box “Enable Google Consent Mode managed by biskoui”
When the Google Consent Mode v2 option is activated, our biskoui banner will automatically manage the consent lifecycle according to the Google API. It will activate certain consents based on user choices. By default, everything will be set to “denied,” and then certain consents will be “granted.” For example, Google Analytics will activate consent for analytics_storageand Google Ads or Conversion Linker will activate consent for ad_storage, ad_user_data and ad_personalization.
By default, Google Consent Mode v2 is set to Basic Mode. It can also be set to Advanced Mode.
If you wish to useAdvanced Mode of Google Consent Mode v2, you must use biskoui’s integration with Google Tag Manager (GTM) to trigger your tags. See our guide to configuring services via Google Tag Manager.
In the Advanced version of Google Consent Mode, consent-aware tags (Google Analytics, Google Ads, Conversion Linker) will be launched as soon as the page is initialized, rather than when the user consents. This will make it possible to collect anonymous information from the outset, and more precise information once consent has been given by the user.
- In the GTM dashboard, add a trigger with custom event “biskoui_ready” This event is fired by biskoui once it has fully loaded and initialized Google Consent Mode v2.
- For each “consent-aware” tag (Google Tags), define the trigger as the new custom event you defined in step 1 (“biskoui_ready”). This will launch the scripts as soon as biskoui has finished initializing the default consent, but before the user has given consent.
Troubleshooting
There are a few common issues when testing Google Consent Mode v2, so be sure to read this section if you have any problems.
- Ensure the biskoui tag is started before any other tag that requires Google Consent Mode v2. The biskoui tag will initialize the consent mode, and if other consent-dependent tag are fired in parallel, the Google Consent Mode will mis-behave.
- Google Consent Mode v2 is currently only integrated with Google services (Google Analytics, Google Ads, Conversion Linker). If you have a custom script that takes consent into account, you’ll need to use Unmanaged Mode to control when consent is triggered.
- In the advanced Google Consent Mode v2, it’s important to load Google script only on “biskoui_ready” trigger and not on “All pages” trigger in GTM, otherwise there is a risk that these scripts will run before Biskoui has fully initialized the consent mode.
- Make sure you don’t have any other scripts that initialize the consent. With Biskoui Managed Mode, Biskoui automatically handles Consent Mode initialization with the Google API, so you don’t have to add custom code to your HTML header. Pay close attention to the advice you find online, as many other CMPs require the user to add the initialization code themself, which is not the case with Biskoui!
How to integrate manually
By default, biskoui is configured for manual integration; no action is required in the biskoui administration console to activatemanual integration.. Make sure, however, that the checkbox “Enable Google Consent Mode managed automatically by biskoui” is disabled in the “Services” tab.
Inmanual integration, you decide for yourself how to integrate Google Consent Mode v2. Biskoui will not interact with the Google Consent Mode v2 API, instead you’ll need to initialize consent at the right time and trigger consents on certain biskoui events. This integration requires to write Javascript code. We recommend that you follow the official Google documentation. The basic steps to follow are:
- Initialise all consents to deny. This can be done either with a script in the header of your HTML, or with the trigger “Consent Initialization – All Pages” in Google Tag Manager (GTM).
- Start all the Google Tags on the trigger “All Pages”, or manually added in your HTML header after the consent initialization (it’s very important to first initialize the consent and only then load these scripts)
- You can use the biskoui Google Tag Manager (GTM) triggers to add custom scripts to grant consents when the user accepts a specific service. Alternatively you can host your script directly in biskoui in the corresponding services (instead of hosting the service script).
Need help with the setup of Google Consent Mode v2 ?
Our support team is available by e-mail at support@biskoui.ch