# Microsoft Clarity Consent

**Microsoft Clarity uses cookies** to collect user session data, such as how a user accessed your site, their location, and language preferences. As a website owner, you may be subject to laws requiring you to obtain user consent before placing cookies on their browser or collecting personal information.

By default, the **Clarity tracking code** is placed in your site's HTML header and loads immediately, even before the user has provided consent for cookies. To prevent this, you can [configure Clarity](https://learn.microsoft.com/en-us/clarity/setup-and-installation/cookie-consent) to **only install cookies after obtaining user consent**.

This requires **disabling cookies in Clarity settings** and modifying your site's JavaScript to notify Clarity when consent is granted.

To disable cookies, go to **Clarity > Settings > Setup**, then turn off cookies

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2FlZluO3qbku3ricz80QBm%2Fcookie-setting.png?alt=media&#x26;token=864f260d-be14-4ee9-ae6a-a9b982c9a156" alt=""><figcaption></figcaption></figure>

And then add Microsoft Clarity to your list of partners:

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2FlZQAsGIPkPB54jZMczAN%2Fimage.png?alt=media&#x26;token=42c9c718-69f2-4c6a-a8bc-7d532aaa2b2b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2FbtvYYQvV2c89Yg1i3kMz%2Fimage.png?alt=media&#x26;token=24ced2bd-fe52-469a-a430-3717b59a8e4a" alt=""><figcaption></figcaption></figure>

That's all! The **Consent API is supported by default** when you add Microsoft Clarity as a partner.

{% hint style="danger" %}
**Note:** This mode **does not cover** **Microsoft UET** activities! Please refer to [this page](https://cmp.docs.sirdata.net/en/consent-transmission-standards/microsoft-uet-consent-mode) if you need to enable consent management for this service.
{% endhint %}
