Expand my Community achievements bar.

SOLVED

How to expose AEM Remote SPA content to Target

Avatar

Level 2

Hi Team,

Out project is AEM Remote SPA, All aem components data exposed via .model.json, so rendering does happen only on react. In this case how to expose content (lets say experience fragments or any AEM content).

Do we need to create any AEM components specifically for Target or Please do provide any solutions.

 

Thanks in Advance
Saikiran

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @gskittu - 

 

If you're using the AEM Remote SPA approach and rendering all components on the React side, you can still expose AEM content, such as Experience Fragments, to be consumed in your React application. Here are a few approaches you can consider:

 

  • Expose AEM content via custom API endpoints

  • Use AEM Content Services 

  • Leverage GraphQL

  • Integrate with Adobe Target: If you're specifically looking to integrate Adobe Target with your React application, you can use the Adobe Target JavaScript SDK. This SDK allows you to personalize content based on Target activities and criteria. You can leverage the SDK's APIs to retrieve personalized content from Target and render it in your React application.

 

Regards,

Tanika 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hello @gskittu - 

 

If you're using the AEM Remote SPA approach and rendering all components on the React side, you can still expose AEM content, such as Experience Fragments, to be consumed in your React application. Here are a few approaches you can consider:

 

  • Expose AEM content via custom API endpoints

  • Use AEM Content Services 

  • Leverage GraphQL

  • Integrate with Adobe Target: If you're specifically looking to integrate Adobe Target with your React application, you can use the Adobe Target JavaScript SDK. This SDK allows you to personalize content based on Target activities and criteria. You can leverage the SDK's APIs to retrieve personalized content from Target and render it in your React application.

 

Regards,

Tanika