Skip to main content

Install the widget

Add one script to your site. It loads asynchronously and won't block your page.

<script
src="https://app.gtmclarity.ai/widget.js"
data-widget-key="YOUR_WIDGET_KEY"
async
></script>

Options

AttributeRequiredDescription
data-widget-keyyesYour widget key (Settings → Install)
data-widget-positionnoright (default) or left
data-widget-hiddennotrue to load without showing the bubble

Single-page apps

The widget tracks route changes automatically. No extra calls needed for React/Vue/Next apps.

Verify

Load any page; Settings → Install turns green on the first page view. If it doesn't, check that the widget key is correct and the domain is added under Settings → Domains.