Implementing Consent Mode
How to implement Google and Microsoft Consent Mode for Converge
Google and Microsoft both introduced a framework called Consent Mode. It acts like a translator between your cookie banner and their tracking tools, adjusting what data gets collected based on the user’s consent.
This guide shows how to implement Consent Mode when using Converge.
Why implement Consent Mode?
Consent Mode allows you to respect users’ privacy preferences while still collecting meaningful data for analytics and advertising. Without it, you risk either violating privacy laws or losing valuable insight and attribution.
Google vs Microsoft Consent Mode
Even though both frameworks are called “Consent Mode” and work similarly, they’re separate. If you use products from both companies, you’ll need to implement both frameworks.
Consent Mode process
Google and Microsoft Consent Mode have the same basic requirements:
- Default: Set a default consent status for all users before they interact with your cookie banner. You can customize defaults per country.
- Update: When a user makes a choice on your cookie banner, update the Consent Mode status to match.
Consent types
Consent Mode requires you to set statuses for different types of consent. These affect how tracking behaves.
Consent type | Description | Required by Google | Required by Microsoft |
---|---|---|---|
ad_storage | Allows storage (like cookies) for advertising. | Yes | Yes |
ad_user_data | Sets consent for sending user data related to ads. | Yes | No |
ad_personalization | Sets consent for personalized ads. | Yes | No |
analytics_storage | Allows storage (like cookies) for analytics. | Yes | No |
Microsoft currently only requires ad_storage. You can still set the others in case they expand support later.
Consent mode behavior
When you have implemented Consent Mode correctly, the tracking products from Google and Microsoft will automatically adjust their tracking behavior based on the consent that has been given. A few examples are:
- analytics_storage granted: GA4 web tracking will place cookies and process IP addresses.
- analytics_storage denied: GA4 web tracking will not use cookies or process IP addresses but will send cookieless pings used in behavioral modeling.
- ad_storage granted: Google Ads web tracking will place cookies and process click id’s in the URL.
- ad_storage denied: Google Ads web tracking will not use cookies or process click id’s in the URL but will send cookieless pings used in conversion modeling.
For a full description on how Consent Mode impacts tracking behavior, you can read this documentation for Google Consent Mode and this documentation about Microsoft Consent Mode.
Implementing Consent Mode
The Google and Microsoft destinations in Converge (like GA4, Google Ads, Microsoft Ads) respect Consent Mode settings automatically but Converge doesn’t set them for you. You have two options:
- Consent Management Platform (CMP): Many CMPs (like Cookiebot, CookieYes, OneTrust) offer Consent Mode support out of the box.
- Custom implementation: You can implement Consent Mode manually with developer help.
Key requirements
For Converge to work with your Consent Mode setup:
- Set the default consent mode before the Converge JavaScript pixel loads.
- Set the update consent mode (if the user already gave consent) after the default but still before the Converge pixel loads.
Examples
You can use the following examples to implement Consent Mode for Converge.
Using Consent Mode with Consent settings in Converge
You can also configure which destinations in Converge will load by using the Consent settings for each destinations. Since Consent Mode is already handling how products from Google and Microsoft will behave based on consent given by the user, it is best practice to not enable any additional restrictions in Converge.
For the best results you configure consent as followed:
- Choose the Analytics or Marketing category based on the type of destination.
- Set the Consent mode setting to Off.
Verify your implementation
You can validate your Google Consent Mode implementation by following these docs.
You can validate your Microsoft Consent Mode implementation by following these docs.
Disclaimer: This guide provides general information. It is not intended as legal advice, and readers should consult with qualified counsel for advice regarding their specific circumstances. Converge disclaims any liability for actions taken based on the information provided in this post.