このページ: Visual Experience Composer (VEC)のみに影響する問題を解決する方法を説明します。
Adobe Target Visual Experience Composer (VEC)で、特定の条件の下で表示の問題が発生することがあります。 以下の項目では、VECのみに影響する問題とその解決方法について説明します。
Web サイトが Visual Experience Composer で開かれると、TargetはパラメーターmboxEdit=1とmboxDisable=1をURLに追加します。
ページをリロードせずにページ間を移動する際に、これらのパラメーターをトリミングまたは削除するweb サイト(特にシングルページアプリケーション)は、Target機能を壊し、Target ライブラリが読み込まれません。 この問題を回避するには、両方のパラメーターをURLに保持します。
Target エクスペリエンスコンポーザーのページのパフォーマンスに影響する問題がいくつかあります。 最も一般的なものは次のとおりです。
- このページにはmboxがありません。
- このサイトでは、プロキシブロッキングを使用しています。これにより、どのExperience Composerでもページを開くことができなくなります。
- このサイトでは、iFrameでサイトを開くことはできません。
Enhanced Experience Composerで問題が発生した場合は、これをオフにして Visual Experience Composer を代わりに使用してください。 これを行うには、管理 > Visual Experience Composerに移動し、拡張Experience Composerを有効にするオプションをオフにします。
コンソールに次のエラーメッセージが表示される場合があります。
どちらのコンポーザーも機能しない場合、Requestly (ChromeまたはFirefox)や応答ヘッダーの変更(Firefox)など、サイトのX-Frame-Options ヘッダーを上書きするブラウザー拡張機能により、サイトがiFrameに読み込まれるようになり、VECが有効になります。 ブラウザー拡張機能を使用できない場合は、 フォームベースのExperience Composerを使用してください。 Google ChromeのAdobe Target Visual Editing Helper 拡張機能も、以下の手順に加えて使用できます。
| note |
|---|
| NOTE |
| これらの拡張機能は、VEC編集のみを目的としています。 |
| Requestlyでは、ヘッダーを削除する必要がある場合は、次のいずれかの操作を行います。 |
|
| 応答ヘッダーを変更 (Firefox)では、URL ルールは使用できません。そのため、VECでの編集中はルールを有効にし、VECが使用されていないときはルールを無効にする必要があります。 |
拡張機能を設定すると、拡張Experience Composerが無効になっている場合でも、Visual Experience Composerでページが読み込まれます。
-
Enhanced Experience Composerをオフにします。
-
Requestly ブラウザー拡張機能をChromeまたはFirefoxにインストールします。
-
拡張機能を開き、ヘッダーを変更を選択します。
-
ルール名を入力します。
-
修正ルールで、ヘッダーを削除するルールを作成します。
- 「Add(追加)」を「Remove(削除)」に切り替えます。
- 「Request(リクエスト)」を「Response(応答)」に切り替えます。
- ヘッダー名として “X-Frame-Options” と入力します。
-
前の手順を繰り返し、ヘッダー名として「x-frame-options」と入力します。
note NOTE Requestlyで操作されるヘッダーでは、大文字と小文字が区別されます。 -
ソース URLの条件として Equals を Contains に変更し、VECに読み込むアクティビティのURLを入力します。
を含むURLのX-Frame-Options応答ヘッダーを削除するIframe バストリングコードをバイパスという名前のルールをリクエストします
-
「Save」をクリックします。
これで、Visual Experience Composerでページを素早く読み込めるようになりました。
- Modify Response Headers拡張機能をFirefoxにインストールし、ブラウザーを再起動します。
- Firefox拡張機能から、Modify Response Headers拡張機能を選択します。
- 「環境設定」をクリックします。
- 「アクション」ドロップダウンリストから「フィルター」を選択します。
- 「ヘッダー名」フィールドに、X-Frame-Optionsと入力します。
- 前の2つの手順を繰り返して、x-frame-optionsのフィルターを追加します。
- 「追加」をクリックします。
- 「Start(開始)」をクリックします。
次の原因を確認します。
-
拡張機能バージョン: Adobe Experience Cloud Visual Editing Helper 拡張機能の最新バージョンは、VECとの最適な互換性を提供します。 インストール済みのバージョンを確認するには、拡張機能>拡張機能の管理に移動し、詳細をクリックします。
-
オーサリングライブラリ: VECは、web ページを変更するためにオーサリングライブラリを必要としています。 これらはat.js ライブラリに埋め込まれており、at.jsまたはAdobe Experience Platform Web SDKが既にページ上にあるかどうかにかかわらず、VECが使用されるたびにAdobe サーバーから拡張機能がダウンロードされます。 管理/実装で設定されたat.js ヘッダーに無効な変更が含まれていないことを確認してください。
-
ブロックされた要求: ページは、iFrameに埋め込まれた場合に読み込みに必須の要求をブロックしてはなりません。 ブロックには、
frame-ancestorsCSP ディレクティブ、web サイト内のカスタム JavaScript コード、meta HTML タグ、およびx-frame-optionsヘッダーが含まれます。 -
予約済みのファイル名: ページのJavaScriptがオーサリングライブラリに影響を与えることはありません。 次の予約名を持つファイルは使用しないでください。
target-vec-helper.jstarget-vec.jstarget.jsadmin.csssizzle.jsmixContentCheck.html
これらのファイルで定義されている変数またはイベントを誤って上書きすると、VECに問題が発生する可能性もあります。
-
安全なサイト上の安全でないページ: ブラウザーがページをブロックします。 アドレスバーのURLの左側にあるアイコンをクリックし、このページの保護を無効にするをクリックします。
-
無効なURL:入力されたURLが無効です。
-
Cookie: Web サイトがVECで読み込まれなかったり、予期せず動作した場合は、TargetでWeb サイトを読み込む前にブラウザーでCookieを受け入れると、問題を解決できます。
参照 モードでは、Target ライブラリ (at.jsまたはAdobe Experience Platform Web SDK)が含まれていないURL、またはフレームバスターヘッダーが含まれているURLを開くと、VECが壊れて表示されます。 ブラウザーのセキュリティ上の理由から、TargetはナビゲーションされたURLに適切にアクセスできないか、ページの読み込み時にVEC URLが一貫して更新されません。
VECは<iframe>でweb ページを読み込み、ブラウザーの現在のセキュリティ メカニズムにより、Target UIが同一生成元ポリシーの下にあるフレームの要素にアクセスできなくなります。 ブラウザーは、location.hrefなどの情報を含む、別のオリジンのフレームにアクセスしようとするスクリプトをブロックします。
新しいVisual Editing Helper拡張機能を使用してTarget ライブラリをページに挿入し、ページを最適に参照できるようにします。
overflow: hidden プロパティは、スクロールの問題や、オーサリングメニューに影響を与えるトリガークリックイベントの原因になる可能性があります。This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.
For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.
- TL;DR: This page describes the display problems that affect only the Visual Experience Composer (VEC) in Adobe Target and how to resolve them.
Intents:
- Resolve the case where the Target libraries do not load when a website is opened in the VEC.
- Resolve the case where a page does not open in the Enhanced Experience Composer or loads slowly, or where activities and experiences load slowly in the VEC.
- Remove the X-Frame-Options header with Requestly (Chrome or Firefox) or with Modify Response Headers (Firefox).
- Identify why a page does not display in the VEC.
- Resolve the case where the VEC appears broken in Browse mode.
- Identify CSS conflicts in the VEC.
Glossary:
- Authoring libraries (product-specific): the libraries that the VEC needs to modify the web page. They are embedded in the at.js library, which the Adobe Experience Cloud Visual Editing Helper extension downloads from Adobe servers each time the VEC is used, whether or not at.js or the Adobe Experience Platform Web SDK is already on the page.
Terminology:
- Canonical name: Visual Experience Composer
- Acronym: VEC (Visual Experience Composer)
- Variants of the extension name: “Visual Editing Helper extension”, “Adobe Target Visual Editing Helper extension”, “Adobe Experience Cloud Visual Editing Helper extension”
FAQ:
- Which parameters does Target add to the URL when a website is opened in the Visual Experience Composer? Target adds the parameters
mboxEdit=1andmboxDisable=1. - What can be used when a page does not open in the Enhanced Experience Composer? When an issue occurs in the Enhanced Experience Composer, turn it off and use the Visual Experience Composer instead, by turning off the Enable Enhanced Experience Composer option in Administration > Visual Experience Composer.
- What can be used when browser extensions cannot be used to remove the X-Frame-Options header? The Form-based Experience Composer can be used.
- How does the VEC load the web page? The VEC loads the web page in an
<iframe>. - Which file names are reserved?
target-vec-helper.js,target-vec.js,target.js,admin.css,sizzle.jsandmixContentCheck.html. Do not use or include files with these names.
Troubleshooting:
-
The Target libraries do not load when the website is opened in the VEC. When a website is opened in the VEC, Target adds the parameters
mboxEdit=1andmboxDisable=1to the URL. A website that trims or removes these parameters while navigating from one page to another without a page reload, especially a Single Page Application, breaks the Target functionality, and the Target libraries do not load. To avoid this problem, keep both parameters in the URL. -
A page does not open in the EEC or loads slowly, or activities and experiences load slowly in the VEC. Several issues can affect page performance in the Target experience composers. The most common are the following: the page has no mbox; the site uses proxy blocking, which prevents the page from opening in either experience composer; the site does not allow itself to be opened in an iFrame. When an issue occurs in the Enhanced Experience Composer, turn it off and use the Visual Experience Composer instead, by turning off the Enable Enhanced Experience Composer option in Administration > Visual Experience Composer. When neither composer works, a browser extension that overwrites the X-Frame-Options header of the site, such as Requestly (Chrome or Firefox) or Modify Response Headers (Firefox), allows the site to load in iFrames and so enables the VEC. When browser extensions cannot be used, use the Form-based Experience Composer. The Adobe Target Visual Editing Helper extension for Google Chrome can also be used. These extensions are intended only for VEC editing. With Requestly, whenever headers need to be removed, add URL rules for the URL to open in the VEC, so that headers are removed for those URLs only, or enable the rule while editing in the VEC and disable the rule when the VEC is not in use. With Modify Response Headers (Firefox), URL rules are not available, so the rule must be enabled while editing in the VEC and disabled when the VEC is not in use. Once an extension is set up, pages load in the Visual Experience Composer even when the Enhanced Experience Composer is disabled. Headers that are manipulated with Requestly are case sensitive.
-
A page does not display in the VEC. Check the following causes:
- Extension version: the newest version of the Adobe Experience Cloud Visual Editing Helper extension provides the best compatibility with the VEC.
- Authoring libraries: check that the at.js headers configured in Administration > Implementation contain no invalid changes.
- Blocked requests: the page must not block the requests that are mandatory for loading when it is embedded in an iFrame. Such blocking includes
frame-ancestorsCSP directives, custom JavaScript code in the website, meta HTML tags, and thex-frame-optionsheader. - Reserved file names: the JavaScript of the page must not interfere with the authoring libraries. Accidentally overriding variables or events defined in the reserved files can also cause issues with the VEC.
- Non-secure page on a secure site: the browser blocks the page. Click the icon to the left of the URL in the address bar, then click Disable protection on this page.
- Invalid URL: the URL entered is invalid.
- Cookies: if the website fails to load in the VEC or behaves unexpectedly, accepting its cookies in the browser before loading the website in Target can resolve the issue.
-
The VEC appears broken in Browse mode. In Browse mode, the VEC appears broken when a URL is opened that lacks the Target libraries (at.js or Adobe Experience Platform Web SDK) or that contains a frame-buster header. For browser security reasons, Target cannot properly access the URL that was navigated to, or the VEC URL does not update consistently when the page loads. The current security mechanisms of browsers prevent the Target UI from accessing the elements of the frame under the same-origin policy, and browsers block scripts that attempt to access a frame with a different origin, including information such as
location.href. Use the new Visual Editing Helper extension to inject the Target library into the pages, so that the pages can be browsed optimally. -
Issues are caused by CSS conflicts in the VEC. Check whether any CSS files affect visibility while the page loads in the editor. For example, the
overflow: hiddenproperty on the page body can cause scrolling issues or trigger click events that interfere with the authoring menu.
Related pages:
- When browser extensions cannot be used to remove the X-Frame-Options header: Form-based Experience Composer (c-experiences/form-experience-composer.md)
- For a page that does not open in the EEC or loads slowly, as an additional option on Google Chrome: Adobe Target Visual Editing Helper extension (c-experiences/c-visual-experience-composer/r-troubleshoot-composer/visual-editing-helper-extension.md)
- For a page that does not display in the VEC, to check the extension version: Adobe Experience Cloud Visual Editing Helper extension (c-experiences/c-visual-experience-composer/r-troubleshoot-composer/visual-editing-helper-extension.md)
- For the VEC that appears broken in Browse mode, to inject the Target library into the pages: Visual Editing Helper extension (c-experiences/c-visual-experience-composer/r-troubleshoot-composer/visual-editing-helper-extension.md)
Personas:
- marketer: Can turn off the Enable Enhanced Experience Composer option in Administration > Visual Experience Composer and use the Visual Experience Composer instead when an issue occurs in the Enhanced Experience Composer. Can use the Form-based Experience Composer when neither composer works and browser extensions cannot be used. In Browse mode, can use the Visual Editing Helper extension to inject the Target library into the pages. Where: “Troubleshooting”.
- developer: Can keep both parameters mboxEdit=1 and mboxDisable=1 in the URL when a website trims or removes them while navigating from one page to another without a page reload, especially a Single Page Application, which breaks the Target functionality. Where: “Troubleshooting”.
Onboarding:
- Level: Intermediate, Experienced
- First minimal step: To remove the X-Frame-Options header with Requestly, turn off the Enhanced Experience Composer, then install the Requestly browser extension on Chrome or Firefox.