Hello Community,
We have encountered an issue with ContextHub personalization. We have a dynamic component that includes some inline script as part of the component HTML. This component is similar to a carousel component. We need to personalize the content based on specific criteria, but we are facing a problem where the UI is not refreshed as expected when targeting is applied.
We have observed the following use cases where the issue occurs in authoring/preview mode:
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @test1234567
In addition to the EVENT_TEASER_LOADED, consider listening for events such as EVENT_TARGETING_MODE_CHANGED, EVENT_PERSONA_CHANGED, EVENT_AUDIENCE_CHANGED, and EVENT_CONTEXT_CHANGED to ensure that your component UI updates when switching between different targeting configurations, personas, or context changes. Furthermore, ensure that the UI refresh process includes your custom JavaScript logic (such as re-initializing the carousel).
Thanks,
Pallavi Shukla
Hi @test1234567
In addition to the EVENT_TEASER_LOADED, consider listening for events such as EVENT_TARGETING_MODE_CHANGED, EVENT_PERSONA_CHANGED, EVENT_AUDIENCE_CHANGED, and EVENT_CONTEXT_CHANGED to ensure that your component UI updates when switching between different targeting configurations, personas, or context changes. Furthermore, ensure that the UI refresh process includes your custom JavaScript logic (such as re-initializing the carousel).
Thanks,
Pallavi Shukla