Modalità di consenso per i fornitori di CMP
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questo articolo fornisce dettagli su come integrare la modalità di consenso con una piattaforma di gestione del consenso. In qualità di fornitore di piattaforme di gestione del consenso (CMP), puoi offrire un'esperienza migliore ai clienti che utilizzano i prodotti Google integrandoli con la modalità di consenso di Google.
La modalità di consenso consente al sistema di misurazione di Google di monitorare lo stato del consenso lungo il percorso di un visitatore. I tag Google e di terze parti modificano automaticamente
il loro comportamento in base al consenso. Ad esempio, se un visitatore nega il consenso per l'archiviazione degli annunci, i tag che normalmente impostano i cookie dell'annuncio inviano ping senza cookie.
L'utilizzo della modalità di consenso anziché il blocco manuale dei tag consente ai tuoi clienti di raccogliere informazioni di misurazione generalizzate, pur rispettando le scelte di consenso dei loro visitatori. Per supportare la modalità di consenso, dovrai fornire una soluzione per ogni piattaforma di tagging utilizzata dai tuoi clienti:
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2023-08-21 UTC.
[null,null,["Ultimo aggiornamento 2023-08-21 UTC."],[[["\u003cp\u003eConsent mode allows Google products to adjust data collection based on user consent, improving the experience for customers using Google products.\u003c/p\u003e\n"],["\u003cp\u003eIntegrating consent mode lets websites gather general analytics while respecting user privacy choices by using cookieless pings when consent is denied.\u003c/p\u003e\n"],["\u003cp\u003eCMP providers need to offer solutions for both gtag.js and Google Tag Manager to fully support consent mode integration.\u003c/p\u003e\n"],["\u003cp\u003eFor gtag.js integration, provide code snippets for websites, while for Google Tag Manager, the creation and distribution of consent mode templates are recommended.\u003c/p\u003e\n"],["\u003cp\u003eCustomers can utilize pre-built templates for GTM from the Community Template Gallery to simplify implementation.\u003c/p\u003e\n"]]],["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"],null,["# Consent Mode for CMP providers\n\nThis article gives details on how to integrate consent mode with a consent\nmanagement platform. As a Consent Management Platform (CMP) provider, you can\nprovide a better experience for customers who use Google products by integrating\nwith [Google consent mode](https://support.google.com/analytics/answer/9976101).\n\nConsent mode enables Google's measurement system to track consent state across a\nvisitor's journey. Google and third-party tags automatically adjust their\nbehavior based on consent. For example, if a visitor denies consent for ad\nstorage, tags that would normally set ad cookies send cookieless pings instead.\n\nUsing consent mode instead of manually blocking tags enables your customers to\ncollect generalized measurement information while still respecting their\nvisitors' consent choices. To support consent mode, you will need to provide a\nsolution for each tagging platform your customers use:\n\n- For gtag.js, add code to your platform that customers can utilize on their website. See the gtag.js instructions in [Manage consent settings](/tag-platform/security/guides/consent) for more information.\n- For Google Tag Manager (GTM), we strongly recommend creating and publishing\n consent mode templates. Your customers will use the templates to create tags\n for their website. See the following articles for more information:\n\n- [How to create GTM templates](/tag-platform/tag-manager/templates)\n\n- [How to create a GTM consent mode template](/tag-platform/tag-manager/templates/consent-apis)\n\n- [How to add a template to the Community Template Gallery](/tag-platform/tag-manager/templates/gallery)"]]