{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition","img"]},"type":"markdown"},"seo":{"title":"Engage Studio — Web Message Previewer","description":"Engage Studio — Web Message Previewer Chrome Extensionをインストールして、実際のWebサイト上でDOM要素を視覚的に選択し、In-Browser Messageキャンペーンのコンテンツをリリース前にプレビューする方法を説明します。","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":"engage-studio--web-message-previewer","__idx":0},"children":["Engage Studio — Web Message Previewer"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Engage Studio — Web Message Previewer"]},"は、マーケターが実際のWebサイト上で直接操作して以下を行うためのオーサリング補助ツールです。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ターゲット要素の選択"]}," — ページ上の任意の要素をクリックして、Inlineキャンペーン用の安定したCSSセレクター（Zone ID）を自動生成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["キャンペーンコンテンツのプレビュー"]}," — 差し替え用HTMLが実際のページ上でどのようにレンダリングされるか、公開前に確認します。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"オーサリング補助ツールについて"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Chrome Extensionはオーサリング用のツールであり、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["キャンペーンの配信アーキテクチャには含まれません"]},"。キャンペーンはTD Web SDKを通じてエンドユーザーへ配信されており、SDKはExtensionとは独立して動作します。Extensionをインストールできないマーケターも、ブラウザのDevToolsを使用してCSSセレクターを手動入力することでキャンペーンを作成・配信できます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"動作要件","__idx":1},"children":["動作要件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Google Chrome（バージョン114以降）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure AIアカウントでEngage Studioへのアクセス権"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ターゲットWebサイトがブラウザからアクセス可能であること（ExtensionはHTTP/HTTPSページであれば、すでにログイン済みの認証ページを含むすべてのページで動作します）"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"extensionのインストール","__idx":2},"children":["Extensionのインストール"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Extension は Chrome ウェブストア で公開されています。Chrome ウェブストアで「Engage Studio — Web Message Previewer」（Treasure AI）を検索するか、Chrome ウェブストアのページに直接アクセスして、インストールしてください。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Chrome Web Storeで ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://chromewebstore.google.com/detail/engage-studio-%E2%80%94-web-messa/acndiicamedecklplibnbnjaifapfcnl"},"children":["Engage Studio — Web Message Previewer"]}," のページを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Chromeに追加"]},"をクリックし、ダイアログで",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["拡張機能を追加"]},"を確認してクリックします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["拡張機能一覧に ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Engage Studio — Web Message Previewer"]}," がTreasure AIアイコンとともに表示されます。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Extensionのピン留め"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Chromeツールバーのパズルピースアイコン（拡張機能）をクリックして、Engage Studio Extensionをピン留めすると素早くアクセスできます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"extensionを開く","__idx":3},"children":["Extensionを開く"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In-Browser Messageを設定またはプレビューしたいWebサイトのページに移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Chromeツールバーのアイコン（Treasure AI）をクリックします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ブラウザウィンドウの右側に",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["サイドパネル"]},"が開きます。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"制限のあるページ"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ExtensionはChromeのシステムページ（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chrome://…"]},"）、Chrome Web Store、ブラウザ拡張機能のページでは動作しません。通常のHTTP/HTTPSのWebサイトに移動してから使用してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"extension-uiの概要","__idx":4},"children":["Extension UIの概要"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["サイドパネルには2つのタブがあります。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["1 Select"]}," — ページ上のDOM要素を選択し、差し替えるHTMLを編集します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["2 Preview"]}," — 差し替え用HTMLをページに注入し、Original（元の表示）とModified（差し替え後の表示）を比較します。"]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/chrome-extension-preview.e95a02fa5db4a026f625bda1330ae2a51e8646c7a1552779821a7bdeeff700c1.1d31355e.webp","alt":"Engage Studio Chrome ExtensionのサイドパネルのPreviewタブ。CSS Selector、Replacement HTMLフィールド、Compare Versionsトグルが表示されている。","framed":false,"withLightbox":true},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ステップ1select--ターゲット要素の特定","__idx":5},"children":["ステップ1：Select — ターゲット要素の特定"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select"]},"タブで、差し替えたいDOM要素を選択してCSSセレクターを生成します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["サイドパネルで ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Select Element"]}," をクリックしてセレクターモードに入ります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ページ上でカーソルを移動します。要素が青いボーダーでハイライトされ、生成されたCSSセレクターがツールチップで表示されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ターゲットにしたい要素をクリックします。サイドパネルに以下が入力されます。",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["CSS Selector"]}," — 自動生成されたセレクター（例：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["div[data-src=\"drDpRe\"] > div:nth-of-type(2) > div"]},"）。フィールド下部にページ上でのマッチ数が表示されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Replacement HTML"]}," — 注入するHTMLコンテンツを入力する編集可能フィールド。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Replacement HTML"]}," を必要に応じて編集します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["CSS Selector"]}," および ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Replacement HTML"]}," フィールドの横にあるコピーボタンを使って各値をコピーし、Engage StudioのIn-Browser Messageエディターに貼り付けます。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["別の要素を選び直すには ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Reselect Element"]}," をクリックします。",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"要素を選択せずにキャンセルするには ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Escape"]}," キーを押します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"セレクターの生成ロジック","__idx":6},"children":["セレクターの生成ロジック"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Extensionはターゲット要素とその親要素を分析して、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["安定したCSSセレクター"]},"（ページ更新後も壊れにくいセレクター）を生成します。生成の優先順位は以下のとおりです。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]},"属性"]}," — 自動生成またはUUID的な値でない場合（例：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["#product-banner-area"]},"）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data-*"]},"テスト属性"]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data-testid"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data-qa"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data-cy"]},"など"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["安定した",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data-*"]},"属性"]}," — ハッシュやセッショントークンに見えない値を持つその他の",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data-*"]},"属性"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["クラス名"]}," — 動的に生成されたクラス名（CSS-in-JS、ハッシュサフィックス）を除外してフィルタリング"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["構造的パス"]}," — 最も近い安定した祖先要素からの",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tag > tag:nth-of-type(n)"]},"パス"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"動的クラス名について"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ページがCSS-in-JSライブラリ（styled-components、Emotionなど）を使用している場合、自動生成されたクラス名は自動的に除外されます。このような場合、より正確なセレクターを得るために、ターゲット要素に安定した",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data-testid"]},"または",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]},"属性を追加してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ステップ2preview--レンダリングの確認","__idx":7},"children":["ステップ2：Preview — レンダリングの確認"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Preview"]},"タブで、差し替え用HTMLを実際のページに注入してレンダリングを確認します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["サイドパネルで ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Preview"]}," タブに切り替えます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Preview Mode Active"]},"（緑のバナー）が表示されると、差し替え用HTMLがページに注入されています。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Compare Versions"]}," トグルで以下を切り替えて確認します。",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Original"]}," — 通常のページ表示。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Modified"]}," — 差し替え用HTMLが注入されたページ表示。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ページ上でレンダリング結果を確認します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["注入したコンテンツを削除するには、ページを再読み込み（",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Cmd/Ctrl + R"]},"）するか、ページを離れます。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"プレビューはローカルのみ"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Extensionはあなたのブラウザセッション内にのみコンテンツを注入します。実際のWebサイトやEngage Studioのキャンペーン設定には一切変更は加えられません。エンドユーザーへの影響もありません。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"トラブルシューティング","__idx":8},"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":{"width":"35%","data-label":"問題"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["問題"]}," "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"65%","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":"td","attributes":{},"children":["通常のHTTP/HTTPSのWebサイトに移動してください。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chrome://"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chrome-extension://"]},"、view-source:、devtools://、Chrome Web Storeのページでは動作しません。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["アイコンをクリックしてもサイドパネルが開かない"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chrome://extensions"]}," でExtensionが有効になっているか確認してください。一度無効にしてから再度有効化し、ページを再読み込みしてみてください。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サイドパネルに「The previewer has not been loaded on this page. Reload the page (Cmd/Ctrl+R) and try again.」というエラーが表示される"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["コンテンツスクリプトが現在のタブで読み込まれていない可能性があります。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Cmd/Ctrl + R"]},"でページを再読み込みしてからサイドパネルを再度開いてください。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["要素セレクターが何もハイライトしない"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ページがShadow DOMやクロスオリジンのiframeを使用している可能性があります。この場合は、シャドウルートの外側にあるラッパーコンテナ要素を選択してください。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["CSSセレクターが複数の要素にマッチする（マッチ数 > 1）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["その要素に安定した",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]},"または",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data-*"]},"属性がありません。より正確なセレクターを得るために、開発者にターゲット要素へ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data-testid"]},"属性を追加するよう依頼してください。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["プレビューコンテンツが注入直後に消える"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ページ上のJavaScriptフレームワークがDOMを再レンダリングしている可能性があります。フレームワークが管理していないコンテナ要素を選択するか、開発者に安定した挿入ポイントの追加を依頼してください。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"既知の制限事項","__idx":9},"children":["既知の制限事項"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ブラウザウィンドウあたりアクティブなサイドパネルは1つのみサポートされています。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ExtensionはChromeのSide Panel API（Chrome 114以降）を使用しています。古いChromiumベースのブラウザでは動作しない場合があります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["デバイス管理（MDM）ポリシーによって拡張機能のインストールが制限されている組織では、ブラウザのDevToolsを使用したCSSセレクターの手動入力を代替手段として使用してください。"]}]}]},"headings":[{"value":"Engage Studio — Web Message Previewer","id":"engage-studio--web-message-previewer","depth":1},{"value":"動作要件","id":"動作要件","depth":2},{"value":"Extensionのインストール","id":"extensionのインストール","depth":2},{"value":"Extensionを開く","id":"extensionを開く","depth":2},{"value":"Extension UIの概要","id":"extension-uiの概要","depth":2},{"value":"ステップ1：Select — ターゲット要素の特定","id":"ステップ1select--ターゲット要素の特定","depth":2},{"value":"セレクターの生成ロジック","id":"セレクターの生成ロジック","depth":3},{"value":"ステップ2：Preview — レンダリングの確認","id":"ステップ2preview--レンダリングの確認","depth":2},{"value":"トラブルシューティング","id":"トラブルシューティング","depth":2},{"value":"既知の制限事項","id":"既知の制限事項","depth":2}],"frontmatter":{"seo":{"title":"Engage Studio — Web Message Previewer","description":"Engage Studio — Web Message Previewer Chrome Extensionをインストールして、実際のWebサイト上でDOM要素を視覚的に選択し、In-Browser Messageキャンペーンのコンテンツをリリース前にプレビューする方法を説明します。"}},"lastModified":"2026-07-22T07:19:06.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/marketing-cloud/engage-studio/experiences/chrome-extension","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}