You need to have our SDK installed on your site.
You need to enable 'Send events to the page window' in the app:
You can enable it under 'Product guides' -> 'Placements' -> 'Edit default'.
Event type
We send a custom event to the window object, it looks like this:
We send a custom event to the window object called ebbot_widget_event.
You need to add an event listener to your window object to use the event.
It should look something like this:
constebbotEventHandler= (event) => {// Extract "detail" from the "event"// "detail" is the type specified aboveconst { detail } = event;/* Your logic here */};window.addEventListener("ebbot_widget_event", ebbotEventHandler);window.addEventListener("beforeunload", () => {window.removeEventListener("ebbot_widget_event", ebbotEventHandler);});
Note
The recommendation_receive event will not send the complete products, but only the IDs.
If you want more information on the product it's recommended to use the event stream described on Received events page.
The name variable is generally the name of the step or option given in the guide builder.