Is it possible to target an Experience Fragment and deliver personalized content? | Community
Skip to main content
Level 3
June 20, 2017
Solved

Is it possible to target an Experience Fragment and deliver personalized content?

  • June 20, 2017
  • 16 replies
  • 8410 views

Hello

I was wondering if it is possible to target and deliver personalized content using Xperinece Fragments? I have requirement to include AEM content in a Non-AEM system along with targeting is possible?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by nehacms-0r3f0r

Hi kautuksahni,

Have tried below steps to check targeting for experience fragments. Please verify if this is what we wanted to check.

- Created two experience fragments (http://localhost:4502/editor.html/content/experience-fragments/DemoExperience/my-first-xf.html  and http://localhost:4502/editor.html/content/experience-fragments/SecondXF/my-second-xf.html)

- Created audience at http://localhost:4502/libs/cq/personalization/touch-ui/content/audiences.html i.e Context Hub Segment with name : firstEF

- For testing on local in order to have this segment resolved (http://localhost:4502/editor.html/etc/segmentation/contexthub/firstef.html

added condition to match postal location with my current location. This resolves this fragment.

- Now added the experirence fragment my-first-xf on http://localhost:4502/editor.html/content/we-retail/us/en/experience.html

- Start the targeting mode and there after selecting activity, added experience targeting with firstEF segment. and then made the dropped experience fragment my-first-xf area as target and changed the targeted component variation

End Result:

- As soon as segment on page got resolved (postal code match in this case), mapped experience fragment content with that audience started becoming visible.

Thanks,

Neha

16 replies

smacdonald2008
Level 10
June 20, 2017

Its not possible to use Experience Fragments outside of AEM. I have seen this question pertain to HTL as well- you need to use AEM technology within AEM.

Level 3
June 20, 2017

Are you saying it is possible to target the experience fragments inside the AEM? I created a fragment and I was not able to see the Target option on the XF.

Level 3
June 20, 2017

To your point - "you need to use AEM technology within AEM" - I don't agree with that! One of the purpose of Experience Fragments is to provide AEM content to third party consumers. Clearly mentioned here - Experience Fragments

I dont see a reason why Targeting isn't a possibility on Experience Fragments. End of the day Content Fragments are nothing but Page components (without header and footer)

kautuk_sahni
Community Manager
Community Manager
June 23, 2017

[Not Tested]

We can do the targeting on the EF.

For this, create the variations and while targeting you can choose the specific variation based on your condition/audiences.

And if you wan to do this from visual experience composer, then this would come in later releases.

~kautuk

Kautuk Sahni
smacdonald2008
Level 10
June 23, 2017

What I meant by "you need to use AEM technology within AEM" is you cannot build them outside of AEM. Sorry for the confusion.

WIth respect to Targeting them - Kautuk informed us that he is looking into this use case. In Theory, it should work.

nehacms-0r3f0r
nehacms-0r3f0rAccepted solution
Level 3
July 3, 2017

Hi kautuksahni,

Have tried below steps to check targeting for experience fragments. Please verify if this is what we wanted to check.

- Created two experience fragments (http://localhost:4502/editor.html/content/experience-fragments/DemoExperience/my-first-xf.html  and http://localhost:4502/editor.html/content/experience-fragments/SecondXF/my-second-xf.html)

- Created audience at http://localhost:4502/libs/cq/personalization/touch-ui/content/audiences.html i.e Context Hub Segment with name : firstEF

- For testing on local in order to have this segment resolved (http://localhost:4502/editor.html/etc/segmentation/contexthub/firstef.html

added condition to match postal location with my current location. This resolves this fragment.

- Now added the experirence fragment my-first-xf on http://localhost:4502/editor.html/content/we-retail/us/en/experience.html

- Start the targeting mode and there after selecting activity, added experience targeting with firstEF segment. and then made the dropped experience fragment my-first-xf area as target and changed the targeted component variation

End Result:

- As soon as segment on page got resolved (postal code match in this case), mapped experience fragment content with that audience started becoming visible.

Thanks,

Neha

kautuk_sahni
Community Manager
Community Manager
July 3, 2017

Neha, thanks a lot for sharing this here.

Actually, Kiran had this question, and you certainly helped him.This was what i was also proposing.

@nehacms can you please write a document(step by step guide) with video, i will try to publish it as Helpx article on your behalf.

Great community work.

~kautuk

Kautuk Sahni
nehacms-0r3f0r
Level 3
July 3, 2017

Thanks kautuk for the updates. Sure, Will create a document with screenshots and share the same.

nehacms-0r3f0r
Level 3
July 3, 2017

Hi kautuk,

let me know how to share the word document. Not able to attach here.

Thanks,

Neha

kautuk_sahni
Community Manager
Community Manager
July 4, 2017

Reverted to you over Direct Message.

~kautuk

Kautuk Sahni