CMP 供應商的同意聲明模式
本文將說明如何將同意聲明模式與同意聲明管理平台整合。同意聲明管理平台 (CMP) 供應商可整合 Google 同意聲明模式,為使用 Google 產品的客戶提供更優質的體驗。
同意聲明模式可讓 Google 的評估系統追蹤訪客歷程中的同意聲明狀態。Google 和第三方代碼可根據同意聲明自動調整行為。舉例來說,如果訪客拒絕同意儲存廣告 Cookie,一般會設定廣告 Cookie 的代碼就會改為傳送不含 Cookie 的連線偵測 (ping)。
使用同意聲明模式而非手動封鎖代碼,可讓客戶收集通用的評估資訊,同時尊重訪客的同意聲明選擇。如要支援同意聲明模式,您必須為客戶使用的每個標記平台提供解決方案:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-08-21 (世界標準時間)。
[null,null,["上次更新時間:2023-08-21 (世界標準時間)。"],[[["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"]]