For the past few days, I've been struggling to make Geometrixx Demo Site work with personalization using ContextHub in AEM 6.2.
I've probably missed some step along the way, but I couldn't figure out what...
Now, my problem:
When I test the page in the Targeting mode, simulating each Experience/Segment for that Activity, everything works as expected.
Unfortunately, as soon as a move to the Preview Mode or I access the same page on my publish instance, I can't see my targeted component, neither the default content or the segment specific content.
What am I missing?
Thanks in advance!
Apparently, Geometrixx page components don't include ContextHub script by default.
I've extended a page component and added the correct script to it:
<%@page session="false"%><%@ include file="/libs/foundation/global.jsp" %> <cq:include script="/apps/geometrixx/components/page/headlibs.jsp" /> <sling:include path="contexthub" resourceType="granite/contexthub/components/contexthub" />
(headlibs.jsp of my extension)