On this page: Learn how to set up Adobe Experience Manager (AEM) Experience Fragments and how to use them in Target activities.
Experience Fragments (XFs) created in Adobe Experience Manager (AEM) can be used in Target activities to aid optimization and personalization.
For the activity types and the composers that support Experience Fragments and Content Fragments, and to learn more about the two fragment types, see AEM Experience Fragments and Content Fragments overview.
Requirements requirements
This feature requires an Adobe Experience Manager (AEM) customer account. The Experience Fragments functionality must be provisioned within Target, and AEM as a Cloud Service or AEM 6.5 (or later) must be used. The account representative can help ensure that the following requirements are met to use this feature:
Contact Adobe Target Customer Care to enable the integration and to obtain the authentication details.
Set up Experience Fragments in AEM section_745C8EFE29F547A2958FDBF61A5ADF7B
To use AEM Experience Fragments in Target, the following steps must be performed.
Step 1: Integrate AEM with Target
The integration is described in the following documentation:
Step 2: Create the Experience Fragment
Experience Fragments are created in AEM. For more information, see the following documentation:
Step 3: Configure AEM to share the Experience Fragment with Target
The following steps assume that someone in the organization has created the Adobe Target configuration.
-
From within AEM, select the desired Experience Fragment or its containing folder, then click Properties.
-
Click the Cloud Services tab, then from the Cloud Service Configuration drop-down list, select Adobe Target.
-
Click Save & Close.
Step 4: Publish the Experience Fragment and export it into Target
Step-by-step instructions depend on the AEM version:
Use Experience Fragments in Target activities section_17CE4BE6B2B74CCEBAE0C68DEB84ABB9
After the preceding tasks are performed, the Experience Fragment displays on the Offers page in Target.
Import behavior import-behavior
The following points describe how Experience Fragments are imported into Target:
- Target currently looks for Experience Fragments to import every ten minutes. The imported Experience Fragment should be available in Target within ten minutes, but this time frame should shorten going forward.
- The Experience Fragment is imported into Target as an HTML or JSON offer. The “primary” version of the Experience Fragment remains in AEM. The Experience Fragment cannot be edited in Target.
- Experience Fragments cannot be created using Adobe Developer. Create Experience Fragments using AEM, as explained above.
- If the Experience Fragment is updated in AEM, it must be published and exported to Target again so that Target can use the latest changes.
View the Experience Fragments in Target view-fragments
The list of offers can be filtered and searched by HTML XFs and JSON XFs to distinguish between the Experience Fragment types that are exported to Target.
To see additional information about an Experience Fragment, hover over it in the list, then click the View icon
Consume Experience Fragments in activities consume-fragments
Experience Fragments can be consumed in Target activities using the Visual Experience Composer (VEC) and the Form-Based Experience Composer.
-
To fully use the Target AI and ML functionality, select Auto-Allocate or Auto-Target while creating an activity.
-
Experience Fragments are not supported in Recommendations activities. However, to use Experience Fragments for recommendations, create an A/B Test activity (including Auto-Allocate and Auto-Target) or an Experience Targeting (XT) activity and include recommendations as an offer.
Consume Experience Fragments using the VEC consume-vec
-
In Target, while creating or editing an experience in the Visual Experience Composer, click the location on the page where the AEM content is to be inserted, then click Replace Content > Experience Fragment to display the Experience Fragment dialog box.
The Experience Fragment dialog box displays the content created in AEM that is now natively available from within Target.
note NOTE The Replace Content option is not available for images. To use this option with an image, click the container element that contains the desired image.
-
Select the desired Experience Fragment, then click Add.
-
Finish configuring the activity. The configuration depends on the activity type:
table 0-row-2 1-row-2 2-row-2 3-row-2 4-row-2 5-row-2 6-row-2 Activity type Documentation A/B Test Create an A/B Test Auto-Allocate Auto-Allocate Auto-Target Auto-Target Automated Personalization (AP) Creating an Automated Personalization Activity Experience Targeting (XT) Create an Experience Targeting Activity Recommendations in an A/B Test or XT activity Recommendations as an offer
Consume Experience Fragments using the Form-Based Experience Composer consume-fbec
-
In Target, while creating or editing an experience in the Form-Based Experience Composer, select the location on the page where the AEM content is to be inserted, click the More Details icon (
), then select Change Experience Fragment to display the Change Experience Fragment dialog box.
The Experience Fragment dialog box displays the content created in AEM that is now natively available from within Target.
-
Select the desired Experience Fragment, then click Add.
-
Finish configuring the activity.
Remove clientlibs and extraneous HTML from Experience Fragments exported to Target remove-clientlibs
When Experience Fragment offers are used with Target on a page delivered by AEM, the targeted page already contains the necessary Client Libraries. Extraneous HTML elements in the offer are also not necessary.
Sometimes entire HTML pages wrap the Experience Fragment and cause problems. Ensure that the Experience Fragment is a small piece of HTML and not a full HTML page with HTML, HEAD, BODY, and so forth.
For more information, see AEM 6.5: Removing clientlibs from Experience Fragments exported to Target.
Training video: Using AEM Experience Fragments with Adobe Target training-video
The following video shows how to set up and use Experience Fragments:
For more detailed information, see Using Experience Fragments with Adobe Target.
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: Experience Fragments (XFs) created in Adobe Experience Manager (AEM) can be used in Target activities to aid optimization and personalization.
Intents:
- Set up Experience Fragments created in AEM so that they can be used in Target.
- Consume Experience Fragments in Target activities using the Visual Experience Composer (VEC).
- Consume Experience Fragments in Target activities using the Form-Based Experience Composer.
- Filter and search by HTML XFs and JSON XFs to distinguish the Experience Fragment types exported to Target.
- Use Experience Fragments for recommendations through an A/B Test or Experience Targeting (XT) activity.
Glossary:
- Experience Fragments (XFs): content created in AEM and used in Target activities. (product-specific)
- HTML XFs and JSON XFs: the filters in Target to distinguish between the Experience Fragment types exported to Target. (product-specific)
Guardrails:
- You cannot edit an Experience Fragment in Target; the Experience Fragment “primary” version remains in AEM.
- You cannot create Experience Fragments using Adobe Developer; create them using AEM.
- If you update an Experience Fragment in AEM, it must be published and exported to Target again so that Target can use the latest changes.
- Experience Fragments exported as JSON in Target cannot be used in activities created using the VEC; only HTML Experience Fragments are supported in VEC-based activities. JSON Experience Fragments can be used in activities created using the Form-based experience composer.
- In the VEC, the Replace Content option is not available for images; to use this option with an image, click the container element that contains the desired image.
Prerequisites and permissions:
- You must be provisioned with the Experience Fragments functionality within Target.
- You must be using AEM as a Cloud Service or AEM 6.4 (or later). AEM 6.3 and 6.4 have reached end-of-life and are no longer supported (except for customers who purchased extended support).
- You need an Adobe Target Standard or Adobe Target Premium account.
- Contact Adobe Target Customer Care to enable the integration and to provide you with authentication details.
- Configuring AEM to share the Experience Fragment with Target assumes that someone in your organization has created the Adobe Target configuration.
Applicability:
- Experience Fragments and Content Fragments are available for these activity types: A/B Test, Auto-Allocate, Auto-Target, Automated Personalization (AP), Experience Targeting (XT).
- Experience Fragments and Content Fragments are not available for these activity types: Multivariate Test (MVT), Recommendations.
Terminology:
- Canonical name: Experience Fragments
- Acronym: XFs (Experience Fragments)
- Acronym: AEM (Adobe Experience Manager)
- Acronym: VEC (Visual Experience Composer)
- Acronym: AP (Automated Personalization)
- Acronym: XT (Experience Targeting)
- Acronym: MVT (Multivariate Test)
FAQ:
- Which activity types can use Experience Fragments? Experience Fragments and Content Fragments are available for A/B Test, Auto-Allocate, Auto-Target, Automated Personalization (AP) and Experience Targeting (XT) activities, and are not available for Multivariate Test (MVT) and Recommendations activities.
- Where does an Experience Fragment display in Target after it is exported from AEM? The Experience Fragment displays on the Offers page in Target.
- How often does Target import Experience Fragments? Target currently looks for Experience Fragments to import every ten minutes, and the imported Experience Fragment should be available in Target within ten minutes.
- In which format is an Experience Fragment imported into Target? The Experience Fragment is imported into Target as an HTML or JSON offer.
- Which composers can consume Experience Fragments in Target activities? You can consume Experience Fragments in Target activities using the Visual Experience Composer (VEC) and the Form-Based Experience Composer.
- How can I use the Target AI and ML functionality with Experience Fragments? To fully use the Target AI and ML functionality, you can select Auto-Allocate or Auto-Target while creating an activity.
Troubleshooting:
- Symptom: entire HTML pages wrap the Experience Fragment and cause problems. Context: when using Experience Fragment offers with Target on a page delivered by AEM, the targeted page already contains the necessary Client Libraries, and extraneous HTML elements in the offer are not necessary. Fix: ensure that the Experience Fragment is a small piece of HTML and not a full HTML page with HTML, HEAD, BODY, and so forth.
Related pages:
- More information about AEM Experience Fragments and Content Fragments: AEM Experience Fragments and Content Fragments overview (c-integrating-target-with-mac/aem/aem-experience-and-content-fragments.md)
- Consuming Experience Fragments in Target activities: Visual Experience Composer (c-experiences/c-visual-experience-composer/visual-experience-composer.md)
- Consuming Experience Fragments in Target activities, including JSON Experience Fragments: Form-Based Experience Composer (c-experiences/form-experience-composer.md)
- Configuring an A/B Test activity: Create an A/B Test (c-activities/t-test-ab/t-test-create-ab/test-create-ab.md)
- Configuring an Auto-Allocate activity: Auto-Allocate (c-activities/automated-traffic-allocation/automated-traffic-allocation.md)
- Configuring an Auto-Target activity: Auto-Target (c-activities/auto-target/auto-target-to-optimize.md)
- Configuring an Automated Personalization (AP) activity: Creating an Automated Personalization Activity (c-activities/t-automated-personalization/create-ap-activity.md)
- Configuring an Experience Targeting (XT) activity: Create an Experience Targeting Activity (c-activities/t-experience-target/t-xt-create/xt-create.md)
- Using recommendations in an A/B Test or XT activity: Recommendations as an offer (c-recommendations/recommendations-as-an-offer.md)
Personas:
- marketer: Can consume Experience Fragments in Target activities using the Visual Experience Composer (VEC) and the Form-Based Experience Composer. Can filter and search by HTML XFs and JSON XFs to distinguish the Experience Fragment types exported to Target. Can use Experience Fragments for recommendations through an A/B Test or Experience Targeting (XT) activity. Where: “Intents”.
- admin: Can set up Experience Fragments for Target by following the prerequisites. The page states that you must be provisioned with the Experience Fragments functionality within Target, and that you must be using AEM as a Cloud Service or AEM 6.4 (or later) and an Adobe Target Standard or Adobe Target Premium account. The page instructs you to contact Adobe Target Customer Care to enable the integration and to provide you with authentication details. Where: “Prerequisites and permissions”.
Onboarding:
- Level: Intermediate
- First minimal step: Integrate AEM with Target by following the documentation for your AEM version, once you are provisioned with the Experience Fragments functionality within Target.
- Success check: After you integrate AEM with Target, create the Experience Fragment, configure AEM to share it with Target, and publish and export it, the Experience Fragment displays on the Offers page in Target; it should be available within ten minutes.
- Next: Finish configuring an A/B Test activity after adding the fragment: Create an A/B Test (c-activities/t-test-ab/t-test-create-ab/test-create-ab.md); Finish configuring an Experience Targeting activity after adding the fragment: Create an Experience Targeting Activity (c-activities/t-experience-target/t-xt-create/xt-create.md)