Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

ContextHub segmentation events


Level 3

Hi there,

I have a problem related to segmentation/ContextHub in which one of our components (that is already developed) is not working when we apply the Targetting feature.

What happens is that the component relies on a page load javascript event. It listens for the page load event to initiate a count down.

But with Targetting enabled, this event does not make sense anymore, because when the page finishes loading, the Targetting feature hasn't decided yet what segmentation will be chosen and the component is literally not there in the DOM yet.

It would make sense to listen to an event of segmentation change, but I couldn't find it.

Anyone have an idea in how to solve that?

0 Replies