On this page: Learn how to resolve the issues that affect only the Visual Experience Composer (VEC).
Display problems sometimes occur in the Adobe Target Visual Experience Composer (VEC) under certain conditions. The following items describe the issues that affect only the VEC and how to resolve them.
When a website is opened in the Visual Experience Composer, Target adds the parameters mboxEdit=1 and mboxDisable=1 to 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.
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. To do so, go to Administration > Visual Experience Composer and turn off the Enable Enhanced Experience Composer option.
The following error message can display in the console:
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, in addition to the procedures that follow.
| note |
|---|
| NOTE |
| These extensions are intended only for VEC editing. |
| With Requestly, whenever headers need to be removed, do one of the following: |
|
| 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.
-
Turn off the Enhanced Experience Composer.
-
Install the Requestly browser extension on Chrome or Firefox.
-
Open the extension and select Modify headers.
-
Enter a rule name.
-
In the modification rules, create a rule that removes the header:
- Toggle Add to Remove.
- Toggle Request to Response.
- Enter “X-Frame-Options” as the header name.
-
Repeat the previous step and enter “x-frame-options” as the header name.
note NOTE Headers that are manipulated with Requestly are case sensitive. -
Change Equals to Contains as the condition for the source URL and enter the URL of the activity to load in the VEC.
-
Click Save.
The page should now load quickly in the Visual Experience Composer.
- Install the Modify Response Headers extension on Firefox and restart the browser.
- From the Firefox extensions, select the Modify Response Headers extension.
- Click Preferences.
- Select Filter from the Action drop-down list.
- In the Header Name field, enter X-Frame-Options.
- Repeat the previous two steps to add a filter with x-frame-options.
- Click Add.
- Click Start.
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. To verify the installed version, go to Extensions > Manage Extensions, then click Details.
-
Authoring libraries: the VEC needs authoring libraries to modify the web page. They are embedded in the at.js library, which the 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. 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. Do not use or include files with the following reserved names:
target-vec-helper.jstarget-vec.jstarget.jsadmin.csssizzle.jsmixContentCheck.html
Accidentally overriding variables or events defined in these 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.
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 VEC loads the web page in an <iframe>, and the current security mechanisms of browsers prevent the Target UI from accessing the elements of the frame under the same-origin policy. 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.
overflow: hidden property on the page body can cause scrolling issues or trigger click events that interfere with the authoring menu.