Hi,
I am trying to perform some personalization in my own website using the Client Rules engine. I have already performed succesfully some personalization in Geometrixx site, but I cannot make it work for my site.
Following the instructions on the documentation, I have added these lines of code on my site:
1. In the <head> section I have added:
<sling:include path="contexthub" resourceType="granite/contexthub/components/contexthub" />
<cq:include script="/libs/cq/cloudserviceconfigs/components/servicelibs/servicelibs.jsp"/>
2. At the beginning of <body>, just after the tag:
<cq:include path="clientcontext" resourceType="cq/personalization/components/clientcontext"/>
3. Before the </body> tag:
<cq:include path="cloudservices" resourceType="cq/cloudserviceconfigs/components/servicecomponents"/>
After doing this, I set up a very simple targeting campaign, with simple experiences and segments for testing purposes. The problem comes when I run my website on Preview mode, and by changing from one user to another in the ContextHub it doesn't resolve the different segments (seems like always is logged with the same user).
However, surprisingly for me, if I open the Classic UI it works. Ussing the Classic UI and changin users in the ContextHub, they work properly, resolving their segments and showing the right experiences. Also ClientContext shows the right information.
Could anyone help me to make it work without opening the Classic UI? I will do appreciate.
Thanks in advance.