Skip to main content
The Molin AI widget includes built-in tracking features that help you measure how users interact with the AI assistant on your website. All tracking is enabled automatically, so no additional setup is required.

UTM tags

When users click links provided by the AI in chat, a utm_source=molin.ai tag is automatically appended to the URL. This allows you to attribute traffic from Molin AI in your analytics platform.

UTM tags injection

Learn how UTM tags are injected into AI chat links.

Google Analytics & GTM (dataLayer)

The widget pushes events to window.dataLayer for Google Tag Manager integration. This includes a general link click event as well as standard GA4 e-commerce events (view_item_list, select_item, view_item) for product recommendations.

Google Analytics & GTM

See all dataLayer events including GA4 e-commerce tracking.

Klaviyo

If you use Klaviyo, the widget automatically sends custom events to Klaviyo’s client-side API. This lets you trigger flows, build segments, and analyze customer engagement based on chat interactions, with zero configuration.

Klaviyo

See which Klaviyo events are sent automatically.

Microsoft Clarity

If you use Microsoft Clarity, the widget automatically tags sessions and fires custom events so you can filter session recordings by Molin AI interactions.

Microsoft Clarity

See which Clarity tags and events are sent automatically.

JavaScript lifecycle events

The widget dispatches custom events on window (molin:ready, molin:chat-open, molin:chat-close) that your website can listen for to trigger custom logic (e.g. firing your own analytics).

JavaScript lifecycle events

Listen for widget lifecycle events with standard JavaScript.