Visual Experience Composer helper extension vec-helper-extension

On this page: Learn how the legacy VEC Helper browser extension loads websites in the Visual Experience Composer (VEC), and how to install and use it.

The Adobe Target Visual Experience Composer (VEC) Helper browser extension for Google Chrome loads websites reliably in the VEC, which makes it faster to author and check web experiences. The extension is not necessary in Mozilla Firefox.

IMPORTANT
  • The legacy Target VEC Helper extension documented in this article was created with Manifest V2. Google announced that it would stop allowing extensions created with Manifest V2 starting in June 2024. For more information, see the Manifest V2 support timeline announcement from Google on the Chrome for Developers site.

  • Starting in June 2024, Google disables extensions created with Manifest V2, including the extension documented in this article. Adobe recommends moving to the newer Visual Editing Helper extension as soon as feasible.

Why some websites do not open reliably in the VEC

A website might not open reliably in the VEC for the following reasons:

  • The website has strict security policies.
  • The website is in an iframe.
  • The at.js library is not yet implemented on the website.
  • The QA or staging site of the customer is internal and not available outside the network.
  • The website uses Service Workers (SW), which the VEC currently supports only with limitations. See the following section.
  • The website is opened in Chrome 80 or later, which enforces the SameSite cookie policies. For more information, see Google Chrome SameSite cookie policies.

The VEC Helper browser extension for Chrome solves the site-loading issues for which customers otherwise rely on the Target Enhanced Experience Composer or on third-party extensions such as Requestly.

Service workers

A service worker (SW) is a web technology that a web page installs to intercept the requests for its domain. The SW survives the page visit and activates itself on subsequent visits. It decides which requests go through and which are intercepted and served from a cache.

A SW can cache the web page itself, static resources such as JS, CSS, IMG, and AJAX requests, their contents, and their response headers. These headers include the ones that the Target VEC Helper extension tries to remove, such as X-Frame-Options: SAMEORIGIN, CSP (Content-Security-Policy), and Set-Cookie.

The Chrome extension APIs that intercept web requests do not receive the requests that a SW has intercepted and handled. When a SW serves the web page request from a cache, the extension therefore cannot fix the headers and the cookies, and the page does not load inside the VEC because of the cached X-Frame-Options or CSP headers.

As a potential workaround, disable the Service Workers in the Chrome Developer Tools > Application tab, then enable the “Bypass for network” check box in the Service Workers section.

Benefits of the VEC Helper extension

  • Iframe-busting headers removed: the extension removes headers such as X-Frame-Options and Content-Security-Policy from the website implicitly, so no complicated Requestly rules are needed.
  • at.js injection: when a web page does not yet contain the Target at.js JavaScript library, the extension can inject it. Experiences can then be authored for the website, and the activities can be created and checked with preview links. With the Enhanced Experience Composer (EEC), the extension does not inject at.js, but the SameSite cookie functionality remains. To inject at.js on the web page, turn off the EEC.
  • Mobile viewports: mobile viewports are supported even without the Enhanced Experience Composer (EEC).
  • New Target customers: the extension makes it possible to experiment with Target even when the IT developers have not yet implemented Target on the website.
  • Partners: partners who service the websites and Target accounts of multiple customers get one mechanism to support VEC loading, in place of multiple rules in third-party tools.

Obtain and install the VEC Helper browser extension

Installing the extension in Chrome makes it possible to load websites reliably in the VEC, including websites that block iframes or that do not yet have at.js implemented.

  1. Go to the Adobe Target VEC Helper browser extension in the Chrome Web Store.

  2. Click Add to Chrome > Add Extension.

  3. Open the VEC in Target.

  4. While in the VEC or QA Mode, click the VEC Helper browser extension icon ( VEC Helper icon ) in the toolbar of Chrome.

  5. (Conditional) If the web page does not yet contain the Target at.js JavaScript library, switch the Inject Target Libraries toggle on.

    The following illustration shows the VEC Helper with the Inject Target Libraries setting enabled:

    VEC Helper extension panel with the Inject Target Libraries toggle on and the Cookies toggle off, showing that the Cookies setting sets the SameSite=None and Secure flags on all cookies for requests inside the VEC

    The VEC Helper then asks whether it should inject the Target libraries in the page to enable authoring:

    Inject Target Libraries prompt saying that the Target VEC Helper extension wants to inject Target libraries in the page to enable authoring, with the Cancel and Allow buttons

  6. (Conditional) Switch the Cookies toggle on to add the SameSite=None attribute browser fix automatically.

    VEC Helper extension panel with the Cookies toggle switched on and highlighted, over the Visual Experience Composer showing a sample page

    For more information on the SameSite=None attribute browser fix, see Google Chrome SameSite cookie policies.

Usage notes

  • The Inject Target Libraries flag in the extension is off by default. Turn it on to use the VEC on a site on which Target is not yet implemented.

    The flag is a global setting, so it is enabled or disabled for all websites opened in the VEC. For example, with the flag on, opening a website that already has at.js implemented displays a message that at.js is already loaded. Adobe expects that most customers already have at.js implemented on their pages and use the default setting of off.

  • The extension loads the latest version of at.js that is available in the Target UI under Administration > Implementation.

  • To use the extension to inject at.js in QA Mode, another Chrome tab must be open. This tab must be authenticated to the same Adobe Experience Cloud organization in which the activity was created.

  • The VEC displays messages in the following cases:

    • A website fails to load in the VEC. The message suggests installing the VEC Helper browser extension.
    • at.js is not yet implemented on the website. The message suggests installing the extension.
    • The extension is enabled and powers the loading. The messages display when the extension injects the at.js library, if necessary, or helps open the website reliably in the VEC.
recommendation-more-help
target-help-main