Creating and configuring Experience Fragments in AEM
In order to use AEM Experience Fragments in Target, you must perform the following steps:
Step 1: Integrate AEM with Target
For more information, see:
- AEM as a Cloud Service: Integrating with Adobe Target in the Experience Manager as a Cloud Service guide.
- Adobe I/O: Integration with Adobe Target using Adobe I/0 in the Administering User Guide documentation.
- AEM 6.5: Opting into Adobe Analytics and Adobe Target in the Adobe Experience Manager 6.5 documentation.
- AEM 6.4: Opting into Adobe Analytics and Adobe Target in the Adobe Experience Manager 6.4 documentation.
Step 2: Create the Experience Fragment
Experience Fragments are created in AEM. For more information, see:
- AEM as a Cloud Service: Experience Fragments in the Experience Manager as a Cloud Service guide.
- AEM 6.5: Experience Fragments in the Adobe Experience Manager 6.5 documentation.
- AEM 6.4: Experience Fragments in the Adobe Experience Manager 6.4 documentation.
Step 3: Configure AEM to share the Experience Fragment with Target
-
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.
The previous step assumes that someone in your organization has created the Adobe Target configuration.
-
Click Save & Close.
Step 4: Publish the Experience Fragment and export it into Target
Depending on your AEM version, see the following links for step-by-step instructions:
- AEM as a Cloud Service: Exporting Experience Fragments to Adobe Target in the Experience Manager as a Cloud Service guide.
- AEM 6.5: Exporting an Experience Fragment to Target in the Adobe Experience Manager 6.5 documentation.
- AEM 6.4: Exporting an Experience Fragment to Target in the Adobe Experience Manager 6.4 documentation.
Using Experience Fragments in Target activities
After performing the preceding tasks, the Experience Fragment displays on the Offers page in 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 Experience Fragment “primary” version remains in AEM. You cannot edit the Experience Fragment in Target.
You can filter and search by HTML XFs and JSON XFs to help you distinguish between Experience Fragment types that are exported to Target.
You can hover over an Experience Fragment in the list, then click the View icon
You can consume Experience Fragments in Target activities using the Visual Experience Composer (VEC) and the Form-Based Experience Composer.
-
To fully use the Target AI and ML functionality, you can 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 you can create an A/B Test activity (including Auto-Allocate and Auto-Target) or an Experience Targeting (XT) activity and include recommendations as an offer.
To consume Experience Fragments using the VEC:
-
In Target, while creating or editing an experience in the Visual Experience Composer, click the location on the page where you want to insert AEM content, then select the desired option to display the Choose an Experience Fragment list.
- Insert Before
- Insert After
- Swap with Experience Fragment
The Experience Fragment list displays the content created in AEM that is now natively available from within Target.
NOTE
The Swap with Experience Fragment option is not available for images. If you want to use this option with an image, click the container element that contains the desired image. -
Select the desired Experience Fragment, then click Done.
-
Finish configuring the activity.
For more information about configuring the various activity types, see the following topics:
- 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
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. If you want to use JSON Experience Fragments, use them in activities created using the Form-based experience composer.
To consume Experience Fragments using the Form-based Experience Composer:
-
In Target, while creating or editing an experience in the Form-Based Experience Composer, select the location on the page where you want to insert AEM content, then select Change Experience Fragment to display the Choose an Experience Fragment list.
The Experience Fragment list displays the content created in AEM that is now natively available from within Target.
-
Select the desired Experience Fragment, then click Save.
-
Finish configuring the activity.