Microsoft Clarity integration for Shopify
Microsoft Clarity gives you heatmaps and session recordings, and in the EU it needs your visitors' consent first. Pandectes passes each visitor's choice to Clarity's Consent API, so Clarity sets its cookies only once the visitor agrees. Read the setup guide.
How it works
Turn on Consent Mode in Clarity
Consent Mode is on by default for visitors from the EEA, the UK and Switzerland. For a global store, turn off the Cookies option under Settings, then Setup, in your Clarity dashboard.
Turn on the integration
In the app, open Integrations, configure Microsoft Clarity and switch it on. Add your Clarity project ID and Pandectes loads the Clarity script for you.
Consent reaches Clarity
When a visitor answers your banner, Pandectes grants or denies Clarity's analytics and ad storage to match, and calls the Consent API.
Microsoft Clarity in Pandectes
Heatmaps and recordings, with consent
- analytics_Storage follows your Performance category: sessions, heatmaps and recordings.
- ad_Storage follows your Marketing category: retargeting and conversions.
- Clarity cookies (_clck, _clsk and MUID) are set only after consent.
- Loads the Clarity script early when you add your project ID.
- Runs alongside Microsoft Consent Mode from the same banner.
- Included in the Plus plan and above.
Frequently Asked Questions
What happens when a visitor declines?
Clarity switches to cookieless mode. It doesn't set its consent-dependent cookies or track across sessions, and only limited, non-identifying data may be collected.
Can a visitor accept analytics but not advertising?
Yes. The two Clarity permissions are separate, so a visitor who accepts performance cookies and declines marketing grants analytics storage and denies ad storage.
Do I have to add my Clarity project ID?
No, but without it you need to load the Clarity script on your store yourself. Pandectes still sends the consent signals, and they take effect once the script is on the page.
How do I check that it works?
In your browser's console, run:
clarity('metadata', (d, upgrade, consent) => {
console.log('consentStatus:', consent);
}, false, true, true);Before consent, analytics_storage and ad_storage show as DENIED. After you accept in the banner, they follow your choice. The Clarity guide has the details.
Which plans include it?
The Microsoft Clarity integration is included in the Plus plan and above. See the plans.
Why merchants choose Pandectes
Privacy compliance that installs in minutes, keeps your store fast and grows with you.
- 185k+
- stores installed Pandectes
- 3,000+
- five-star reviews
- 17m+
- consents recorded every day
- 35
- privacy laws covered
Loved by Shopify merchants
Built for Shopify, and one of the most installed and highest-rated privacy apps in the Shopify App Store.
Fast at any scale
From a first store to millions of visitors a day, with no slowdown for your shoppers.
Every privacy law
GDPR, CCPA/CPRA, LGPD, PIPEDA, APPI and 30 more, with the right banner for each region.
A global cookie dictionary
Every cookie on your store is matched to our database and categorised for you.
Proof of consent
A downloadable record of every consent, ready if a regulator asks.
Real people, 24/7
Our team answers by chat and email around the clock.
Make your Shopify Store's use of cookies and online tracking compliant today
Try for freeRecent Posts

Website Compliance Under the Louisiana Data Privacy Act
The Louisiana Data Privacy Act takes effect on January 1, 2027. Who it applies to, the consumer rights and opt-outs websites must support, notices, assessments and penalties.

Google's EU User Consent Policy Audit: The 8 Checks and How to Pass Them
Google is auditing consent on sites that advertise in Europe. The 8 issues it flags, how to fix each one on Shopify, and what agencies managing client accounts need to do.

GDPR Cookie Banners: What Your Website Needs to Get Right
What a GDPR-compliant cookie banner needs: valid opt-in consent, equal Accept and Reject buttons, granular choices, consent logs and Google Consent Mode v2, plus the mistakes that draw fines.