The Molin AI widget automatically sends interaction data to your website’s Google Analytics through Google Tag Manager (GTM) integration, allowing you to track how users engage with the AI assistant on your site.

What is the dataLayer integration?

The dataLayer integration automatically pushes events to the browser’s window.dataLayer object when users interact with the Molin AI widget.

Events

When the user clicks a link inside a Molin AI widget conversation, the following event is automatically sent to dataLayer:
{
  event: 'molin_link_click',
  link_url: 'https://yourstore.com/product/123'
}
ParameterTypeDescription
eventstringAlways 'molin_link_click' for link click events
link_urlstringThe URL of the clicked link (product page, help doc, etc.)