Tryb uzyskiwania zgody dla dostawców platform do zarządzania zgodą użytkowników
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Z tego artykułu dowiesz się, jak zintegrować tryb uzyskiwania zgody z platformą do zarządzania zgodą użytkowników. Jako dostawca platform do zarządzania zgodą użytkowników (CMP) możesz zapewnić klientom większą wygodę korzystania z usług Google dzięki integracji z trybem uzyskiwania zgody Google.
Tryb uzyskiwania zgody umożliwia systemowi pomiarowemu Google śledzenie stanu zgody użytkownika na całej jego ścieżce. Tagi Google i tagi innych firm automatycznie dostosowują swoje działanie na podstawie zgody użytkownika. Jeśli np. użytkownik odmówi zgody na zapisywanie reklam, tagi, które normalnie ustawiają pliki cookie dotyczące reklam, będą wysyłać pingi bez plików cookie.
Korzystanie z trybu uzyskiwania zgody zamiast ręcznego blokowania tagów umożliwia klientom zbieranie ogólnych informacji dotyczących pomiarów przy jednoczesnym uszanowaniu wyboru użytkownika. Aby obsługiwać tryb uzyskiwania zgody, musisz podać rozwiązanie dla każdej platformy tagowania używanej przez klientów:
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2023-08-21 UTC.
[null,null,["Ostatnia aktualizacja: 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)"]]