Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

Triggering Rules with a CustomEvent - on window

Avatar

Level 4

Based, on this post, https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-launch/how-to-trigger-cus... 

 

can I trigger the window on the custom event type? Does listening on window work now in Adobe Launch?  Do you have to dispatch the event from window to body or document ?

image.png

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Yes, listening for Custom Events on window works in Adobe Launch. This assumes that you're using the native Custom Events (reference: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent).

There's a short guide on using Custom Events in Adobe Launch at https://jimalytics.com/adobe-launch-guides/adobe-launch-rule-events-guide/#Other_Events (search for the "Custom Event" header in that web page).

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Yes, listening for Custom Events on window works in Adobe Launch. This assumes that you're using the native Custom Events (reference: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent).

There's a short guide on using Custom Events in Adobe Launch at https://jimalytics.com/adobe-launch-guides/adobe-launch-rule-events-guide/#Other_Events (search for the "Custom Event" header in that web page).