This article gives details on how to integrate Consent Mode with a consent management platform. As a Consent Management Platform (CMP) provider, you can provide a better experience for customers who use Google products by integrating with Google Consent Mode.
Consent Mode enables Google’s measurement system to track consent state across a visitor’s journey. Google and third-party tags automatically adjust their behavior based on consent. For example, if a visitor denies consent for Ad storage, tags that would normally set Ad cookies send cookieless pings instead.
Using Consent Mode instead of manually blocking tags enables your customers to collect generalized measurement information while still respecting their visitors’ consent choices. To support Consent Mode, you will need to provide a solution for each tagging platform your customers use:
- For gtag.js, add code to your platform that customers can utilize on their website. See the gtag.js instructions in Manage consent settings for more information.
For Google Tag Manager (GTM), we strongly recommend creating and publishing Consent Mode templates. Your customers will use the templates to create tags for their website. See the following articles for more information: