> ## Documentation Index
> Fetch the complete documentation index at: https://docs.molin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Marketing tracking overview

> An overview of all tracking and analytics features available in the Molin AI widget.

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.

<Card title="UTM tags injection" icon="tag" href="/home/marketing/utm">
  Learn how UTM tags are injected into AI chat links.
</Card>

## 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.

<Card title="Google Analytics & GTM" icon="chart-line" href="/home/marketing/integrations/google-analytics">
  See all dataLayer events including GA4 e-commerce tracking.
</Card>

## 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.

<Card title="Klaviyo" icon="envelope" href="/home/marketing/integrations/klaviyo">
  See which Klaviyo events are sent automatically.
</Card>

## 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.

<Card title="Microsoft Clarity" icon="eye" href="/home/marketing/integrations/microsoft-clarity">
  See which Clarity tags and events are sent automatically.
</Card>

## 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).

<Card title="JavaScript lifecycle events" icon="code" href="/home/marketing/javascript-events">
  Listen for widget lifecycle events with standard JavaScript.
</Card>
