Microsoft Clarity embed code

Microsoft Clarity seems to be a very popular solution for better understanding user behavior in your Discourse community. Similar to the way Google Analytic does it.

However, nowhere did we find a native option like Microsoft Clarity to integrate the code into Discource.

Are there any such options? How did you embed the Microsoft Clarity code into Discource?

1 Like

Did you find a solution to this?

From what I see, you can install it manually. It gives you a tracking code to add to Discourse.

image
image

The tracking code can be pasted to your theme or a new theme component in Head:

And that’s it.

It can see me online:

image

I can’t say if you require additional configuration, but the basic setup seems to work fine at first glance!

2 Likes

That’s the approach we decided to take. I was going to report back once it’s live & tested!

1 Like