KaleksyK
Voiceflow Partners4mo ago
2 replies
Kaleksy

Voiceflow custom events for analytics

Hi! I’m trying to capture custom events from the Voiceflow Web Chat widget in the browser and pass that data later to analytics pipeline.

I can receive the standard voiceflow:interact and voiceflow:save_session events using:

window.addEventListener("message", e => console.log(e.data));

…but it looks like custom traces returned from a Function block (e.g. { type: 'custom', payload: {...} }) are not forwarded to the parent page, so I can’t see them in the browser.

Is there a recommended way to expose custom events to the browser, or a supported method to send small custom payloads (like button_clicked) from Voiceflow to the page outside the chat widget?

Any guidance appreciated!
Was this page helpful?