Expand my Community achievements bar.

SOLVED

AEM Personalization with contexthub

Avatar

Level 1

I have created one carousel component which is working fine when targeting is not applied but after applying targeting, its javascript is not loading or working fine. carousel's slider is not working.

 

Can anyone suggest me something?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

   You need to again initialize you JS on context Hub Teaser loaded event.

e.g

window.ContextHub.eventing.on(window.ContextHub.Constants.EVENT_TEASER_LOADED, function () {

//INITIALIZE HERE

}

 

Thanks

Dipti Chauhan

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi,

   You need to again initialize you JS on context Hub Teaser loaded event.

e.g

window.ContextHub.eventing.on(window.ContextHub.Constants.EVENT_TEASER_LOADED, function () {

//INITIALIZE HERE

}

 

Thanks

Dipti Chauhan

Avatar

Level 1

* Do you see any Console errors or 4xx/5xx status requests in Network tab in Developers Tool?

* Did you add ContextHub to the Page component as follows?:

https://docs.adobe.com/content/help/en/experience-manager-learn/sites/personalization/context-hub-te...

* Could you please confirm whether you setup ContextHub for Personalization as per: https://docs.adobe.com/content/help/en/experience-manager-learn/sites/personalization/context-hub-te... ?