# Microsoft Clarity embed code

**URL:** <https://meta.discourse.org/t/microsoft-clarity-embed-code/301835>\
**Category:** Support\
**Created:** [April 1, 2024, 12:26pm UTC](https://meta.discourse.org/t/microsoft-clarity-embed-code/301835 "2024-04-01T12:26:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petr\_Mišák](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/petr_mi%C5%A1%C3%A1k/32/184800_2.png) [@Petr\_Mišák](https://meta.discourse.org/u/Petr_Mi%C5%A1%C3%A1k)\
**Post date:** [April 1, 2024, 12:26pm UTC](https://meta.discourse.org/t/microsoft-clarity-embed-code/301835/1 "2024-04-01T12:26:07Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![BaronGrivet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barongrivet/32/152142_2.png) [@BaronGrivet](https://meta.discourse.org/u/BaronGrivet)\
**Post date:** [August 13, 2024, 12:57am UTC](https://meta.discourse.org/t/microsoft-clarity-embed-code/301835/2 "2024-08-13T00:57:39Z")

</div>

Did you find a solution to this?

---

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [August 13, 2024, 3:25am UTC](https://meta.discourse.org/t/microsoft-clarity-embed-code/301835/3 "2024-08-13T03:25:00Z")

</div>

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

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/e/b/aeb4048e9b1567349823b1facc60181e6f91bac8.png)  
 ![image](https://global.discourse-cdn.com/meta/original/4X/c/9/8/c98fed1189f26bb9d4e37a69795016d849277f85.png)

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

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/6/d/e6d540bacf4fbe5beb1257b5d37fc88567da5aeb.png)

And that’s it.

It can see me online:

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/a/d/fad85fc90d9da9cff0c9a0bd8e2e696d0c2e4d53.png)

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

---

<div class="post-metadata">

**Author:** ![BaronGrivet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barongrivet/32/152142_2.png) [@BaronGrivet](https://meta.discourse.org/u/BaronGrivet)\
**Post date:** [August 13, 2024, 7:54pm UTC](https://meta.discourse.org/t/microsoft-clarity-embed-code/301835/4 "2024-08-13T19:54:36Z")

</div>

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