{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"リアルタイムパーソナライゼーション2.0クライアントサイドユースケースガイド","description":"Webブラウザから直接、安全かつリアルタイムにパーソナライズされた体験を提供するクライアントサイドのTreasure AIパーソナライゼーション実装ガイド。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"リアルタイムパーソナライゼーション20クライアントサイドユースケースガイド","__idx":0},"children":["リアルタイムパーソナライゼーション2.0クライアントサイドユースケースガイド"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"はじめにと概要","__idx":1},"children":["はじめにと概要"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["リアルタイムパーソナライゼーション2.0(クライアントサイド)は、Webおよびマーケティングチームがブラウザから直接、即座に高度にカスタマイズされた体験を提供できるようにします。この最新のデータエンジンにより、WebサイトやCMSは、最新の顧客プロファイル属性、行動、オーディエンスセグメントメンバーシップを即座に反映して、各訪問者に対してコンテンツを動的にパーソナライズできます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["従来のサーバーサイドパーソナライゼーション(すべてのリクエストを中間バックエンドを経由させる)とは異なり、クライアントサイドのリアルタイムパーソナライゼーション2.0では、ユーザーのブラウザで実行されるJavaScriptがTreasure DataのAPIからパーソナライゼーションペイロードを安全に取得できるため、追加のネットワークホップが不要になり、レイテンシが削減されます。このアプローチにより、迅速なUI更新が可能になり、ユーザーがサイトに着陸したり操作したりするとすぐに、ターゲットオファー、商品推奨、ロイヤルティバナーなどを表示するといった強力なページ内パーソナライゼーションシナリオが実現します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クライアントサイド版では、すべてのAPI呼び出しはWebブラウザから発信され、パブリックトークンを使用してCORS対応エンドポイントから提供されます。機密性のない(非PII)データのみがフロントエンドに配信されるように組み込みのセーフガードが備わっています。このガイドは、ブラウザベースの統合に特化しており、トークン設定、属性の機密性制御、UI設定、プライバシーとコンプライアンスのベストプラクティスなどを含め、クライアントサイドパーソナライゼーションを安全に有効にするための明確なステップバイステップの手順を提供します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/rtp-client-side-use-case.2767d79a1213f09416ee3364c2d2ab1e31f2d8da0b0c3fd1c8c72f818bfe1821.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["サーバーサイド統合については別のドキュメントもご覧いただけますが、このガイドは、ブラウザで直接リアルタイムパーソナライゼーションを実現したい開発者、データエンジニア、マーケター向けに設計されており、Web上での最新のコマース、コンテンツ、エンゲージメント体験をサポートします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このステップバイステップガイドを通じて、イベント追跡と属性設定からオーディエンスセグメンテーション、パーソナライゼーション設計、安全なページ内統合まで、Webアプリケーションでクライアントサイドのリアルタイムパーソナライゼーション2.0ユースケースを構築および実装する方法を学習します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ステップ1-データ取り込みとapiオプションクライアントサイド","__idx":2},"children":["ステップ1: データ取り込みとAPIオプション(クライアントサイド)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クライアントサイドのリアルタイムパーソナライゼーションにより、Webアプリケーションはユーザーのブラウザから直接、完全に動的でパーソナライズされた体験を提供できます。このセクションでは、プライバシー、コンプライアンス、データアーキテクチャのベストプラクティスを維持しながら、ブラウザJavaScriptからTreasure Dataのプラットフォームにイベントデータを安全かつ効果的に送信し、リアルタイムオーディエンス評価とパーソナライズされたペイロード配信を行う方法について説明します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クライアント統合パーソナライゼーションのデータフローとイベント取り込み","__idx":3},"children":["クライアント統合パーソナライゼーションのデータフローとイベント取り込み"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クライアントサイドセットアップでは、ページビュー、クリック、サインアップ、商品インタラクションなどのイベントは、サイト上で実行されるブラウザJavaScriptによってキャプチャされます。これらのイベントは、安全なCORS対応エンドポイントを介してTreasure DataのパーソナライゼーションAPIに直接送信されます。中間サーバーは不要で、レイテンシを最小限に抑え、Webパーソナライゼーションユースケースの「即座の」UI更新を実現します。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["イベント例: ページビュー、アイテムクリック、カート追加、コンバージョン、カスタムエンゲージメントマイルストーン。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["典型的なワークフロー:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["カスタムJavaScript、タグマネージャー、またはTDのJS SDK(M2用に更新後)を使用して関連イベントをキャプチャします。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["各イベントを関連する識別子(例: 匿名ID、td_client_id)、コンテキスト(URL、パス)、パーソナライゼーションに必要な非機密属性とともにパッケージ化します。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"安全なデータ送信-ブラウザでは非機密データのみ","__idx":4},"children":["安全なデータ送信: ブラウザでは非機密データのみ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["機密性のあるPIIまたは機密のビジネスロジックをブラウザから直接送信しないでください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クライアントサイドで送信されるすべてのイベントデータは、厳密に非機密である必要があります。機密データの場合は、代わりにサーバーサイドの取り込みパスを使用してください。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["安全なフィールド: 匿名ユーザーID、高レベルの行動(例: td_path、商品カテゴリ)"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["安全でないフィールド: メールアドレス、電話番号、生の個人識別子、または機密のビジネスロジック"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"適切なapiの選択-パーソナライゼーションapi-vs-取り込みapi","__idx":5},"children":["適切なAPIの選択: パーソナライゼーションAPI vs 取り込みAPI"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["主なイベント取り込み方法は2つあります:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["パーソナライゼーションAPI(クライアントサイドフォーカス)"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ユースケース:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["イベントを送信し、ブラウザからの単一のHTTP POSTリクエストで即座にパーソナライゼーションオファーを受け取ります。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ページロードまたはユーザーインタラクション時のリアルタイムで動的なコンテンツ更新に使用されます。"]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["レスポンス:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["非機密属性/セグメントのみが含まれます。オファーに機密データ(設定での属性の機密性による)が含まれている場合、レスポンスでは{}に置き換えられます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["エンドポイント:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["パブリックCORS対応URL(例: /public/{db}/{table})"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["WP13n-Tokenヘッダーにパブリックタイプのトークンが必要です。"]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["セキュリティ上の考慮事項:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ブラウザコードではパブリックトークンのみを使用してください。これらにはIPホワイトリストがなく、サービスレベルで「パブリック」として作成する必要があります。プライベートトークンはブラウザログにエラーを生成し、オファーを返しません。"]}]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["取り込みAPI"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ユースケース:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["バックエンド/サーバー経由でイベントを送信して保存し、後でセグメンテーションを行います。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["パーソナライゼーションペイロードを返しません。"]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["使用するタイミング: ブラウザを経由すべきでない機密または規制されたデータの場合、またはバッチ分析用の生ログをキャプチャする場合。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"apiリクエストと例","__idx":6},"children":["APIリクエストと例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クライアントサイドの「fetch」例(将来のJS SDKサポートを想定、またはwindow.fetchで使用):"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"fetch('https://us01.p13n.in.treasuredata.com/public/<YOUR_DB>/<YOUR_TABLE>', {\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/vnd.treasuredata.v1+json',\n    'WP13n-Token': '<ACCOUNT_ID>/<REACTOR_ID>/<PUBLIC_TOKEN>',\n    'Authorization':'TD1 <WRITE API KEY>'\n  },\n  body: JSON.stringify({\n    td_client_id: '1234-5678-9012-3456',\n    td_url: window.location.href,\n    td_path: window.location.pathname,\n    // ... 追加の非機密イベントフィールド\n    })\n  })\n  .then(res => res.json())\n  .then(data => {\n    // data.offers: パーソナライズされたセクション\n  }\n);\n","lang":"javascript"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["注意:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["含めないでください: いかなる理由でもブラウザサイドリクエストにプライベートトークンを使用しないでください。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["検証: トークンはパブリックである必要があり、オリジンが許可されている必要があり、レスポンスでは非機密データのみが返されます。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"corsとセキュリティ制御","__idx":7},"children":["CORSとセキュリティ制御"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["APIエンドポイントは、Originヘッダーとトークンのパブリック/プライベートステータスの両方を検証します。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["有効なパブリックトークンと有効なOriginの場合、APIはCORSヘッダーとオファーペイロードで応答します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["無効なトークン、プライベートトークン、または無効なOriginの場合、レスポンスは4xxでCORSヘッダーは送信されません。"]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クライアントサイドエンドポイントはパブリックトークンのみをサポートします。ブラウザからプライベートトークンを使用しようとすると失敗します。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"セグメントとテーブルマッピング","__idx":8},"children":["セグメントとテーブルマッピング"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クライアントサイドセットアップと同様に、各行動イベントは、リアルタイムオーディエンスロジックのための下流の「ペアレントセグメント」をサポートする明確で個別のテーブルにマップする必要があります。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ペアレントセグメントとテーブル定義は、Treasure コンソールのUI内で事前に設定する必要があります。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クライアントサイドイベントのすべてのマッピング、更新、イベント設定はUI内で管理されます。標準統合にはバックエンドは必要ありません。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ベストプラクティスチェックリスト","__idx":9},"children":["ベストプラクティスチェックリスト"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ブラウザJavaScriptから非機密データのみを公開する"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["常にCORS対応のパブリックエンドポイントとパブリックトークンを使用する"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["各行動イベントタイプを明確なオーディエンスセグメンテーションのための適切なテーブルにマップする"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["プライバシー、ルール、またはアクセス制御が必要なデータの場合: ブラウザではなく、サーバーサイドの取り込みを使用する"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"要約表-クライアントサイドデータ取り込みの比較","__idx":10},"children":["要約表: クライアントサイドデータ取り込みの比較"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"オプション"},"children":["オプション"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"ソース"},"children":["ソース"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"パーソナライゼーションレスポンス"},"children":["パーソナライゼーションレスポンス"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"トークンタイプ"},"children":["トークンタイプ"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"エンドポイントパス"},"children":["エンドポイントパス"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"ユースケース"},"children":["ユースケース"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パーソナライゼーションAPI"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ブラウザJS"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["はい(リアルタイム)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パブリックのみ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/public/db/table"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["リアルタイムブラウザUXパーソナライゼーション"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["取り込みAPI"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["バックエンド"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["いいえ(保存のみ)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["プライベート"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/records"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["機密、サーバーログ、コンプライアンスデータ"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ステップ2-uiでのリアルタイムパーソナライゼーション設定クライアントサイド","__idx":11},"children":["ステップ2: UIでのリアルタイムパーソナライゼーション設定（クライアントサイド）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure DataのUIでクライアントサイドのリアルタイムパーソナライゼーション2.0を設定する際には、ブラウザのセキュリティ、プライバシーコンプライアンス、堅牢なガバナンス、そしてシームレスなエンドツーエンドの有効化を確保するための固有の要件とワークフローがあります。このセクションでは、クライアントサイドのパーソナライゼーションを作成・管理するためのユーザー体験とシステム上の制約を一通り説明します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クライアントサイドパーソナライゼーション機能の有効化","__idx":12},"children":["クライアントサイドパーソナライゼーション機能の有効化"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クライアントサイド（ブラウザベース）の統合を有効にするには、アカウントでリアルタイムパーソナライゼーション2.0のグローバル機能フラグとM2クライアントサイドの機能フラグがいずれも有効化されている必要があります（例: サービス/トークン用の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eng-lc-realtime-personalization-m2-1"]}," と、属性レベルのPII機密性設定用の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eng-lc-realtime-personalization-m2-2"]},"）。これらのフラグが有効になっていない場合、パブリックサービスや機密属性の指定に関するUIオプションは表示されません。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ワークフロー-パブリックなパーソナライゼーションサービスの作成","__idx":13},"children":["ワークフロー: パブリックなパーソナライゼーションサービスの作成"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ペアレントセグメントを作成"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience Studioでペアレントセグメントを作成または選択します。このセグメントがパーソナライゼーションロジックの基礎になります。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいパーソナライゼーションサービスを作成（クライアントサイド向けのパブリック）"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["セグメントの「Personalization Configuration」に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["「Create new personalized service」をクリックします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["モーダルで「Service Type」を選択します。",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クライアントサイドで利用する場合は Public（publishing）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["サーバーサイド専用の場合は Private"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["重要: 作成後にサービス種別（パブリック/プライベート）を変更することはできません。想定する連携パターンに合わせて慎重に選択してください。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["名前、説明、検証"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["一意の名前（最大100文字）と、必要に応じて説明を入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["重複した名前や文字数制限を超えた名前は、「Name has already been taken」「Name is too long (maximum is 100 characters)」などのUI検証エラーになります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["必須項目が未入力の場合は、UIが作成をブロックし、エラー表示が行われます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["トークンの追加"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["パブリックサービスを作成したら、ブラウザで使用するトークンを1つ以上追加します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["各トークンにも一意の名前（同様の検証あり）が必要です。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["パブリックサービスとトークンの制約:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Allowed IPs（IP制限）は設定できません。設定しようとすると「Allowed ips must not be set when the parent service is public」という検証エラーが表示されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["これらのトークンはクライアントのJavaScriptに安全に埋め込めます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["プライベートサービスの場合はIPホワイトリストを設定できます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["トークンの形式と上限"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["APIトークンの形式は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["[ACCOUNT_INSTANCE_ID]/[REACTOR_INSTANCE_ID]/[RT_PERSONALIZATION_TOKEN]"]}," です。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["制限: サービスあたり最大50トークン、ペアレントセグメントあたり最大200トークン。"]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"セキュリティ不可変性ガバナンス","__idx":14},"children":["セキュリティ、不可変性、ガバナンス"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ブラウザで使用できるのはパブリックトークンのみです。プライベートトークンはバックエンド/サーバー用途に限定されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["一度作成したサービスのパブリック/プライベート種別は変更できません。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["編集モーダルではサービス種別のフィールドは無効化され、変更できないようになっています。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["これらの制約に反する操作を行うと、UIやAPIが明示的なエラーメッセージを返します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"トークン管理とuiの詳細","__idx":15},"children":["トークン管理とUIの詳細"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["各パブリックサービスのトークンはサイドパネルで管理します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["上限の範囲内であればトークンを削除して再作成できます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ユーザーセッションが失効している場合、トークン表示時にパスワードやSAML/SSOで再認証するプロンプトが表示されます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"機能フラグと権限による制御","__idx":16},"children":["機能フラグと権限による制御"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["パブリックサービスの作成/閲覧/編集や属性を機密として指定する操作は、機能フラグの展開状況とアカウント/ユーザーの権限に依存します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["権限が不足しているユーザーには「You do not have permission to perform this action.」といった説明的なエラーが表示され、操作はブロックされます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"バリデーションエラー処理uiアシスト","__idx":17},"children":["バリデーション、エラー処理、UIアシスト"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["UIはすべてのフィールドでリアルタイム検証を行い、空欄や重複、文字数超過を防ぎ、失敗時には明確なフィードバックを表示します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["システム仕様に反する操作を試みると、対応するエラーメッセージが返されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["インポートおよび属性管理については、次の「イベントと属性の定義」セクションで、属性ごとの機密度設定や追加のコンプライアンス制御を参照してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"まとめ表-クライアントサイド設定におけるuiの動作","__idx":18},"children":["まとめ表: クライアントサイド設定におけるUIの動作"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"タスク"},"children":["タスク"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"パブリックサービス/トークン"},"children":["パブリックサービス/トークン"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"プライベートサービス/トークン"},"children":["プライベートサービス/トークン"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サービス種別の編集可否"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["不可"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["不可"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Allowed IPs（トークン）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["設定不可"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["設定可"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["トークンの利用先"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ブラウザJSのみ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["バックエンド/サーバーのみ"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["トークンの削除/追加"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["制限内で可能"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["制限内で可能"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サービスあたりの最大トークン数"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["50"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["50"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["名前/説明のバリデーション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["あり"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["あり"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["セッション失効時の挙動"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SSO/パスワード再認証"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SSO/パスワード再認証"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ベストプラクティス","__idx":19},"children":["ベストプラクティス"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["パブリック（クライアント）とプライベート（サーバー）のサービスやトークンを識別できるよう、明確な命名規則を使用します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["同じトークンやサービスを両方の環境で使い回さないでください。厳密に分離することで運用上の事故を防げます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["これらの設定が変更不可である点をチームや連携先に共有し、導入やロールアウト時のトラブルを避けてください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["UIに組み込まれた検証機能を活用し、設定ミスを防止してください。"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ステップ3-イベントと属性の定義クライアントサイド","__idx":20},"children":["ステップ3: イベントと属性の定義（クライアントサイド）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クライアントサイドのリアルタイムパーソナライゼーションサービスを設定したら、次はブラウザで取得するイベントを定義し、ページ内パーソナライゼーションを駆動するリアルタイム属性を構成します。サーバーサイドの方法と概念的には似ていますが、非機密データのみを扱えるようプライバシー、UI、ガバナンス面でより厳格な制御が組み込まれています。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"イベントテーブルとイベント定義","__idx":21},"children":["イベントテーブルとイベント定義"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["リアルタイム構成セクションでは、WebサイトやWebアプリから送信される行動イベントを表すテーブルを選択または登録します。クライアントサイドパーソナライゼーションで一般的なイベント例は次のとおりです。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ページビュー（例: ホーム、カテゴリ、商品ページ）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クリック（商品詳細、カート投入、バナー）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Webサイトでのサインアップやログイン（PIIを含まない場合）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["カスタムアクション（例: 動画完了、アセットのダウンロード）"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいイベントを定義するには:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["設定UIのEvents領域で「Create new event」をクリックします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["そのイベントストリームを保存するデータテーブルを選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["下流で参照しやすいよう、イベントにわかりやすい名前（例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["product_page_view"]},"）を付けます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["（任意）URLパスやクエリなどでフィルタを設定し（例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td_path"]}," の正規表現 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["^/retail/.*/product/.*"]},"）、特定のイベントだけをパーソナライゼーション対象にすることもできます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ベストプラクティス:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["イベントタイプごとにテーブルを分けて整理し、オーディエンスセグメントを細かく把握しやすくします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["バッチテーブルをリアルタイムに再利用する場合は、ブラウザから機密識別子が送信されないよう十分に確認してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"機密度を考慮した属性の定義","__idx":22},"children":["機密度を考慮した属性の定義"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クライアントサイド製品で重要なのは、Single、List、Imported属性の機密度を作成時（または編集時）に明示的に指定する必要がある点です。ブラウザ向けAPIのレスポンスでは、非機密の属性だけが返却されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"属性タイプ","__idx":23},"children":["属性タイプ"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Single: 訪問者ごとの最新値（文字列または数値）を保持します。最後に閲覧した商品、現在のページ、直近のカテゴリなどの追跡に便利です。PIIを露出しない場合にのみ非機密としてマークしてください（メールアドレスや電話番号などは避けること）。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["List: 訪問者ごとに最大100件の配列を保持します（例: 最近閲覧した商品やカテゴリ）。各アイテムは60日で期限切れになります。リスト内に機密データが含まれる場合は属性全体を機密として指定し、それ以外は非機密にします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Counter: イベントの発生回数をカウントします（例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["page_views_last_7_days"]},"）。カウンターは常に非機密とみなされ、UIで機密に設定することはできません。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Imported Batch: オフラインや業務システムから取り込んだバッチ属性（例: ロイヤリティ階層、バッチセグメントの所属）。適切な機密度を必ず設定してください。非機密として指定された場合のみ、ブラウザ向けPersonalization APIのレスポンスに含まれます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"属性の機密度とapiレスポンス","__idx":24},"children":["属性の機密度とAPIレスポンス"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["非機密: ペイロードセクションで参照される属性がすべて非機密であれば、クライアントに返却されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["機密: ペイロードセクション内に1つでも機密属性が含まれると、そのセクションはクライアントサイド（パブリックトークン）からのリクエストに対して{}としてマスクされます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["UIでの制御: 属性の作成/編集フォームでは、機密度の選択が必須です。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["レビューと監査: UIでは各属性が機密か安全かが表示されます。公開前に属性の一覧を再確認してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"属性タイプと設計クライアントサイドのポイント","__idx":25},"children":["属性タイプと設計（クライアントサイド）のポイント"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Single属性"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["プロパティの最新値のみを保持します（例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["last_category_viewed"]},"）。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["PIIの漏えいにつながる恐れがあるSingle属性は避けてください（メール、電話番号、その他の識別子をフロントエンドで見せたくない場合）。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["命名のヒント: バッチやサーバーサイド属性と衝突しないよう、明確で重複しない名称を付けます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["List属性"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["セッションや直近の行動に基づくユースケース向けです（例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["recent_products_viewed"]},"）。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["文字列または数値の配列のみを保持します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["価格やURLなどのプロパティを配列として格納でき、リスト全体を保持できますが、集計で主となるフィールドが文字列の場合のみ「フラット化」されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["リスト内の項目が機密データを含む場合は、属性全体を機密に指定する必要があります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["機密集計の数を示すには ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["x/y Sensitive"]}," 形式を使用します。たとえば ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1/5 Sensitive"]}," と設定すると、5つの集計のうち1つが機密であることを意味します。非機密の4つだけがペイロードに含まれるため、レスポンスではその4つの属性のみが返ります。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Counter属性"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["イベント発生数をカウントまたは合計します（例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["page_views_last_7_days"]},"）。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["常に非機密であり、集計行動のみを公開するためリスクが限定的です。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["スライディングウィンドウ（ローリング）や累積オプションをサポートしており、期間には上限が設定されています。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Imported Batch属性"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ペアレントセグメントに含めた場合にのみリアルタイムペイロードに追加されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["取り込み時に明示的に構成し、機密度を設定する必要があります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ブラウザイベントによるリアルタイム更新は行われず、バッチセグメントの再実行時にのみリフレッシュされます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ペアレントセグメントからインポート済みバッチ属性を削除し、RT構成を更新しないままだとエラーになります。必要に応じて属性を再追加し、ペアレントセグメントを再実行するか、ダミーエンティティを作成して解消してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"属性設計のベストプラクティスクライアントサイド","__idx":26},"children":["属性設計のベストプラクティス（クライアントサイド）"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["まず機密性を優先してください。ブラウザのAPIはエンドユーザーに解析される可能性があることを前提に、PIIや機密ロジックを含む、または推測できる属性を安易に非機密に設定しないでください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["命名規則を徹底し、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rt"]}," や ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client"]}," といったプレフィックス/サフィックスを付与してクライアントサイド属性を判別しやすくします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["特にリスト属性とカウンター属性では、価値とセキュリティ/コンプライアンスを両立できるウィンドウ期間を選択してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["UIやAPIのプレビュー機能を使い、ブラウザレスポンスに意図した非機密フィールドだけが含まれているかをエンドツーエンドで確認してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["要件が変わった場合は属性の機密度を更新できますが、変更にはUI/APIでの再設定が必要で、誤設定があるとセクションの一時的なマスクにつながる可能性があります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience StudioやAPIペイロードで混乱が起きないよう、クライアントサイド属性とバッチ/サーバーサイド属性を明確に区別してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"まとめ表-属性タイプと機密度の扱い","__idx":27},"children":["まとめ表: 属性タイプと機密度の扱い"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"属性タイプ"},"children":["属性タイプ"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"機密度の指定が必要か"},"children":["機密度の指定が必要か"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"クライアントサイドでの公開"},"children":["クライアントサイドでの公開"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"補足"},"children":["補足"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Single"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["非機密のみ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["プロファイルごとの最新値"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["List"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["非機密のみ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["最大100件、60日で期限切れ"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Counter"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["常に非機密"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["非機密のみ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["カウント/集計のみ"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Imported Batch"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["非機密のみ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["参照のみ。リアルタイムイベントで更新されない"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ステップ4-プロファイル統合とidステッチクライアントサイド","__idx":28},"children":["ステップ4: プロファイル統合とIDステッチ（クライアントサイド）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["プロファイル統合（IDステッチとも呼ばれます）は、特定の顧客に関係するブラウザ由来のイベントとバッチイベントを1つの統合プロファイルにまとめる機能です。このセクションでは、クライアントサイド統合でのステッチの設定方法を解説します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クライアントサイドパーソナライゼーションにおけるプロファイル統合とは","__idx":29},"children":["クライアントサイドパーソナライゼーションにおけるプロファイル統合とは"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クライアントサイドのパーソナライゼーションでは、顧客が複数のデバイスやブラウザからアクセスし、匿名状態と認証済み状態を行き来することがあります。タッチポイントを統合することで、文脈が変わっても関連性の高いリアルタイム体験と正確なオーディエンスセグメンテーションを実現できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["IDステッチでは、イベントに含まれる識別子（匿名ブラウザID、ファーストパーティクッキー、許可される範囲での非機密な顧客IDなど）を連携させ、閲覧行動、セグメント所属、コンテキスト属性を単一の顧客プロファイルにひも付けます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クライアントサイドでのidステッチ設定手順","__idx":30},"children":["クライアントサイドでのIDステッチ設定手順"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ブラウザ向けに適切な識別子を選択"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クライアントサイドで公開しても安全な非機密IDのみを使用します。例:"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td_client_id"]},"（匿名化されたシステム付与ID）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ファーストパーティのブラウザまたはセッションクッキー（PIIでない場合）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["サイト固有の訪問者ID"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ブラウザイベントやクライアントサイドのステッチキーとして、メールアドレス、ハッシュ化PII、生のユーザー情報を使用しないでください。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["リアルタイム構成UIでステッチキーを定義"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["「ID Stitching Keys」セクションで、ステッチ対象にする非機密のクライアントサイド識別子を追加します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["必要に応じて正規表現を設定し、受信したIDのフィルタリングや形式統一を行えます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["応用: 「workflow only」を設定すると、バッチ/ステージング専用にし、リアルタイムブラウザイベントでは使用しないようにできます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["プライマリキーを設定"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["利用可能なキーを定義したら、ユニークで永続的、かつ安定した識別子をプライマリキーとして選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["このキーはすべて（もしくはほぼすべて）のクライアントイベントに含まれ、予期せず変化しない必要があります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td_client_id"]}," を全ブラウザセッションで設定していればプライマリキーとして適しています。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["統合システムは、最も古いプライマリキーを正規のプロファイルとして割り当て、イベントと属性を統合します。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["構成を保存し、検証"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ステッチキーとプライマリキーを設定したら、保存してプロファイル統合ワークフローを再起動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["注意: 有効化後にプライマリキーを変更すると、プロファイルの再処理が必要になり、一時的にセグメンテーションが欠落する場合があります。"]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クライアントサイドidステッチにおけるプライバシーとコンプライアンスの注意点","__idx":31},"children":["クライアントサイドIDステッチにおけるプライバシーとコンプライアンスの注意点"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クライアントサイドで使用する識別子はすべて非機密である必要があります。ブラウザからメールアドレス、電話番号、住所、直接的/ハッシュ化済みのPIIを送信したりステッチしたりしないでください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["GDPRやCPRAなどの法規制、貴社のプライバシーポリシーを確認し、クロスデバイス/ユーザー統合を実施する際には適切な同意管理を徹底してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["一時的なIDやセッション単位、デバイス単位の識別子をクライアントサイドのフローでは推奨します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ベストプラクティスと代表的なシナリオ","__idx":32},"children":["ベストプラクティスと代表的なシナリオ"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クロスデバイスユーザーに備えましょう。匿名ユーザーが後にログインするケースなど、ブラウザ識別子がプライバシーポリシーに準拠した非機密キーに確実にマッピングされるよう設計してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ステッチに使用する識別子を監査し、本番稼働前にPIIやPIIに推測され得る情報が含まれていないか再確認してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ボットトラフィックやテスト、無効なセッションからの識別子を除外するために、正規表現や値の除外設定を活用し、クリーンな統合対象を維持してください。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ユーザーが匿名状態で ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td_client_id=a123"]}," として閲覧し、後でシステム生成のユーザーIDでログインした場合（イベントではメールを使用しないと仮定）、非機密キーを通じて両方のセッションを結合し、最も古い識別子を持つプロファイルに統合できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"システム制約","__idx":33},"children":["システム制約"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ペアレントセグメントあたり最大200個のステッチキーを設定できます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["各プロファイルは、セグメント内で常に単一の非PIIプライマリキーに解決される必要があります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["稼働後にプライマリキーを変更する場合は、プロファイルステッチを再実行して整合性を保たなければなりません。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"まとめ表-クライアントサイド統合におけるidステッチ","__idx":34},"children":["まとめ表: クライアントサイド統合におけるIDステッチ"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"ステップ"},"children":["ステップ"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"クライアントサイドでの指針"},"children":["クライアントサイドでの指針"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["許可されるIDタイプ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["非機密のブラウザID、匿名トークン、非PIIユーザーID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["禁止されるIDタイプ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["メール、電話番号、ハッシュ化PII、その他の機密属性"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["設定UIでの挙動"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["機密性に関する警告を表示。有効化後は編集不可。UIで検証を実施"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["最大ステッチキー数"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["200"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["キーの割り当て"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["一意で安定した値を選択し、稼働後の変更は避ける"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["マージロジック"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["最も古いIDを正規プロファイルとして採用"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ステップ5-audience-studioでのパーソナライゼーション構築と管理クライアントサイド","__idx":35},"children":["ステップ5: Audience Studioでのパーソナライゼーション構築と管理（クライアントサイド）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["イベントテーブルとリアルタイム属性を設定し、それぞれの機密度を確定したら、Audience Studioでクライアント向けのパーソナライゼーションロジックを設計して公開します。このフェーズでは、ブラウザに安全なリアルタイムAPIレスポンスを通じて各訪問者に適切なオファーやコンテンツを届ける方法を定義します。クライアントサイド製品のワークフローは、プライバシーを最大化し、非機密のペイロードのみを返すこと、さらに公開範囲を監査できるUI表示を提供するよう設計されています。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クライアント向けパーソナライゼーションの作成と管理","__idx":36},"children":["クライアント向けパーソナライゼーションの作成と管理"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ペアレントセグメントにアクセスして新しいパーソナライゼーションを作成"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience Studioで対象のペアレントセグメントを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["「Create」から「Personalization」を選択し、今後の管理に役立つ名前と任意の説明を入力します。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["セクションごとの条件とペイロードを定義"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Personalization Canvasで新しいパーソナライゼーションを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["1つ以上の「セクション」を追加します。各セクションには次の要素があります。",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["条件: パーソナライゼーションを発火させるルール（例: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["is_new_visitor = true"]},"）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ペイロード: 条件に一致したときブラウザへ返すデータ/オファー。事前に構成したバッチセグメントとリアルタイム属性から構成します。"]}]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["属性の機密度がペイロードの可視性を左右"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クライアントサイドのエンドポイントでは、非機密属性のみで構成されたセクションだけがブラウザにデータを返します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["セクション内にSingle/List/Importedいずれかの機密属性が含まれている場合、APIはそのセクションを{}として返し、完全にマスクします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["UIには盾や鍵のアイコンなどの視覚的な合図が表示され、ブラウザ/パブリックトークンでリクエストした際にセクションが空になるかどうかを確認できます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["プライバシーとコンプライアンスのためのUI/ワークフローのヒント"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["セクションビルダーは属性の機密度を自動検査し、リアルタイムで表示を更新します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["返却フィールドにエイリアスを設定したり、オーディエンス/バッチセグメントを追加したりできますが、クライアントに公開したい場合はこれらも非機密として構成する必要があります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["レスポンスSLAとフロントエンドの高速性のため、ペイロードサイズは10KB未満、理想的にはセクションごとに20属性未満に抑えてください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["バッチセグメント、インポート属性、機密度ラベルを変更した場合は、ペアレントセグメントのワークフローを再実行し、最新の出力がユーザーに配信されるようにします。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["マスク（レダクション）ロジックの適用"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ブラウザからパブリックトークンでパーソナライゼーションを呼び出す場合、機密属性を参照するセクションは必ずマスクされます。残りが非機密であっても例外はありません。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["例: 「Recommended Coupon」セクションで機密のインポート属性を参照すると、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["offers[\"Recommended Coupon\"]"]}," はクライアントレスポンスで ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{}"]}," になります。"]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"一貫性テスト監査性","__idx":37},"children":["一貫性、テスト、監査性"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["公開する想定のオファーが機密フィールドを参照しないよう、露出範囲を意識してパーソナライゼーションロジックを設計します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["UIの「Preview」や「Test」機能を使用し、ブラウザでどのセクション/属性が表示されるかを確認してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["フィールド名や用途を文書化し、どのセクションがクライアント公開に適しているかをチーム（エンジニア、プロダクトマネージャーなど）と共有してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"例-ペイロードのマスク挙動","__idx":38},"children":["例: ペイロードのマスク挙動"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次の2つのセクションを構成したとします。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Welcome Banner"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ペイロード: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{ \"welcome_message\": \"Hello, new user!\" }"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["すべての属性が非機密"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クライアントサイドAPIのレスポンスに表示されます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Loyalty Discount"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ペイロード: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{ \"discount_code\": \"LOYAL-15\", \"membership_tier\": バッチ属性（機密） }"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["少なくとも1つの機密属性を含む"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["マスクされ、APIはこのセクションを空オブジェクトとして返します。"]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"まとめ表-パーソナライゼーションセクションの結果","__idx":39},"children":["まとめ表: パーソナライゼーションセクションの結果"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"セクション名"},"children":["セクション名"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"使用する属性"},"children":["使用する属性"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"機密属性の有無"},"children":["機密属性の有無"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"クライアントAPIの結果"},"children":["クライアントAPIの結果"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Welcome Banner"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["welcome_message"]},"（非機密）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["いいえ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{ \"welcome_message\": ... }"]}," を返す"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Loyalty Discount"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["discount_code"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["membership_tier"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["はい"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{}"]},"（セクションがマスクされる）"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ベストプラクティス-1","__idx":40},"children":["ベストプラクティス"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["本番公開前にすべてのペイロードセクションを監査してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["マーケティングやコンテンツチームがどのオファーを公開できるか把握できるよう、ドキュメントを更新します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["機密性に関する誤解が生じる可能性がある場合は、セクションに不要な属性を含めないようにしてください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["視覚的なインジケーターやUIの警告を必ず確認し、公開予定であるにもかかわらずロック/マスクされていないかをチェックしてください。"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ステップ6-api統合と実装例クライアントサイド","__idx":41},"children":["ステップ6: API統合と実装例（クライアントサイド）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このセクションでは、ブラウザのJavaScriptからリアルタイムパーソナライゼーション2.0を統合し、ページ内体験でパーソナライズされたオファーを安全かつ効率的に取得する手順を紹介します。パブリックトークン、CORS対応エンドポイント、リクエスト/レスポンスの設計パターン、そしてサーバーサイド実装とのプライバシー/セキュリティ面の違いに焦点を当てます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ブラウザからパーソナライゼーションapiを呼び出す","__idx":42},"children":["ブラウザからパーソナライゼーションAPIを呼び出す"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クライアントサイド統合では、ブラウザのJavaScriptから直接呼び出せる安全なCORS対応エンドポイントを使用します。すべてのリクエストでパブリックRTパーソナライゼーショントークンを使用し、プライベート/サーバーサイド用トークンは絶対に使わないでください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例: ブラウザからのfetchリクエスト"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"https://us01.p13n.in.treasuredata.com/public/<YOUR_DB_NAME>/<YOUR_TABLE_NAME>\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["注意事項:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["リージョン固有のドメインと ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/public/"]}," パスをクライアント/ブラウザ呼び出しで使用してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<YOUR_DB_NAME>"]}," はストリーミングイベント用のデータベースです。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<YOUR_TABLE_NAME>"]}," はリアルタイムイベントのテーブルです。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"apiエンドポイントの例","__idx":43},"children":["APIエンドポイントの例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"fetch('https://us01.p13n.in.treasuredata.com/public/my_shop_db/event_table', {\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/vnd.treasuredata.v1+json',\n    'WP13n-Token': '12345/3/PUBLIC_TOKEN_ABC',\n    'Authorization': 'TD1 <WRITE API KEY>'\n  },\n  body: JSON.stringify({\n    td_client_id: '1986b2a4-3957-4863-be2c-7ef36a14afee',\n    td_url: window.location.href,\n    td_path: window.location.pathname,\n    product_name: 'women’s-tank-top',\n    product_category: 'women',\n    product_list: ['women’s-running-shoes', 'kids’-hoodie', 'women’s-tank-top'],\n    category_list: ['women', 'kids']\n    // ... any other non-sensitive fields you’ve configured\n    })\n  })\n  .then(response => response.json())\n  .then(data => {\n    // Handle personalization offers here, e.g., update UI sections\n    console.log('Personalization Offers:', data.offers);\n});\n","lang":"javascript"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例: ブラウザからのfetchリクエスト"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"fetch('https://us01.p13n.in.treasuredata.com/public/my_shop_db/event_table', {\nmethod: 'POST',\nheaders: {\n  'Content-Type': 'application/vnd.treasuredata.v1+json',\n  'WP13n-Token': '12345/3/PUBLIC_TOKEN_ABC',\n  'Authorization': 'TD1 <WRITE API KEY>'\n  },\nbody: JSON.stringify({\n  td_client_id: '1986b2a4-3957-4863-be2c-7ef36a14afee',\n  td_url: window.location.href,\n  td_path: window.location.pathname,\n  product_name: 'women’s-tank-top',\n  product_category: 'women',\n  product_list: ['women’s-running-shoes', 'kids’-hoodie', 'women’s-tank-top'],\n  category_list: ['women', 'kids']\n        // ... any other non-sensitive fields you’ve configured\n  })\n})\n.then(response => response.json())\n.then(data => {\n  // Handle personalization offers here, e.g., update UI sections\n  console.log('Personalization Offers:', data.offers);\n});\n","lang":"javascript"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ベストプラクティス-2","__idx":44},"children":["ベストプラクティス"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["プライベートRTトークンやTreasure APIキーをフロントエンド/ブラウザコードに埋め込まないでください。公開用（publishing）のトークンのみを使用します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"corsとセキュリティ制御-1","__idx":45},"children":["CORSとセキュリティ制御"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["CORSヘッダーが返される条件:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["有効でアクティブなパブリックトークンを使用している。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Originヘッダーが許可されたブラウザオリジンと一致している（TDの設定に基づく）。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ブラウザのJavaScriptでプライベートトークンや誤ったエンドポイントを使用すると、CORSヘッダーのない4xxエラーが返され、ブラウザ側ではリクエストが失敗します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["トークンが有効でも、ペイロードで「Sensitive」に指定された属性を参照すると、該当セクションは空になります（後述の例を参照）。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"apiリクエストとレスポンスの例","__idx":46},"children":["APIリクエストとレスポンスの例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例: リクエスト（JSON）"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"td_client_id\": \"42a508e2-d9b1-4baa-9eb2-6c3fb8bd5e16\",\n  \"td_url\": \"https://treasuredemos.com/retail/shop/women\",\n  \"td_path\": \"/retail/shop/women\",\n  \"product_name\": \"women’s-tank-top\",\n  \"product_category\": \"women\",\n  \"product_list\": [\n    \"women’s-running-shoes\",\n      \"kids’-hoodie\",\n      \"women’s-tank-top\"\n  ],\n  \"category_list\": [\n    \"women\",\n    \"kids\"\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例: 正常なレスポンス（非機密属性のみ）"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"offers\": {\n    \"Welcome Banner\": {\n      \"attributes\": {\n        \"welcome_message\": \"Welcome to our website! Enjoy your shopping!\"\n      }\n    },\n    \"Silver rewards just for you!\": {\n      \"attributes\": {\n        \"first_name\": \"John\",\n        \"total_purchase\": 28700,\n        \"items_purchased\": [],\n        \"order_summary\": \"Here is your order summary!\",\n        \"thank_you_message\": \"Thank you for shopping with us!\",\n        \"promotions_message\": \"Enjoy your 15% discount for your next purchase!\"\n      }\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["機密属性が含まれている場合のレスポンス例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"offers\": {\n    \"Welcome Banner\": {\n      \"attributes\": {\n        \"welcome_message\": \"Hello, new user!\"\n      }\n    },\n    \"Loyalty Discount\": {} // This section references a sensitive attribute and is redacted\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["補足:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["すべての属性が非機密で構成されたセクションだけがクライアントに返ります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["厳格なマスク処理により、PIIや保護対象データがブラウザに送られることはありません。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["UIで機密とマークされた属性が1つでも含まれるセクションは、レスポンスでマスクされます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クライアント統合とサーバー統合の比較","__idx":47},"children":["クライアント統合とサーバー統合の比較"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"項目"},"children":["項目"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"クライアントサイドAPI呼び出し"},"children":["クライアントサイドAPI呼び出し"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"サーバーサイドAPI呼び出し"},"children":["サーバーサイドAPI呼び出し"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エンドポイント"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/public/{db}/{table}"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["/{db}/{table} (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/public"]}," なし)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["トークンタイプ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パブリックのみ（publishing）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["プライベートまたはパブリック（構成可能）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["追加認証"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ブラウザでAPIキーを使用"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サーバーヘッダーでAPIキーを使用"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["CORS"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["必須。条件不一致の場合はブロック"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["使用/必須ではない"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["機密属性"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["マスクされ、該当セクションは ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["権限があれば常に含まれる"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["IPホワイトリスト"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パブリック/ブラウザトークンでは不可"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["プライベート/サーバートークンでサポート"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"トラブルシューティングとベストプラクティス","__idx":48},"children":["トラブルシューティングとベストプラクティス"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["403/401/またはCORSエラーが発生する場合",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["該当のパーソナライゼーションサービスに対して有効なパブリックトークンを使用しているか確認してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Originが許可されており、エンドポイントパスに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/public/"]}," が含まれているか確認してください。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["レスポンスが空/ブランクの場合",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience StudioのUIで属性の機密度を確認してください。非機密属性のみがブラウザに返されます。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["将来のSDKサポートについて",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["公式のTD JS SDKが更新されるまでは、上記のようなネイティブfetch/XHRパターンを使用してください。"]}]}]}]}]},"headings":[{"value":"リアルタイムパーソナライゼーション2.0クライアントサイドユースケースガイド","id":"リアルタイムパーソナライゼーション20クライアントサイドユースケースガイド","depth":1},{"value":"はじめにと概要","id":"はじめにと概要","depth":2},{"value":"ステップ1: データ取り込みとAPIオプション(クライアントサイド)","id":"ステップ1-データ取り込みとapiオプションクライアントサイド","depth":2},{"value":"クライアント統合パーソナライゼーションのデータフローとイベント取り込み","id":"クライアント統合パーソナライゼーションのデータフローとイベント取り込み","depth":3},{"value":"安全なデータ送信: ブラウザでは非機密データのみ","id":"安全なデータ送信-ブラウザでは非機密データのみ","depth":3},{"value":"適切なAPIの選択: パーソナライゼーションAPI vs 取り込みAPI","id":"適切なapiの選択-パーソナライゼーションapi-vs-取り込みapi","depth":3},{"value":"APIリクエストと例","id":"apiリクエストと例","depth":3},{"value":"CORSとセキュリティ制御","id":"corsとセキュリティ制御","depth":3},{"value":"セグメントとテーブルマッピング","id":"セグメントとテーブルマッピング","depth":3},{"value":"ベストプラクティスチェックリスト","id":"ベストプラクティスチェックリスト","depth":3},{"value":"要約表: クライアントサイドデータ取り込みの比較","id":"要約表-クライアントサイドデータ取り込みの比較","depth":3},{"value":"ステップ2: UIでのリアルタイムパーソナライゼーション設定（クライアントサイド）","id":"ステップ2-uiでのリアルタイムパーソナライゼーション設定クライアントサイド","depth":2},{"value":"クライアントサイドパーソナライゼーション機能の有効化","id":"クライアントサイドパーソナライゼーション機能の有効化","depth":3},{"value":"ワークフロー: パブリックなパーソナライゼーションサービスの作成","id":"ワークフロー-パブリックなパーソナライゼーションサービスの作成","depth":3},{"value":"セキュリティ、不可変性、ガバナンス","id":"セキュリティ不可変性ガバナンス","depth":3},{"value":"トークン管理とUIの詳細","id":"トークン管理とuiの詳細","depth":3},{"value":"機能フラグと権限による制御","id":"機能フラグと権限による制御","depth":3},{"value":"バリデーション、エラー処理、UIアシスト","id":"バリデーションエラー処理uiアシスト","depth":3},{"value":"まとめ表: クライアントサイド設定におけるUIの動作","id":"まとめ表-クライアントサイド設定におけるuiの動作","depth":3},{"value":"ベストプラクティス","id":"ベストプラクティス","depth":3},{"value":"ステップ3: イベントと属性の定義（クライアントサイド）","id":"ステップ3-イベントと属性の定義クライアントサイド","depth":2},{"value":"イベントテーブルとイベント定義","id":"イベントテーブルとイベント定義","depth":3},{"value":"機密度を考慮した属性の定義","id":"機密度を考慮した属性の定義","depth":3},{"value":"属性タイプ","id":"属性タイプ","depth":3},{"value":"属性の機密度とAPIレスポンス","id":"属性の機密度とapiレスポンス","depth":3},{"value":"属性タイプと設計（クライアントサイド）のポイント","id":"属性タイプと設計クライアントサイドのポイント","depth":3},{"value":"属性設計のベストプラクティス（クライアントサイド）","id":"属性設計のベストプラクティスクライアントサイド","depth":3},{"value":"まとめ表: 属性タイプと機密度の扱い","id":"まとめ表-属性タイプと機密度の扱い","depth":3},{"value":"ステップ4: プロファイル統合とIDステッチ（クライアントサイド）","id":"ステップ4-プロファイル統合とidステッチクライアントサイド","depth":2},{"value":"クライアントサイドパーソナライゼーションにおけるプロファイル統合とは","id":"クライアントサイドパーソナライゼーションにおけるプロファイル統合とは","depth":3},{"value":"クライアントサイドでのIDステッチ設定手順","id":"クライアントサイドでのidステッチ設定手順","depth":3},{"value":"クライアントサイドIDステッチにおけるプライバシーとコンプライアンスの注意点","id":"クライアントサイドidステッチにおけるプライバシーとコンプライアンスの注意点","depth":3},{"value":"ベストプラクティスと代表的なシナリオ","id":"ベストプラクティスと代表的なシナリオ","depth":3},{"value":"システム制約","id":"システム制約","depth":3},{"value":"まとめ表: クライアントサイド統合におけるIDステッチ","id":"まとめ表-クライアントサイド統合におけるidステッチ","depth":3},{"value":"ステップ5: Audience Studioでのパーソナライゼーション構築と管理（クライアントサイド）","id":"ステップ5-audience-studioでのパーソナライゼーション構築と管理クライアントサイド","depth":2},{"value":"クライアント向けパーソナライゼーションの作成と管理","id":"クライアント向けパーソナライゼーションの作成と管理","depth":3},{"value":"一貫性、テスト、監査性","id":"一貫性テスト監査性","depth":3},{"value":"例: ペイロードのマスク挙動","id":"例-ペイロードのマスク挙動","depth":3},{"value":"まとめ表: パーソナライゼーションセクションの結果","id":"まとめ表-パーソナライゼーションセクションの結果","depth":3},{"value":"ベストプラクティス","id":"ベストプラクティス-1","depth":3},{"value":"ステップ6: API統合と実装例（クライアントサイド）","id":"ステップ6-api統合と実装例クライアントサイド","depth":2},{"value":"ブラウザからパーソナライゼーションAPIを呼び出す","id":"ブラウザからパーソナライゼーションapiを呼び出す","depth":3},{"value":"APIエンドポイントの例","id":"apiエンドポイントの例","depth":3},{"value":"ベストプラクティス","id":"ベストプラクティス-2","depth":3},{"value":"CORSとセキュリティ制御","id":"corsとセキュリティ制御-1","depth":3},{"value":"APIリクエストとレスポンスの例","id":"apiリクエストとレスポンスの例","depth":3},{"value":"クライアント統合とサーバー統合の比較","id":"クライアント統合とサーバー統合の比較","depth":3},{"value":"トラブルシューティングとベストプラクティス","id":"トラブルシューティングとベストプラクティス","depth":3}],"frontmatter":{"seo":{"title":"リアルタイムパーソナライゼーション2.0クライアントサイドユースケースガイド","description":"Webブラウザから直接、安全かつリアルタイムにパーソナライズされた体験を提供するクライアントサイドのTreasure AIパーソナライゼーション実装ガイド。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/real-time/real-time-personalization-2-0-client-side-use-case-guide","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}