AEM's preview mode for Campaign users and targeted contents | Community
Skip to main content
Kornel_Keseru
Level 3
March 7, 2017

AEM's preview mode for Campaign users and targeted contents

  • March 7, 2017
  • 3 replies
  • 8882 views

Hi,

I've followed the steps on https://docs.adobe.com/docs/en/aem/6-2/author/personalization/adobe-campaign/target-adobe-campaign.html to setup targeted contents for campaign segments.

However, when previewing the page by selecting a persona that is linked with Adobe Campaign (seed addresses), the personalization properties (e.g. firstname, lastname) are displayed properly, but the targeted sections show the default contents, altough targetData.segmentCode comes from Campaign as expected and matches the rule setup in the campaign trait.

The targeted contents appear in the emails generated by the Campaign delivery as expected. So the only thing that doesn't work is the preview in AEM.

Has anybody setup preview for targeted contents with Campaign users already?

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Daniel_H__A__Li
Level 2
March 7, 2017

Hi, Kornel. How are you?

Kornel, I was able to make the preview mode work by following the steps described here:

Personalization in AEM 6.2

But I was using ContextHub as engine instead of Adobe Target or Client Context and the segments for ContextHub are different from the segments for Client Context (as far as I've understood, we can't mix them).

Regards,

Daniel.

smacdonald2008
Level 10
March 7, 2017

See this HELPX article: https://helpx.adobe.com/experience-manager/using/aem_campaign.html

This provides more detail. 

Kornel_Keseru
Level 3
March 8, 2017

Thanks for your replies! My investigation so far shows that only the "Segment ID trait" from the "Segmentation - Adobe Campaign" component group will result in such segment that will work properly during the targeting in a targeted Adobe Campaign delivery. However segments built with this one won't be resolved in preview mode on the touch UI using persona from the context hub. So it seems that either I have working preview in AEM (Contexthub+TouchUI) or working targeting in Campaign, but not both. This is not a blocker, as I can preview the targeted contents in targeting mode, but would be nice to make it working on the touch UI and contexthub segments. Maybe in 6.3?

daniel_henriqu1
Level 4
March 8, 2017

Hi, Kornel.

By reviewing our conversation, I think I got the wrong end of the sticky...

I was able to use both Targeting mode and Preview Mode (ContextHub + Touch UI) in AEM 6.2 even for regular components, such as the text component and the title component.

Targeting those components will generate some page "fragments" (I don't recall the correct name for this type structure/component) under the corresponding Campaign, containing the value set for each selected segment.

What kind of issues have you been facing?

Has your Campaign been set to use ContextHub?

Have your segments been created as ContextHub Segments instead of "regular" (Client Context) segments?

Do your page templates/components include the context hub client library (it's a cq:include in the pages)?

Regards,

Daniel.

Kornel_Keseru
Level 3
March 10, 2017

Hi Daniel,

Thank you for your reply!

Regarding your question: I've created "regular" Client Context segments by following this guide: https://docs.adobe.com/docs/en/aem/6-2/author/personalization/adobe-campaign/target-adobe-campaign.html#Creating Segments, but I'm trying to preview this on the Context hub.

The segment and trait in the article are designed to work with Adobe Campaign (another product in the marketing cloud). The trait in such segment tests a property (targetData.segmentCode), which is populated by Adobe Campaign during email delivery. It all works well when synchronizing the page (email template) into Adobe Campaign and delivering the email, but on AEM side targetData.segmentCode is not available in the preview mode, but it is wrapped into an object called seedData. Based on this I think I could workaround the issue and find a solution that makes both Adobe Campaign and AEM's client context happy.

Regards,

Kornel