# 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="/files/XCT93bGMFgRfmTmXaHpF" alt=""><figcaption></figcaption></figure>

And then add Microsoft Clarity to your list of partners:

<figure><img src="/files/GORP8riiMIuAFsIEVlsj" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/7rQnCSmg8w2bXhJFnfFX" 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](/en/consent-transmission-standards/microsoft-uet-consent-mode.md) if you need to enable consent management for this service.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cmp.docs.sirdata.net/en/consent-transmission-standards/microsoft-clarity-consent.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
