AEM Targeting component displays blank with AEP Web SDK integration
Adobe Experience Manager (AEM) 6.5 LTS Targeting component may render blank on sites using AEP Web SDK (Alloy) because the out-of-the-box component generates legacy at.js/mbox-based markup that Alloy doesn’t recognize. To resolve the issue, author the content in AEM, export offers to Adobe Target, manage activities in Adobe Target, and deliver them through AEP Web SDK.
Description description
Environment
- Adobe Experience Manager (AEM) 6.5 LTS (all versions)
- Adobe Target
- AEP Web SDK (Alloy / alloy.js)
Issue/Symptoms
- Targeted content authored in AEM doesn’t render on sites using AEP Web SDK.
- The targeted region appears blank in Author preview and Publish delivery.
- The issue affects Experience Targeting (XT) and A/B activities.
- The default experience doesn’t appear as a fallback.
- The out-of-the-box Experience Targeting component generates markup based on the legacy
at.js/mbox delivery model.
Root cause
The out-of-the-box AEM Targeting component generates legacy at.js/mbox-based markup that isn’t recognized by AEP Web SDK (Alloy). As a result, Alloy-based sites can’t deliver or render the targeted content through the AEM Targeting component.
Resolution resolution
Follow the steps below to resolve the issue:
- Author content and offers in AEM, such as Experience Fragments or Content Fragments.
- Export these offers to Adobe Target using the existing integration.
- Create and manage activities, such as A/B and XT activities, in the Adobe Target interface.
- Deliver the activities on the site using AEP Web SDK (Alloy). Configure the datastream and frontend rendering according to the Adobe Target and Web SDK documentation.
- Don’t load
at.jsand Alloy together on the same page because this isn’t supported. - Update the workflow so that activity authoring is performed in the Adobe Target UI instead of using the in-AEM Targeting mode.
- Follow the applicable migration guidance when moving delivery from
at.jsto AEP Web SDK. - Verify that the targeted content is delivered and rendered correctly through AEP Web SDK.
recommendation-more-help
experience-cloud-kcs-help-kbarticles