---
title: "訪問者の同意に基づくウェブトラッキングの有効化または無効化"
slug: "enable-or-disable-web-tracking-based-on-visitor-consent"
abstract: "訪問者の同意に基づくウェブトラッキングの有効化・無効化方法。"
---
# 訪問者の同意に基づくウェブトラッキングの有効化または無効化

Sitecore 10.0以降では、連絡先の同意選択に基づいてトラッキングを有効または無効にできます。この機能を使用するには以下の条件が必要です:

-   [ウェブサイトを明確な同意を求めるように設定する](https://doc.sitecore.com/xp/ja/developers/103/sitecore-experience-platform/walkthrough--configuring-a-website-to-require-explicit-consent-for-tracking.html "Walkthrough: Configuring a website to require explicit consent for tracking")
-   [同意マネージャーAPIを使って同意の選択肢をキャプチャし管理しましょう](https://doc.sitecore.com/xp/ja/developers/103/sitecore-experience-platform/manage-a-contact-s-tracking-consent-choices.html "Manage a contact's tracking consent choices")

> !注Sitecoreは、トラッキングのための同意選択を管理するためのデフォルトのレンダリングやユーザーインターフェースを提供していません。

ConsentInformationファセットは、トラッキング同意情報や連絡先の他の同意情報を保存するために使われます。トラッカーの文脈外で同意の選択を管理するには、[xConnect Client API](https://doc.sitecore.com/xp/ja/developers/103/sitecore-experience-platform/xconnect-client-api--c--.html "xConnect Client API (C#)")を使ってConsentInformationファセットを更新してください。