Expand my Community achievements bar.

Contexthub issues with loading variants info

Avatar

Level 4

Hello Community,

 

We are using Context Hub for personalization in our project, and we have all the necessary setup in place, including segments, audiences, activities, and configured page properties for Context Hub.

 

Everything is working as expected when we load the page in edit mode and then move to preview mode. We are able to see the targeted content.

 

However, when we load the page in edit mode and then move to targeting mode and go to preview, it does not work and always shows the default content. I have checked the variants information in the teaser, and it does not display the correct information (attached screenshots only show the default content). If I reload the page again, it starts working, and I can see the correct variants information loading.

 

The issue seems to be related to navigating from edit mode to targeting mode and then to preview mode.

 

I have even restarted the com.day.cq.personalization.impl.TargetedContentManagerImpl component.

 

Has anyone experienced a similar issue in author mode? Please let me know what needs to be done to fix the issue.

 

Expected Variants:

test1234567_0-1731244009253.png

 

Incorrect Variants Info loading:

test1234567_1-1731244134498.png

 

@h_kataria @Dipti_Chauhan @EstebanBustamante @Saravanan_Dharmaraj @Bhuwan_B @Manu_Mathew_ @BrianKasingli @Andrew_Khoury @Raja_Reddy 

2 Replies

Avatar

Level 4

@arunpatidar @Jörg_Hoh Do you have any thoughts about this issue, please?

Avatar

Community Advisor

@test1234567 did you verify that the cq.contexthub library is loaded and included in the Preview Mode and check if the segments are resolved in the preview mode?