All integrations

Session replay integration

Microsoft Clarity on Shopify, made compliant

Free session-replay and heatmap tool from Microsoft — popular Hotjar alternative for cost-conscious stores.

  • Free forever under 5k views/mo
  • No credit card
  • 5-minute install

Why consent applies to Microsoft Clarity

Microsoft Clarity is functionally similar to Hotjar — session recording, heatmaps, click tracking. EU consent obligations are identical: opt-in for the analytics category, with form-field redaction enforced regardless of consent. Clarity's 'free forever' pricing has driven adoption among small merchants who often don't realise it has the same compliance footprint as paid alternatives.

Cookies / scripts Microsoft Clarity sets

  • _clck
  • _clsk
  • MR (set by clarity.ms)

Step-by-step compliance setup

  1. 1

    Block clarity.ms until analytics consent

    Clarity's tracker loads via `<script src="https://www.clarity.ms/tag/<id>">`. Block this script tag until the visitor accepts. A standard third-party blocklist entry covers it.

  2. 2

    Enable masking for sensitive content

    In the Clarity dashboard, set masking to 'Strict' or use the `data-clarity-mask` attribute on form fields and PII-bearing elements. Clarity does not mask by default — this is a configuration step you have to do.

  3. 3

    Stop recording for opted-out and GPC visitors

    Since October 2025 Clarity requires the ConsentV2 API: `clarity('consentv2', { ad_Storage: 'denied', analytics_Storage: 'denied' })` for opted-out visitors, granting each key on accept. The legacy `clarity('consent', false)` call still works but is deprecated.

How Consentico handles Microsoft Clarity

Consentico blocks Clarity's tag-load via the same mechanism as Hotjar and GA4. The merchant can move Clarity into a separate 'session replay' category if they want a stricter consent posture than for plain analytics.

  • Default-deny before any tag fires
  • Three-layer script blocking (createElement + MutationObserver + content-type)
  • Audit-ready consent log

Related concepts

Related integrations