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
| Attribute | Required | Description |
|---|---|---|
data-widget-key | yes | Your widget key (Settings → Install) |
data-widget-position | no | right (default) or left |
data-widget-hidden | no | true 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.