Passing Data to Microsoft Clarity
To make the heat maps aware of your A/B tests, you should send the experiment id and variation id to Clarity. This can be done through the “trackingCallback” in the GrowthBook client, by setting a custom tag in Clarity. You can use either one event for both experiment name and variation id, or two separate custom events. eg:Javascript
If you are using a recent version (> 1.4.1) you can use the third party tracking plugin:HTML SDK
This example assumes you’re using Google Analytics/GTM. Place this before you load the GrowthBook HTML SDK:gtag and dataLayer calls with the appropriate tracking code.

