Contexthub issues with loading variants info | Community
Skip to main content
Level 6
November 10, 2024

Contexthub issues with loading variants info

  • November 10, 2024
  • 2 replies
  • 654 views

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:

 

Incorrect Variants Info loading:

 

@h_kataria @dipti_chauhan @estebanbustamante @saravanan_dharmaraj @bhuwan_b @manu_mathew_ @briankasingli @akhoury @raja_reddy 

2 replies

Level 6
November 12, 2024

@arunpatidar @joerghoh Do you have any thoughts about this issue, please?

Manu_Mathew_
Community Advisor
Community Advisor
November 23, 2024

@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?