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