Session replay integration
Microsoft Clarity on Shopify, made compliant
Free session-replay and heatmap tool from Microsoft — popular Hotjar alternative for cost-conscious stores.
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_clskMR (set by clarity.ms)
Step-by-step compliance setup
- 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
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
Stop recording for opted-out and GPC visitors
Clarity exposes a `clarity('consent')` API that gates whether a session is uploaded. Call `clarity('consent')` with `false` (or simply never load the script) for opted-out visitors.
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
Block Microsoft Clarity until consent — in five minutes.
Free for stores under 5,000 banner views per month. No code, no theme edits.