Microsoft Clarity
Adds Microsoft Clarity (heatmaps and session recordings). Visits by administrators aren’t recorded.
Fill in your details first. Replace YOUR_PROJECT_ID with your project ID from Clarity > Settings > Setup.
<!-- Replace YOUR_PROJECT_ID with your Clarity project ID. -->
<script>
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "YOUR_PROJECT_ID");
</script>
Good to know
In the EU, load it only after consent (statistics cookies).
Comes with a rule
It doesn't run for administrators, so your own visits don't count in your statistics. You can change the rule after installing.
In these packs
- Analytics and pixels: The usual tracking codes, ready to paste your ID into. Administrators’ visits aren’t counted.