i have added mspoft clairoty in my site by using gppgle le anitycs intregration otoopn but aftr sconnected ot doesnt show dashbord and ll - Skip to main contentSkip to Ask Learn chat experience
Learn
Sign in
Clarity
Search
Filter by title
Back to Clarity Documentation
About Clarity
Installation Dock
How to sign up for Clarity?
How to install Clarity?
Clarity Content Security Policy
Troubleshooting Installation
Learn Back to Clarity Documentation Installation
Setup Clarity
12/17/2024
Install tracking code
Tip
Want to check out what Clarity is? Try our live Demo.
You need to install the tracking code to start using Clarity on your website. Each website you add to your Clarity account has its unique tracking code to install. You can add the same script to multiple subdomains of your website.
Select a project and go to Settings -> Setup. Learn how to add a project here.
Choose an installation method with which you would like to proceed further.
Choose an installation method.
There are three ways to install Clarity:
Install on a third-party platform
Install manually
Install using NPM
You can also share code with your team member who can help you with the installation.
Note
Clarity shouldn't be used on any websites/apps targeting users under the age of 18 globally.
You can instantly start viewing data in the project as soon as you add the code.
By default, Clarity masks all sensitive content on your site.
Install on a third-party platform
You can install Clarity tracking code on third-party platforms like Shopify, SquareSpace, Wix, WordPress, and more. Refer to the list of supported third-party platforms.
Select View all platforms for a list of supported platforms.
Select view all platforms.
Setup Clarity using any of the listed platforms. Follow the setup instructions on each platform as you select one.
View supported platforms.
If your platform isn't listed, select I don't see my platform to submit a request.
Select I don't see my platform.
Enter the platform name and select Submit. While we'll try to support your platform in the future, you can install the code manually to start using Clarity immediately.
Submit platform request.
Install manually
Note
To set up Clarity, you need access to your website's section.
To manually install, select Get tracking code.
Select get tracking code.
Copy the code and paste it into the section of your website or web app.
Copy tracking code.
Install using NPM
The NPM integration enables you to seamlessly incorporate advanced analytics into your JavaScript projects, offering features like heatmaps, session recordings, and much more. To get started, use the Clarity package available on NPM and follow the provided instructions to add the initialization code to your site. Refer to the NPM documentation to learn more.
Assistant
User
acter code in site how to check clarity wring after how many tym?
Assistant
User
in inspect ot shows - (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", "s1ekx6h7s7");
Assistant
Great! Seeing this snippet in the section of your site’s HTML means that the is installed correctly in your site markup:
Share code with your team member
Choose this method if you like to share the code with a team member who can help you set up Clarity.
Select Share code.
Select share code.
Enter your team member's email ID and select Submit. An email with the tracking code and setup instructions is sent to your teammate.
Enter email ID and select submit.
Verify your Installation
There are two ways to verify if Clarity is installed correctly:
View your Clarity project
Once the script is added, find your project's Recordings and Dashboard data instantly. As soon you add the tracking code, you can view real time data with the number of current live users as shown:
View number of live recordings.
Select Watch now to start viewing the live users.
Check POST requests
See POST requests to https://www.clarity.ms/collect while interacting with your site. Here are the steps to view the request:
Right-click on your website and select Inspect.
Right click and select inspect.
Go to the Network tab and select collect file. You can view the POST request as shown.
Go to network and select collect.
Once you see the data on your project dashboard, explore Heatmaps to see how users interact with your website.
Setup Integrations
Optionally, using this section, you can integrate and manage Google Analytics, and Google Tag Manager.
Google Analytics Integration
Google Analytics integration allows Clarity to link session playbacks with your Google Analytics dashboard.
Select Getting started if you wish to integrate and learn more about Google Analytics integration.
Select getting started in GA integration.
Google Tag Manager Integration
Google Tag Manager integration is automatically detected.
Select Finish setup if you wish to integrate.
Select finish setup on GTM.
If you wish not to integrate, select Sign in with a different account.
Select a GTM account, GTM container from the drop-down, and select Create and publish.
Select create and publish.
Note
Learn more on two other ways to integrate Google Tag Manager.
Advanced Settings
Manage cookies and fraud detection through advanced settings.
Cookies
Clarity uses cookies to gather session data. Toggle the button to turn on cookies.
Cookies in advanced settings.
Recordings won't be linked together into multi-page sessions if this setting is turned off. Learn how to customize the usage of cookies.
Turn off cookies.
Bot Detection
By default, Clarity detects bot traffic and excludes it from total session count and analytics. You can view the number of excluded bot sessions at the top of your dashboard.
Bots excluded in dashboard.
Toggle the button to turn bot detection off or back on again. When bot detection is turned off, Clarity is unable to detect bot traffic and exclude this from your total session count.
Turn on bot detection.
Clarity Compatibility
Clarity works on most sites with little code. It requires some modern browser APIs but should never throw exceptions on older browsers.
Though any site architecture is supported, Clarity can't capture what's inside your website's Canvas or third-party iFrame elements.
FAQ
For answers to common questions, refer to Setup FAQ.
Next steps
Team management
How to mask and unmask content?
How to use Clarity on third-party platforms?
Explore more
Recordings overview
Heatmaps overview
Insights overview
Visit Clarity
Case studies
Demo
Sign in
Blog
Benchmarks
Additional resources
Documentation
Troubleshooting Installation
Learn how to troubleshoot installation.
Sample wording for Clarity Site and Privacy Policy Disclosure
Sample wording for Disclosure on Clarity's Site and Privacy Policy.
It sounds like you’ve integrated Microsoft Clarity with your website using the Google Analytics integration, but the Clarity dashboard does not show any data or recordings after connecting. This is a common issue that can stem from several causes. Here are some steps to troubleshoot and ensure your Clarity installation is working correctly:
Checklist and Troubleshooting Steps:
Verify the Clarity Tracking Code Installation
Ensure the Clarity tracking script is correctly installed on every page you want to track.
The tracking code must be added to the <head> section of your site, not just through the Google Analytics integration.
To verify:
Open your website in a browser.
Right-click and inspect element → go to the Network tab.
Look for requests to https://www.clarity.ms/collect when you refresh or interact with your website.
If no requests are made, then the Clarity tracking is not properly installed.
Google Analytics Integration Does NOT Replace Clarity Script
Linking Clarity with Google Analytics only connects session data and allows cross-platform analytics.
It does not automatically inject or add Clarity’s tracking script to your site.
You still need to add the Clarity code snippet manually or via a plugin, Tag Manager, or platform-specific integration.
Check Your Clarity Project Settings
In the Microsoft Clarity dashboard, ensure you have selected the correct project tied to your website.
Confirm the site URL matches exactly.
Check that bot detection is enabled (or disabled if you want to include all traffic) under Advanced Settings.
Make sure cookies are enabled for Clarity to track sessions.
Allow Time for Data to Appear
Sometimes it takes a few minutes (or longer depending on traffic volume) before data populates the dashboards and recordings start showing.
If your website has low traffic, try simulating some activity.
Verify No Ad Blockers or Privacy Settings Are Blocking Clarity
Some browser extensions or privacy settings can block the Clarity script from loading.
Try visiting your site with ad blockers disabled or in incognito mode.
Using Google Tag Manager?
If you use GTM, confirm the Clarity tag is published and firing on the correct triggers.
Use GTM’s preview/debug mode to verify Clarity scripts load and fire through Tag Manager.
Follow those instructions if the above checks don’t resolve the issue.
Summary:
The most common cause is missing the Clarity tracking code on your site. The Google Analytics integration alone does not deploy the tracking code. You need to:
Copy the Clarity script from your Clarity project Setup page.
Paste it into your site’s <head> section or add via GTM or your platform's integration.
Verify the requests to clarity.ms are firing.
Then, after some time, your dashboard will populate data and recordings.
If you want me to help verify your tracking code or provide exact steps based on your platform (e.g., WordPress, Shopify, custom site), please share more details about your website setup.
You should start seeing live user counts and basic session data within a few minutes of the script loading and user visits.
Recordings and heatmaps may take longer (due to need for more session data).
If you have low or no traffic, consider visiting your site a few times yourself from different devices/browsers to generate data.
Test Traffic to Generate Data:
While you’re on the site, on a different device or in an incognito window visit several pages.
Check back in your Clarity dashboard to see if sessions and live users update.
Summary
Your Clarity script is present and looks correct.
Verify network request to clarity.ms/collect to confirm data sending.
Wait a few minutes and generate traffic (visit pages yourself).
Check Clarity dashboard for live user counts and session data.
If after 15-30 minutes you still don’t see data in the dashboard or no network requests appear, share:
What platform or CMS your site uses (e.g., WordPress, Shopify, custom HTML).
How you added the script (directly, via a plugin, via GTM, etc.).
I can help you troubleshoot further from that information!
If you don’t see any network requests to https://www.clarity.ms/collect in the browser’s Developer Tools, it means the tracking script might not be firing properly despite the snippet being on your page.
Here’s how to troubleshoot this:
Step 1: Verify the Tracking Code Script Loads
In Developer Tools > Network tab, with the filter empty, reload your page.
Search for the script that loads the Clarity tracking snippet itself:
Look for a request to a URL like:
https://www.clarity.ms/tag/s1ekx6h7s7
(s1ekx6h7s7 is your Clarity Project ID from your snippet.)
If you don’t see this request, then the script is blocked or not loading.
Step 2: Check for Errors in Console
Go to Developer Tools > Console tab.
Reload your page and look for any JavaScript errors related to Clarity or any other errors.
Errors here might prevent the Clarity script from loading or running.
Step 3: Check If Script Is Blocked by Browser Extensions or Content Security Policy (CSP)
Disable all ad blockers, privacy blockers, or script blockers temporarily.
Reload your page and check again if the script loads and sends data.
Also, if your website uses strict Content Security Policy, it might block scripts loading from clarity.ms.
Review your site’s CSP headers/settings to ensure https://www.clarity.ms is whitelisted.
Step 4: Verify Proper Placement of the Script
Ensure the whole snippet appears exactly in the <head> section of your HTML document.
It should be early in the <head> (before any blocking code).
If you just see the snippet code as text and NOT actually run (no request loading the tag script), maybe it’s incorrectly added as plain text or commented out.
Step 5: Test in Incognito and Different Browsers
Sometimes browser cache or extensions interfere.
Try opening your site in incognito/private mode.
Try a different browser.
Check Network tab again for requests to Clarity.
Step 6: Manual JavaScript Test
In the browser Console tab, try running:
clarity("set", "test", 1);
If this returns an error like clarity is not defined, it means the script isn’t loaded yet.
If no error, then the script is loaded and working.
Summary: What It Means If No Request to clarity.ms/collect
The Clarity script isn’t loading/firing properly on your site.
Causes can be:
Script blocked by ad blockers or CSP.
Script placed incorrectly in HTML.
Script loading errors.
JavaScript conflicts or errors on your page preventing execution.
If you want, post here:
How and where you added the Clarity snippet exactly.
Your site platform (WordPress, Shopify, custom).
Any error messages you see in console.
I’ll guide you on how to fix it so data starts flowing!
No worries—let me guide you step-by-step on how to check if Microsoft Clarity is working properly, even if you're new to using the browser's developer tools.
Step 1: Open Developer Tools and Check the Console
Open your website in Google Chrome (or another modern browser).
Press F12 on your keyboard or right-click anywhere on the page and select Inspect.
A panel will open (the Developer Tools).
At the top of this panel, click on the Console tab.
Watch if any error messages appear automatically. If the console is clear or only shows warnings unrelated to Clarity, that's usually good.
Step 2: Check for Clarity Network Requests
While still in Developer Tools, click on the Network tab (next to Console).
Reload your webpage (press F5 or click the reload button).
In the Network tab’s filter/search bar (usually near the top), type:
If you see a request to https://www.clarity.ms/tag/xxxxx.js (where xxxxx is your project ID), it means the tracking script is loading.
If you also see requests to https://www.clarity.ms/collect after interacting with the page, then data is being sent to Clarity.
Step 3: Manual Test in Console (Optional)
While still in the Console tab, type or copy-paste this and press Enter:
typeof clarity
If it returns "function", that means the Clarity script is loaded.
If it returns "undefined", then the script is not loaded.
Step 4: Troubleshooting if You Don’t See Requests or Script
Ad blockers or privacy extensions: Disable any adblock or privacy/privacy protector extensions temporarily and reload your site.
Check placement of tracking script: Make sure you pasted the full Clarity script snippet into your website’s <head> exactly, and it isn’t commented out or placed outside the <head>.
Platform-specific methods: If you’re using WordPress, Shopify, Wix, or any CMS, check if there’s a plugin or apps section specifically for Microsoft Clarity where you can add your project ID.
Clear cache: Sometimes caching plugins on your website or your browser cache might prevent loading new scripts. Clear the cache and hard reload.
Quick Recap:
What to check
How to check
Outcome/Action
Clarity script loading
Network tab → look for clarity.ms/tag
If missing, script not loading
Data being sent
Network tab → look for clarity.ms/collect
If missing, no data sent yet
Console errors
Console tab → look for errors
Fix errors that block scripts
Clarity object present
typeof clarity in Console
If undefined, script not loaded
Ad Blockers or CSP
Disable ad blockers temporarily
Reload and recheck network tab
Script placement
In your site’s HTML <head>
Must be exactly as provided to you
If you want, share your website URL here, or describe how you have added the Clarity code, and I can help you check it directly. Also, if you want, I can provide tailored instructions for your specific website platform (WordPress, Wix, etc.).