Most e-commerce analytics platforms tell you what happened on your Shopify store—how many visitors arrived, which pages had high bounce rates, and which products were viewed.
What they don’t tell you is why visitors abandoned their carts or where they got frustrated.
Microsoft Clarity solves this problem completely:
- 100% free with zero traffic limits or sample caps.
- High-fidelity session recordings showing exact mouse movements, taps, and scrolls.
- Dynamic heatmaps on desktop and mobile.
- Automated detection of rage clicks, dead clicks, and excessive scrolling.
- Full GDPR / CCPA compliance with sensitive payment fields masked by default.
Here is the exact step-by-step process to install Microsoft Clarity on your Shopify store cleanly without degrading page speed or Core Web Vitals.
Step 1: Create a Microsoft Clarity Project
- Visit clarity.microsoft.com and sign in with your Google, Microsoft, or Facebook account.
- Click Add new project.
- Enter your project details:
- Name: Your brand name (e.g., Noukai Tokyo Storefront).
- Website URL: Your store’s primary domain (e.g.,
https://yourbrand.com).
- Click Add new project.
Clarity will display your unique Tracking Code snippet containing your Project ID:
<script type="text/javascript">
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "YOUR_CLARITY_PROJECT_ID");
</script>
Step 2: Adding Clarity to Shopify (The Clean Theme Method)
While there are third-party apps in the Shopify App Store, installing the script natively in your theme code is faster, reduces app clutter, and ensures zero extra JavaScript overhead.
- In your Shopify Admin, navigate to Online Store → Themes.
- On your current live theme, click the three dots (
...) next to Customize → click Edit code. - In the left file tree under Layout, click
theme.liquid. - Locate the closing
</head>tag (you can pressCmd+ForCtrl+Fto search). - Paste your Microsoft Clarity tracking snippet just before the
</head>tag. - Click Save in the top right corner.
Why before
</head>? Clarity’s script executes asynchronously (t.async=1;). It will not block HTML parsing, CSS rendering, or initial page paint, but placing it in the head ensures it captures early user actions even if someone bounces quickly.
Step 3: Installing on the Order Status / Thank You Page
To track conversion journeys through post-purchase:
- Navigate to Shopify Admin → Settings → Customer events (or Checkout for older themes).
- Under Additional scripts (or via a custom Web Pixel):
- Paste the same Clarity snippet.
- Click Save.
Note: Due to Shopify’s checkout sandboxing on non-Plus plans, third-party analytics scripts run in restricted contexts on /checkout, but full session capture functions seamlessly across all catalog, product, cart, and post-purchase pages.
Step 4: Verify Installation & Real-Time Data
- Open a new incognito window or your mobile phone.
- Visit your Shopify store and click through a few products and add an item to the cart.
- Return to the Microsoft Clarity dashboard and navigate to the Dashboard tab.
- Look for the “Recordings” or “Live” indicator. Within 2 to 5 minutes, you should see your initial session appear.
Key Metrics to Monitor in Clarity
Once traffic flows into your dashboard, focus on these high-leverage insights:
1. Rage Clicks
A customer repeatedly clicking on an element within a fraction of a second. This usually signals a broken button, an unlinked banner, or a slow Add-to-Cart trigger.
2. Dead Clicks
Users clicking on an element expecting something to happen (e.g., an unclickable product image or stylized text that looks like a link).
3. Scroll Depth Drop-Off
Understand where 50% of your visitors stop scrolling on mobile product pages. If your primary review widget or value props are below the fold where only 10% scroll, move them up.
Performance Impact on Core Web Vitals
Unlike heavy legacy tracking tools, Microsoft Clarity is designed with performance in mind:
- Zero Layout Shift (CLS: 0.00): It operates purely in memory without injecting visual elements.
- Minimal Main-Thread Impact: Script execution is throttled and offloaded during idle browser frames.
- Asynchronous Loading: Does not delay First Contentful Paint (FCP) or Largest Contentful Paint (LCP).
Summary
In less than 5 minutes, Microsoft Clarity provides an enterprise-grade behavioral analytics suite that would otherwise cost hundreds of dollars a month on Hotjar or Lucky Orange.
Need an expert CRO audit of your Shopify store or want to eliminate friction in your checkout flow? Schedule a consultation with Klickspell and let’s turn your traffic into conversions.