{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Treasure Data JavaScript SDK Version 2 5 0のバージョン更新概要","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"treasure-data-javascript-sdk-version-2-5-0のバージョン更新概要","__idx":0},"children":["Treasure Data JavaScript SDK Version 2 5 0のバージョン更新概要"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["TD JavaScript SDK(TD JS SDK)により、Treasure Dataはお客様のドメインのウェブサイトにfirst-party cookieを保存し、ウェブサイトのユーザーを他のプラットフォーム全体で追跡して情報を収集できます。TD JS SDKを使用することで、ウェブサイトのアクティビティを追跡するためにサーバー側に何もインストールする必要がありません。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataは、本番環境で使用を開始する前に、サイトでTreasure Data JavaScript SDK version 3を使用した新機能や機能の実装を検証することをお勧めします。cookieの管理方法が異なります。これらの記事のほとんどを参照する際は、提案されたeventコレクターとTreasure Data JavaScript SDK version 3の呼び出しをソリューション内で定義する必要があることに注意してください。たとえば、//cdn.treasuredata.com/sdk/2.5/td.min.jsを//cdn.treasuredata.com/sdk/3.0.0/td.min.jsに変更します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/integration-hub/streaming/td-javascript-sdk/quickstart"},"children":["Web Trackingの開始"]},"および",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/integration-hub/streaming/td-javascript-sdk/web-tracking-using-the-td-javascript-sdk-tutorial"},"children":["TD JavaScript SDKを使用したWeb Trackingのチュートリアル"]},"をご覧ください。TD JS SDK version 2.5.0のセットアップと設定に関する追加情報は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/treasure-data/td-js-sdk/tree/consent-management#td-js-sdk"},"children":["GitHub"]},"で入手できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このトピックには以下が含まれます:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/integration-hub/streaming/td-javascript-sdk/treasure-data-javascript-sdk-version-2-5-0-version-update-summaries#h1_1398736591"},"children":["Version 2.5.0の更新"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/integration-hub/streaming/td-javascript-sdk/treasure-data-javascript-sdk-version-2-5-0-version-update-summaries#h3__594755789"},"children":["Consent Management拡張機能"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/integration-hub/streaming/td-javascript-sdk/treasure-data-javascript-sdk-version-2-5-0-version-update-summaries#h1_995618967"},"children":["Treasure Data JavaScript SDK Version 2.5.0のログパラメータ"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/integration-hub/streaming/td-javascript-sdk/treasure-data-javascript-sdk-version-2-5-0-version-update-summaries#h1_1433548972"},"children":["Version 2.4.2の更新"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"version-250の更新","__idx":1},"children":["Version 2.5.0の更新"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"consent-management拡張機能","__idx":2},"children":["Consent Management拡張機能"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["TD SDK Consent拡張機能をconsent management活動に使用することもできます。これには、消費者のconsentを収集する機能、さまざまなデータ使用カテゴリを定義する機能、ブラウザに消費者のconsent設定を表示する機能が含まれ、ブラウザから閲覧できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/integration-hub/streaming/td-javascript-sdk/using-td-javascript-consent-extension"},"children":["Consent Manager"]},"の設定の詳細をご覧ください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"treasure-data-javascript-sdk-version-250のログパラメータ","__idx":3},"children":["Treasure Data JavaScript SDK Version 2.5.0のログパラメータ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["TD JS SDKは、trackPageview関数を使用して以下のパラメータをログに記録します。"]},{"$$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":"strong","attributes":{},"children":["パラメータ"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["デフォルト"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_version"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["td-js-sdkのバージョン"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_client_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クライアントのuuid"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NO"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_charset"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["文字セット"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_description"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["descriptionメタタグ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_language"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ブラウザ言語"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_color"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["画面のcolor depth"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_screen"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["画面解像度"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_viewport"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["viewportサイズ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_title"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ドキュメントタイトル"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_url"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ドキュメントURL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_user_agent"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ブラウザuser agent"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_platform"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ブラウザplatform"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_host"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ドキュメントhost"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_path"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ドキュメントpathname"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_referrer"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ドキュメントreferrer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_ip"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["リクエストIP(server)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NO"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_browser"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クライアントbrowser(server)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_browser_version"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クライアントbrowserバージョン(server)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_os"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クライアントoperating system(server)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_os_version"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クライアントoperating systemバージョン(server)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["X"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_global_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["3rd party cookie"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NO"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_ssc_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Server Side Cookie"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["追跡されるデフォルトパラメータには、グローバルなプライバシー法への準拠を確保するために",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_client_id"]},"、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td.ip"]},"、および",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["td_global_id"]},"が含まれていません。td.setコマンドを呼び出すことで有効にできます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cookie ID"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataでは、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/integration-hub/streaming/td-javascript-sdk/introduction-to-web-tracking"},"children":["1st party cookie"]},"はtd_client_idと呼ばれ、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/integration-hub/streaming/td-javascript-sdk/introduction-to-web-tracking"},"children":["3rd party cookie"]},"はtd_global_idと呼ばれます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"version-242の更新","__idx":4},"children":["Version 2.4.2の更新"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ChromeとFirefoxは、secure-by-defaultのcookie分類システムを実施しています。このシステムは、SameSite値が宣言されていないcookieを",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SameSite=Lax"]},"として扱います。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SameSite=None; Secure"]},"として設定されたcookieのみが、セキュアな接続からアクセスされる場合に限り、third-partyコンテキストで利用できます。Treasure Data JS SDK version 2.4.2は、新しいcookie実施に適応するために、デフォルトで",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SameSite=None; Secure"]}," cookieを使用します。TreasureData JS SDKをバージョン",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["2.4.2"]},"にアップグレードする場合、新しい更新を有効にするには",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["resetUUID"]},"または",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fetchGlobalID"]},"を呼び出す必要があります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["さらに、version 2.4.2では、AnonymousモードでClient ID cookieが無効になります。startInSignedModeオプションがfalseの場合、またはtd.setAnonymousMode()が呼び出された場合、_td cookieは無効になります。これにより、ユーザーがデバイス識別をオプトアウトした場合に、_td cookieがrequestに添付されることを防ぎます。"]}]},"headings":[{"value":"Treasure Data JavaScript SDK Version 2 5 0のバージョン更新概要","id":"treasure-data-javascript-sdk-version-2-5-0のバージョン更新概要","depth":1},{"value":"Version 2.5.0の更新","id":"version-250の更新","depth":1},{"value":"Consent Management拡張機能","id":"consent-management拡張機能","depth":3},{"value":"Treasure Data JavaScript SDK Version 2.5.0のログパラメータ","id":"treasure-data-javascript-sdk-version-250のログパラメータ","depth":1},{"value":"Version 2.4.2の更新","id":"version-242の更新","depth":1}],"frontmatter":{"seo":{"title":"Treasure Data JavaScript SDK Version 2 5 0のバージョン更新概要"}},"lastModified":"2026-05-14T07:31:32.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/integration-hub/streaming/td-javascript-sdk/treasure-data-javascript-sdk-version-2-5-0-version-update-summaries","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}