Google コンセントモード
この記事では、Google コンセントモードとコンセントモードマッピングのための翻訳エクステンションの使用について概説します。
Google コンセントモードは、データ収集のためのユーザー同意を管理するための二つのアプローチを提供します:基本コンセントモードと高度コンセントモード。これらのモードを理解することは、データプライバシー規制の遵守とデータ収集戦略の最適化に不可欠です。
-
基本コンセントモード:従来のアプローチで、ユーザーの同意が得られない場合はタグやコネクタアクションがブロックされます。これにより、同意なしに個人を特定できる情報(PII)を含む不正なデータ収集が防止されます。
-
高度コンセントモード:このアプローチでは、同意の状態に関係なく Google タグをロードし、ユーザーの同意決定を Google に通知します。タグは次のいずれかの方法で適応します:
- トラッキングに同意していないユーザーから匿名データを収集するためにクッキーを使用しないエンドポイントを使用します。
- 同意を提供したユーザーに対しては標準エンドポイントを使用します。
この高度な戦略は、PIIの使用に関するユーザーの同意を尊重しながら、分析と広告変換のためのデータ収集を最大化することを目指しています。
データ収集をブロックする(基本)か、標準トラッキングに同意していない訪問のために匿名データを収集する Google の方法を採用する(高度)かを決定するために、法務およびリーダーシップチームと相談することが重要です。
詳細については、Google Ads Help: コンセントモードについてを参照してください。
仕組み
Google コンセントモードを実装するには、同意選択を Google コンセントモードの構成にマッピングするための JavaScript コードエクステンションを追加し、デフォルトの同意構成とカテゴリマッピングを持つ Google Consent Mode tag を構成します。訪問が同意選択を行うと、Google コンセントモードタグはこれらの構成を Google タグに通知し、適切なデータ収集エンドポイント(デフォルトの収集エンドポイントまたはクッキーを使用しないエンドポイント)を選択してデータを Google に送信します。
基本および高度コンセントモードのどちらでも、Google Consent Mode tag は自身でデータを送信しないため、常に発火させることができます。代わりに、他のタグが反応するためのシグナルを提供します。
同意目的のマッピング
エンドユーザーの同意選択を Google コンセントモードの構成にマッピングするには、JavaScript コードエクステンションが必要です。このエクステンションを使用して、さまざまな目的またはベンダーに対するエンドユーザーの現在の同意決定をキャプチャし、対応する Google コンセントモードの目的または構成に granted
または denied
(または特定のシナリオで true
/ false
)のステータスを割り当てます。
JavaScript エクステンションテンプレート
JavaScript エクステンションを構成するには、次のテンプレートコードを使用します。これはロードルールの後に実行され、常に実行されるように構成されるべきです:
// ロードルール後 - 常に実行
b.consent_decision = (tealiumConsentRegister && tealiumConsentRegister.currentDecision) || [];
b.google_ad_storage_consent = <your-logic-here> ? 'granted' : 'denied';
b.google_ad_user_data_consent = <your-logic-here> ? 'granted' : 'denied';
b.google_analytics_storage_consent = <your-logic-here> ? 'granted' : 'denied';
b.google_ad_personalization_consent = <your-logic-here> ? 'granted' : 'denied';
b.google_ads_data_redaction = <your-logic-here> ? 'true' : 'false';
b.google_url_passthrough = <your-logic-here> ? 'true' : 'false';
<your-logic-here>
を、ユーザーの同意に基づいて granted
または denied
、true
または false
に評価される条件に置き換えてください。
例
あなたの実装は、あなたの同意構成によって異なる場合があります。
Consent Manager の例
Consent Manager を使用している場合、同意ステータスを決定するロジックは次のようになるかもしれません:
// ロードルール後 - 常に実行
b.consent_decision = (tealiumConsentRegister && tealiumConsentRegister.currentDecision) || [];
b.google_ad_storage_consent = b.consent_decision.indexOf('display_ads') !== -1 ? 'granted' : 'denied';
b.google_ad_user_data_consent = b.consent_decision.indexOf('personalization') !== -1 ? 'granted' : 'denied';
b.google_analytics_storage_consent = b.consent_decision.indexOf('analytics') !== -1 ? 'granted' : 'denied';
b.google_ad_personalization_consent = b.consent_decision.indexOf('personalization') !== -1 && b.consent_decision.indexOf('display_ads') !== -1 ? 'granted' : 'denied';
b.google_ads_data_redaction = b.consent_decision.indexOf('personalization') === -1 || b.consent_decision.indexOf('display_ads') === -1 ? 'true' : 'false';
b.google_url_passthrough = b.consent_decision.indexOf('personalization') !== -1 ? 'true' : 'false';
OneTrust を使用した Consent Integrations の例
Consent Integrations と OneTrust を使用している場合、ロジックは次のようになるかもしれません:
// ロードルール後 - 常に実行
b.consent_decision = (tealiumConsentRegister && tealiumConsentRegister.currentDecision) || [];
b.google_ad_storage_consent = b.consent_decision.indexOf('C0004') !== -1 ? 'granted' : 'denied';
b.google_ad_user_data_consent = b.consent_decision.indexOf('C0004') !== -1 ? 'granted' : 'denied';
b.google_analytics_storage_consent = b.consent_decision.indexOf('C0001') !== -1 ? 'granted' : 'denied';
b.google_ad_personalization_consent = b.consent_decision.indexOf('C0004') !== -1 && b.consent_decision.indexOf('C0003') !== -1 ? 'granted' : 'denied';
b.google_ads_data_redaction = b.consent_decision.indexOf('C0004') === -1 || b.consent_decision.indexOf('C0003') === -1 ? 'true' : 'false';
b.google_url_passthrough = b.consent_decision.indexOf('C0004') !== -1 ? 'true' : 'false';
これらの正確な変数名を使用する場合、追加のマッピングは必要ありません。Google コンセントモードタグの最新バージョンは、これらの変数をデフォルトで使用します。
エクステンションのための同意パラメータの選択
JavaScript エクステンションで使用する同意パラメータを特定するには、次の手順に従います:
-
ブラウザのクッキーとキャッシュをクリアします。
-
最新の Consent Manager または Consent Integrations テンプレートがアクティブなウェブサイトまたはステージング環境を訪問します。
-
GDPR スタイルのオプトインモデルを使用している場合、同意ダイアログですべてのトラッキングを受け入れます。
-
ブラウザの開発者ツールを開き、コンソールに移動します。
-
TealiumConsentRegister
オブジェクトを表示するには、tealiumConsentRegister
を入力します。このオブジェクトにはcurrentDecision
とdecisions
の配列が含まれています。currentDecision
配列には現在許可されている目的が含まれています。
currentDecision
オブジェクトは、あなたのロジックで使用できる同意オプションを b.consent_decision.indexOf('<Value to change>')
でリストします。
最終更新日 :: 2025年July月24日