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

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

  • June 20, 2017
  • 16 replies
  • 8409 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

nehacms-0r3f0r
nehacms-0r3f0rAccepted solution
New Participant
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

smacdonald2008
New Participant
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.

kautuk_sahni
Employee
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
New Participant
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)

New Participant
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.

smacdonald2008
New Participant
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.