Insights March 12, 2026 8 min read

Microsoft Clarity and GDPR: Privacy Compliance Guide

Session recordings and heatmaps capture user behavior in detail — which immediately raises GDPR questions. Is Microsoft Clarity compliant? What data does it collect? Do you need cookie consent? This guide covers everything you need to know to use Clarity legally in the EU and beyond.

Is Microsoft Clarity GDPR Compliant?

The short answer: Clarity can be used in a GDPR-compliant way, but it's not automatically compliant just by installing it. Like any analytics tool that sets cookies and processes user behavior data, you need to configure it properly and handle consent correctly.

Microsoft provides the infrastructure for compliance — automatic content masking, a Data Processing Agreement, and configurable tracking options. But the responsibility for proper implementation falls on you as the data controller.

What Data Does Clarity Collect?

Understanding exactly what Clarity tracks is essential for your privacy policy and Data Protection Impact Assessment (DPIA). Here's a breakdown:

Data Clarity collects automatically

Data Clarity does NOT collect

Tip: Clarity's IP handling is a significant advantage over some competitors. Since IP addresses are used only for geolocation and never stored, you reduce your data processing footprint. However, the temporary processing of IP addresses still counts as personal data processing under GDPR.

Cookie Consent: Yes, You Need It

Clarity sets first-party cookies that are not strictly necessary for your website to function. Under GDPR (and the ePrivacy Directive), this means you need informed consent from EU visitors before loading the Clarity tracking script.

Clarity's cookies

Cookie Purpose Duration
_clckUnique user identifier12 months
_clskSession identifier1 day
CLIDMicrosoft Clarity user identifier (if sharing with Bing)12 months
ANONCHKIndicates if MUID is transferred to ANID (Bing integration)Session
MRUsed to collect info for analyticsSession
SMUsed in synchronizing the MUID across Microsoft domainsSession

How to implement consent correctly

  1. Don't load Clarity before consent: The Clarity JavaScript snippet should only fire after the user accepts analytics/performance cookies in your consent banner.
  2. Categorize properly: In your Cookie Management Platform (CMP), classify Clarity cookies under "Analytics" or "Performance" — not "Necessary."
  3. Provide opt-out: Users must be able to withdraw consent at any time, which should stop Clarity tracking and delete its cookies.

Most CMPs (Cookiebot, OneTrust, CookieYes) support conditional script loading. Here's a typical implementation with a consent manager:

<!-- Only loads when analytics consent is given -->
<script type="text/plain" data-cookieconsent="statistics">
  (function(c,l,a,r,i,t,y){
    // Clarity tracking code
  })(window, document, "clarity", "script", "YOUR_PROJECT_ID");
</script>

Content Masking: Protecting Sensitive Data

Clarity automatically masks all user input fields in session recordings. When you watch a replay, text typed into forms appears as asterisks. This is a strong default, but you may need to go further.

Default masking (Balanced mode)

Clarity's default "Balanced" masking mode masks:

Strict masking mode

For sites handling sensitive data (healthcare, finance, legal), switch to "Strict" mode in Clarity Settings. This masks all text content on the page, showing only page structure and user interactions. You can still see where users click and scroll, but no readable text appears in recordings.

Custom masking with CSS classes

For fine-grained control, add specific CSS classes to elements you want to mask or unmask:

<!-- Force mask this element -->
<div class="clarity-mask">Sensitive content here</div>

<!-- Prevent masking (use carefully) -->
<div class="clarity-unmask">Public content</div>

Tip: When in doubt, use Strict mode. You lose some context in session recordings, but you eliminate the risk of accidentally capturing personal data. Start strict, then selectively unmask elements you know are safe.

Data Processing Agreement (DPA)

GDPR requires a Data Processing Agreement between you (the controller) and Microsoft (the processor). Microsoft covers this through their Online Services Terms and Data Processing Addendum, which applies to all Microsoft services including Clarity.

Key points covered by Microsoft's DPA:

You don't need to sign a separate DPA for Clarity — it's included in Microsoft's standard terms when you create an account. However, keep a record of this for your GDPR documentation.

Privacy Policy Requirements

Your website's privacy policy must disclose the use of Clarity. At minimum, include:

  1. What you use: "We use Microsoft Clarity to understand how users interact with our website."
  2. What data is collected: "Clarity records mouse movements, clicks, scroll behavior, and page interactions."
  3. Purpose: "This data helps us improve our website's usability and user experience."
  4. Cookies: List the specific Clarity cookies and their purposes.
  5. Data processor: "Data is processed by Microsoft Corporation."
  6. Masking: "Sensitive content such as form inputs is automatically masked."
  7. Link to Microsoft's privacy statement: Include a link for transparency.

Clarity vs. Other Tools: Privacy Comparison

Feature Microsoft Clarity Hotjar PostHog (Cloud)
IP StorageNot storedNot storedConfigurable
Auto Content MaskingYes (3 modes)YesConfigurable
DPA AvailableYes (standard terms)YesYes
EU Data ResidencyNo (US processing)EU option availableEU option available
Self-Hosting OptionNoNoYes
Cookie-less ModeNoNoYes (limited)
PriceFreeFree tier + paidFree tier + paid

Clarity's main privacy limitation is the lack of an EU data residency option. Data is processed on Microsoft's infrastructure, which includes US-based servers. This is covered legally by Standard Contractual Clauses, but some organizations with strict data sovereignty requirements may need to evaluate this.

Practical GDPR Compliance Checklist

Use this checklist to ensure your Clarity implementation is GDPR compliant:

Disabling Bing Data Sharing

By default, Clarity can share data with Microsoft Advertising (Bing) for improved ad targeting. If you don't use Bing Ads, disable this in Clarity Settings under "Data sharing." This reduces the scope of data processing and simplifies your GDPR position — fewer purposes means a simpler privacy policy and less risk.

Handling Data Subject Requests

Under GDPR, users can request access to, deletion of, or restriction of their personal data. For Clarity data:

Stop analyzing Clarity data manually

ClarityInsights sends you AI-powered weekly reports with per-page analysis, frustration signals, and prioritized recommendations.

Join the Waitlist