How it works
When a visitor interacts with the widget, we call the Klaviyo client-side API (klaviyo.push(["track", ...])) to fire custom events for key interactions. These events appear as metrics in your Klaviyo account and can be used in flows, segments, and reports.
If Klaviyo is not installed on your website, these calls are silently skipped. There is no performance impact and no errors.
Custom events
Events are fired viaklaviyo.push(["track", name]) and appear as metrics in Klaviyo.
| Event | When it fires |
|---|---|
molin_chat_open | User opens the chat window |
molin_chat_close | User closes the chat window |
molin_message_sent | User sends a message in the chat |
molin_link_click | User clicks a link inside the chat conversation |
Using events in Klaviyo
Once events are flowing, you can:- Create flows triggered by any of these events (e.g. send a follow-up email after a user interacts with the chat).
- Build segments based on event activity (e.g. “users who chatted in the last 7 days”).
- Analyze engagement in Klaviyo’s analytics dashboards.
Klaviyo’s client-side tracking only records events for visitors who are already identified (cookied). Anonymous visitors who have not been identified via Klaviyo will not have events tracked.
Requirements
Klaviyo’s onsite JavaScript (klaviyo.js) must already be installed on your website.