Adobe Target · updated

Using Adobe Target with AEM: Experience Fragments and Edge Delivery

AEM as a Cloud Service connects to Target in two parts: a Target configuration in AEM, which needs an IMS configuration, and the Target extension in Adobe's tag manager for the page libraries. With that in place authors can export Experience Fragments to Target as offers. On Edge Delivery Services, Adobe documents a Web SDK set-up in scripts.js and a legacy at.js one.

In plain words

Content authors build a reusable piece of a page in AEM, called an Experience Fragment. Exporting it sends it to Target, where a marketer can use it as one of the versions in a test or a personalised experience. The fragment stays managed in AEM. On Edge Delivery sites the connection is made in the site's code rather than in AEM settings.

AEM as a Cloud Service: what the integration needs

  • A Target configuration made in the Touch UI under Tools > Cloud Services > Adobe Target. Adobe says an IMS configuration is required and that IMS integrations are now configured with server-to-server OAuth, as JWT credentials are being deprecated.
  • Adobe Target added as an extension in Adobe's tag manager (Adobe's page calls it Launch). Adobe says Target libraries are only rendered by using it.
  • For Experience Fragment export, a legacy cloud configuration as well. Adobe calls adding one a special case that is supported only for this export.
  • The AEM Link Externalizer configured on the author instance, because fragments are exported from author and their references must work on the web.

Adobe notes that for most customers the Target tenant ID and client code are the same. Back-end calls to Target use the tenant ID; client-side calls use the client code.

Export formats

FormatWhat Adobe says it supports
HTML (default)Web and hybrid content delivery
JSONHeadless content delivery
HTML & JSONBoth

Fragments are exported into the default workspace of Target, or into a user-defined workspace. Adobe explains that workspaces are defined in Adobe IMS and chosen through Adobe Developer Console; with Target Standard only the default workspace is available, and with Target Premium all workspaces are listed.

Two things that catch teams out

  • Only a reference to media assets is exported. The image itself stays in AEM Assets and is delivered from the AEM publish instance, so Adobe says the fragment and its assets must be published before export.
  • Only a web variation of an Experience Fragment can be exported.

Edge Delivery Services

The aem.live documentation supports two ways to integrate Target and recommends the Web SDK; at.js is described as legacy. Target changes the page after the blocks have been decorated, the call to Target happens in the eager phase and affects Largest Contentful Paint, and Adobe recommends switching the integration on only for pages that are tested or personalised, for example with a page metadata entry such as Target: on. The same page points to Edge Delivery's own experimentation features as something to check first.

In the Web SDK set-up, alloy.js is added to the site's repository, scripts.js configures it with the datastream ID and the organisation ID, asks for decisions with renderDecisions set to false, applies them with applyPropositions once blocks are decorated, and then reports the display.

How to export an Experience Fragment to Target

  1. Integrate AEM with Target: the Target configuration with IMS, and the Target extension in the tag property.
  2. Add the legacy Target cloud configuration that the export needs.
  3. In the Experience Fragments console, open Page Properties for the folder or fragment, choose the Cloud Services tab and select Adobe Target, then the configuration, the format, the workspace and, if needed, the externalizer domain.
  4. Publish the fragment and its assets.
  5. Select the fragment, a web variation, and choose Export to Adobe Target. If it was exported before, the button reads Update in Adobe Target.
  6. In Target, use the fragment as an offer in an activity.

Related tools and pages on this site

Questions

Where do exported fragments appear in Target?

In the default workspace unless you chose another workspace in the fragment's or folder's cloud configuration.

Are images copied to Target?

No. Adobe says only a reference is exported; the asset stays in AEM Assets and is delivered from the publish instance.

Do I set the configuration on every fragment?

No. Adobe says a configuration added to the parent folder is inherited by all children, and one added to a fragment is inherited by all its variations.

Does Edge Delivery need at.js for Target?

No. aem.live recommends the Web SDK and keeps at.js as a legacy option.

Are you an Adobe partner for this work?

No. We are not an Adobe partner and are not affiliated with Adobe. This page summarises Adobe's public documentation.

Sources

Facts about Adobe's products on this page are from the linked Adobe pages, read on the date shown beside each. Explanations, steps and examples are ours unless marked as Adobe's. If Adobe's page and this one differ, Adobe's page is right.

Surge Migrate is not affiliated with Adobe and claims no Adobe partner status. Adobe product names are trademarks of Adobe.

Surge Migrate

Moving the website itself

This page answers one Adobe Target question. Surge Migrate moves a website from any CMS to any CMS. Converted automatically. Checked before you install.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →