Consent Mode for CMP providers
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:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[null,null,["Last updated 2024-10-09 UTC."],[[["Consent mode allows Google products to adjust data collection based on user consent, improving the experience for customers using Google products."],["Integrating consent mode lets websites gather general analytics while respecting user privacy choices by using cookieless pings when consent is denied."],["CMP providers need to offer solutions for both gtag.js and Google Tag Manager to fully support consent mode integration."],["For gtag.js integration, provide code snippets for websites, while for Google Tag Manager, the creation and distribution of consent mode templates are recommended."],["Customers can utilize pre-built templates for GTM from the Community Template Gallery to simplify implementation."]]],["Consent mode integration allows Google's measurement system to track user consent, adjusting tag behavior accordingly (e.g., sending cookieless pings when consent is denied). CMP providers should offer solutions for each tagging platform. For gtag.js, providers must add code for customer use. For Google Tag Manager (GTM), providers should create and publish consent mode templates, enabling customers to easily implement tags that respect consent choices. Guidance is provided on creating and adding GTM templates to the community gallery.\n"]]