Work with Adobe Experience Manager Content Fragments aem-fragments

AVAILABILITY
This integration applies to Adobe Experience Manager as a Cloud Service Sites, for Content Fragments only. Journey Optimizer reads fragments from the Publish tier (not Author).

The integration between Adobe Experience Manager and Journey Optimizer follows this data flow:

  1. Configure the Dispatcher: To enable Journey Optimizer to access Adobe Experience Manager Content Fragments via the Content Fragment Management API, you must first configure the Dispatcher. This is a prerequisite for the integration.

  2. Create and author: Content is created and configured in Adobe Experience Manager as Content Fragments.

  3. Tagging: Content Fragments must be tagged with the Journey Optimizer-specific tag (ajo-enabled:{OrgId}/{SandboxName}).

  4. Publish: Content Fragments are published in Adobe Experience Manager, making them available to Journey Optimizer.

  5. Access: Journey Optimizer fetches and displays available Content Fragments from Adobe Experience Manager publish instance in real-time.

  6. Integration: Content Fragments are selected and integrated into campaigns or journeys.

When a Content Fragment is published in Adobe Experience Manager, an event is sent to update the content on the Journey Optimizer side. If the update is successful, the Content Fragment becomes available within approximately 5 minutes for Unitary journeys, and in the next processing batch for batch use cases. Once the update is available in Journey Optimizer, the latest published content is used across all applicable campaigns and journeys.

AVAILABILITY
For Healthcare customers, the integration is enabled only upon licensing the Journey Optimizer Healthcare Shield and Adobe Experience Manager Extended Security for Healthcare add-on offerings.

Create and assign a tag in Experience Manager

IMPORTANT
To enable Journey Optimizer to access Adobe Experience Manager Content Fragments via the Content Fragment Management API, you must first configure the Dispatcher.

Before using your Content fragment in Journey Optimizer, you need to create a tag specifically for Journey Optimizer:

  1. Access your Experience Manager environment.

  2. From the Tools menu, select Tagging.

  3. Click Create Tag.

  4. Ensure the ID adheres to the following syntax: ajo-enabled:{AJO-OrgId}/{AJO-SandboxName}.

  5. Click Create.

  6. Define your Content Fragment Model as detailed in Experience Manager documentation and assign your newly created Journey Optimizer tag.

This real-time connection ensures that your content is always up-to-date but also means that any changes to published fragments will immediately affect active campaigns and journeys.

You can now begin creating and configuring your Content Fragment for later use in Journey Optimizer. Learn more in Experience Manager documentation.

Add Experience Manager Content fragments aem-add

After creating and personalizing your AEM Content Fragments, you can now import it to your Journey optimizer campaign or journey.

  1. Create your Campaign or Journey.

  2. To access your AEM content fragment, click Personalization icon within any text field, or open the source code through an HTML content component.

  3. From the AEM Content Fragment menu in the left-pane, click Open AEM CF selector.

  4. Browse the list and select a Content Fragment to import into your Journey Optimizer content.

    note note
    NOTE
    If the fragment has one or more published variations, a Variation dropdown appears in the selector. If no Variation is selected, the Main variation is used automatically. Learn more in Working with Content Fragment variations.
  5. Click Show filters to fine tune your Content Fragments list.

    By default, the Content Fragment filter is preset to display only approved Content.

  6. After selecting your Content Fragment, click Select to add it.

  7. Click View fragment to display your Fragment information. Note that opening the Fragment Info menu places the editor in read-only mode.

    Select Preview from the right-hand menu to view your fragment in Adobe Experience Manager.

  8. Click More actions icon to access the advanced menu of your Fragment:

    • Swap fragment
    • Explore references
    • Open in AEM

  9. Choose the desired fields from your Fragment to add to your content.

  10. To surface an image URL that is stored in a Content Fragment attribute, e.g. a path or URL field from the fragment model, insert it in your HTML with an <img> tag and the fragment attribute as the source, for example:

    code language-html
    <img src="[insert your AEM Content Fragment attribute here]">
    
    note note
    NOTE
    Relative image URLs from Adobe Experience Manager are not supported, use absolute URLs.
  11. Select Pills: Off to enable the pills experience to improve readability by hiding long attribute paths.

  12. To use personalization placeholders authored in Adobe Experience Manager inside your fragment text, define them in the Content Fragment in Adobe Experience Manager as follows: {{name}}.

    In Journey Optimizer, those tokens are placeholders. With the pills experience on, they appear in the AEM Content Fragment section of the right rail alongside fragment fields.

  13. To enable real-time personalization, all placeholders used within a Content fragment must be explicitly declared by the user as parameters in the fragment helper tag. Map those placeholders to profile attributes, contextual attributes, static strings, or predefined variables as follows:

    1. Profile or Contextual Attribute Mapping: Assign the placeholder to a profile or contextual attribute, e.g. name = profile.person.name.firstName.

    2. Static String Mapping: Assign a fixed string value by placing it within double quotes, e.g. name = “John”.

    3. Variable Mapping: Reference a variable declared earlier within the same HTML, e.g. name = ‘variableName’.
      In this case, ensure variableName is declared before adding the fragment ID, using following syntax:

      code language-html
      {% let variableName = attribute name %}
      

    In the example below, the month placeholder is mapped to the profile.person.birthDate attribute within the fragment.

    {modal="regular"}

  14. Click Save. You can now test and check your message content as detailed in this section.

Once you have performed your tests and validated the content, you can send your campaign or publish your journey to your audience.

Adobe Experience Manager allows you to identify the Journey Optimizer campaigns or journeys where a Content Fragment is being used. Learn more in Adobe Experience Manager documentation.

Working with Content Fragment variations aem-variations

In Adobe Experience Manager, each Content Fragment is made up of the following:

  • Main: the core content of the fragment which always exists, cannot be deleted, and is the basis for all variations.
  • Variations: one or more permutations of Main that authors create for specific channels or scenarios. Variations live inside the fragment not as separate assets and can be compared and synchronized with Main.

Examples of variation use cases:

  • A short version of copy for a push notification and a longer version for email.
  • Regional tone adjustments without creating a separate fragment.
  • Channel-specific messaging (for example web compared to mobile).

➡️ Learn more in Adobe Experience Manager documentation

Journey Optimizer lets you choose which variation to use when you insert a fragment, so different campaigns or journeys can rely on different renditions of the same source content in Adobe Experience Manager without duplicating fragments.

To select a variation:

  1. Open a campaign or journey.

  2. Click Personalization icon in any text field, or open the HTML source from an HTML content component.

  3. From AEM Content Fragment, click Open CF selector.

  4. To select a locale-specific Adobe Experience Manager Content Fragment in table view, use Customize table to add the Language column. Locale values are displayed in the table, enabling you to identify and select the appropriate fragment.

  5. Select your Content Fragment.

  6. Click the information icon to open Details menu. If the fragment has one or more published variations, a Variation dropdown appears next to the fragment details.

  7. From the Quick details menu, click Explore references to open related options in Adobe Experience Manager for variation details, preview, and proof when available.

  8. Choose your variation, then click Select.

    note note
    NOTE
    If you do not select a variation, or if the fragment was added before variation support was available, Journey Optimizer uses the Main variation automatically at delivery time.

After you insert a fragment with a variation, republishing it in Adobe Experience Manager updates every referenced variation in active campaigns or journeys automatically. Previews and proofs still use the variation you chose, with the latest published content for that variation.

recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76