Skip to main content

Consent Mode

Microsoft Clarity Consent Mode: what applies in the EEA, the UK and Switzerland

Since 31 October 2025, Microsoft Clarity enforces ConsentV2 signals for visitors from the EEA, the UK and Switzerland.

Published
Reviewed on
Reading time
5 min read
By
Limes
On this page

The short answer

Starting 31 October 2025, Microsoft Clarity enforces consent signal requirements for page visits from the European Economic Area (EEA), the United Kingdom (UK) and Switzerland. Without a valid signal, Clarity falls back to a no-consent mode: no cookies are set, each page view gets an isolated ID, and multi-page session recordings, funnels and returning-user metrics stop connecting across pages.

Under EU law, Clarity already requires prior consent under Art. 5(3) of the ePrivacy Directive (in Germany § 25(1) TDDDG) and Art. 6(1)(a) GDPR because it sets first-party and third-party cookies. Hold the Clarity script back until the visitor consents to statistics, then pass their choice through the consentv2 API.

What changed on 31 October 2025

After enforcing consent signals for Microsoft Advertising UET in May 2025 (see Microsoft UET consent mode), Microsoft extended enforcement to Microsoft Clarity on 31 October 2025. According to Microsoft Learn, the requirement applies to all visits originating from the EEA, the UK and Switzerland.

When no signal arrives or consent is set to denied, Clarity operates in no-consent mode:

  • Clarity sets neither first-party nor third-party cookies.
  • Previously set Clarity cookies are deleted once you inform Clarity of a withdrawal or denial.
  • Clarity assigns a unique identifier per page view, so multiple pages opened by one visitor are not joined into a single session.
  • Cross-page session replays, funnels and retention reports become limited for those visits.

Which cookies Microsoft Clarity sets

In its standard setup, Microsoft Learn documents both first-party cookies stored on your domain and third-party cookies on Microsoft domains. None of these cookies are strictly necessary under Art. 5(3) of the ePrivacy Directive or § 25(2) no. 2 TDDDG.

Cookies documented by Microsoft Clarity

CookieTypePurpose per Microsoft Learn
_clckFirst-partyPersists the Clarity User ID and preferences for that site.
_clskFirst-partyConnects multiple page views by one user into a single Clarity session recording.
CLIDThird-partyIdentifies the first time Clarity saw this user on any site running Clarity.
MUIDThird-partyIdentifies unique browsers across Microsoft sites for advertising, analytics and operations.
ANONCHKThird-partyIndicates whether MUID is transferred to ANID (documented as always 0 for Clarity).
MRThird-partyIndicates whether to refresh the MUID cookie.
SMThird-partySynchronises the MUID across Microsoft domains.

How the ConsentV2 API works

Microsoft recommends the newer consentv2 API to transmit user consent. It replaces the older window.clarity('consent', true/false) call, which Microsoft Learn marks as planned for deprecation.

consentv2 requires two string parameters. Pay attention to the capital S in both property names:

  • ad_Storage: "granted" or "denied" for storing data related to ads.
  • analytics_Storage: "granted" or "denied" for storing analytics data.
clarity-consentv2.js

Both fields are required and accept only 'granted' or 'denied'.

// Example: statistics granted, advertising denied
window.clarity('consentv2', {
  ad_Storage: 'denied',
  analytics_Storage: 'granted'
});

Setting up Microsoft Clarity with Limes

Limes blocks scripts marked with type="text/plain" and data-limes-category, so Clarity never loads before consent in the EU profile. The Limes script also sends Google Consent Mode v2 and Microsoft UET consent mode signals automatically on every plan, Free included (2,500 sessions a month, €0).

When window.clarity is present on the page, the Limes script already calls window.clarity('consent', selection.statistics) automatically. To also pass Microsoft's newer consentv2 call with separate analytics_Storage and ad_Storage values, attach a small listener to window.Limes.on.

  1. Open your Clarity project under Settings, Setup and make sure cookie consent is configured so Clarity waits for your signal before setting cookies.
  2. Add the Limes script as the first script in <head> and list Microsoft Clarity under Services in Limes in the statistics category.
  3. Add the small consentv2 helper script right below it. It checks whether window.Limes is already ready, binds window.Limes.on('change', ...), and otherwise waits for limes:ready.
  4. Below the helper, mark your Clarity embed script with type="text/plain" and data-limes-category="statistics", and call syncClarityConsent(window.Limes.getState()) right after the Clarity snippet so consentv2 fires reliably on both first-time grants and returning visits.
  5. If you load Clarity through Google Tag Manager, keep GTM in Limes's default Basic mode (see basic vs advanced) and require analytics_storage or trigger the Clarity tag on the Limes event cookie_consent_statistics.
index.html

The helper script sits before the gated Clarity block and syncs ConsentV2 on first-time consent, returning visits with stored consent and later changes.

<script src="https://cdn.uselimes.com/v1/YOUR-SITE-ID.js"></script>

<script>
  function syncClarityConsent(state) {
    if (typeof window.clarity !== 'function') return;
    window.clarity('consentv2', {
      ad_Storage: state.selection.marketing ? 'granted' : 'denied',
      analytics_Storage: state.selection.statistics ? 'granted' : 'denied'
    });
  }
  function bindLimes() {
    window.Limes.on('change', syncClarityConsent);
    syncClarityConsent(window.Limes.getState());
  }
  if (window.Limes) bindLimes();
  else window.addEventListener('limes:ready', bindLimes, { once: true });
</script>

<script type="text/plain" data-limes-category="statistics">
  /* Paste the official Clarity snippet from your Clarity dashboard here */
  if (window.Limes) syncClarityConsent(window.Limes.getState());
</script>

Verifying with the cookie scanner

Open your website in a private window and leave the banner untouched. In the browser developer tools, neither _clck nor _clsk should appear under Cookies. They should only appear after you accept statistics.

Without an account, test your homepage in the free Limes scan: Chromium opens the page without clicking anything and reports every cookie and third-party tracking host firing before consent. Inside your Limes account, the cookie scanner verifies all five states including reject and withdrawal, running monthly on Free and weekly with drift alerts from Professional (€29/month billed annually).

Limes scan report with the last scan, violations, undeclared storage and registered services for example.com
Scan report in the Limes app showing pre-consent violations, undeclared storage and registered services in the demo workspace example.com.

Next steps for Microsoft and Google tags

If you also run Microsoft Ads alongside Clarity, check the setup on Microsoft UET consent mode. Every JavaScript event Limes emits for custom integrations is documented on developers, and plan limits are listed on pricing.

Frequently asked questions

When did Microsoft Clarity start enforcing consent signals in Europe?

Microsoft Clarity began enforcing consent signal requirements on 31 October 2025 for traffic from the EEA, the UK and Switzerland. Without a valid signal, Clarity drops cookies and stops connecting multiple page views into sessions.

Is the older clarity('consent', true) call still enough?

Microsoft marks the older Consent API as planned for deprecation in Microsoft Learn and recommends migrating to window.clarity('consentv2', { ad_Storage, analytics_Storage }). With window.Limes.on you can forward consentv2 in a few lines of JavaScript.

Can I run Microsoft Clarity in no-consent mode without a cookie banner?

In no-consent mode Clarity sets no cookies, but the browser still fetches JavaScript from Microsoft servers and sends page and interaction data. Under Art. 5(3) ePrivacy, § 25 TDDDG and EDPB Guidelines 2/2023, script access without cookies can still require consent. Loading Clarity only after statistics consent is the conservative route.

Which consent banner category fits Microsoft Clarity?

Clarity provides heatmaps and session recordings and is usually placed in the statistics category. Because Microsoft also documents third-party cookies such as MUID, confirm the category with your data protection officer and keep ad_Storage tied to marketing consent.

Sources

  1. Clarity Cookie Consent API - ConsentV2(opens in a new tab) Microsoft Learn learn.microsoft.com 31 October 2025 enforcement for EEA, UK and Switzerland, consentv2 syntax, ad_Storage and analytics_Storage parameters, and deprecation notice for the older API.
  2. Consent Mode in Microsoft Clarity(opens in a new tab) Microsoft Learn learn.microsoft.com No-consent mode, behaviour without signals and site owner duty to send consent changes.
  3. Clarity Cookies(opens in a new tab) Microsoft Learn learn.microsoft.com First-party cookies _clck and _clsk plus third-party cookies CLID, ANONCHK, MR, MUID and SM.
  4. Consent Management in Clarity(opens in a new tab) Microsoft Learn learn.microsoft.com
  5. Section 25 TDDDG, protection of privacy in terminal equipment(opens in a new tab) Bundesministerium der Justiz gesetze-im-internet.de
  6. Directive 2002/58/EC (ePrivacy Directive)(opens in a new tab) EUR-Lex eur-lex.europa.eu Art. 5(3).
  7. Regulation (EU) 2016/679 (General Data Protection Regulation)(opens in a new tab) EUR-Lex eur-lex.europa.eu Art. 4(11), Art. 6(1)(a) and Art. 7.

Set up Microsoft UET consent mode with Limes

Topic overview

Set up a banner where reject stays equal.

The Free plan includes a banner for one domain with Google Consent Mode v2 and consent proofs.