Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Microsoft Clarity missing or wrong project ID: find and fix it

TRK-239Low impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Microsoft Clarity is a free tool that records visitor sessions and builds heatmaps. Each Clarity project has a project ID, a short string of letters and numbers (for example abcd1234ef). The tracking script contains that ID. If the script is absent, or the ID is wrong, Clarity cannot link visits to your project.

Why it costs you leads or sales

Clarity does not change how your site works, so the direct impact is low. The cost is blind spots. You cannot see where people give up on a form, which button they miss, or where rage clicks happen. You may also make design decisions from a wrong or partial sample. With a wrong ID, you could even mix another site's visitors into your analysis.

Where the data goes missing
  1. Visitor landsPage loads normally
  2. Clarity script runsMissing, or ID is wrong
  3. Session recordedNothing sent to your project
  4. Heatmaps and insightsEmpty or misleading

With a wrong ID, the visit happens but nothing reaches your Clarity project.

How to check if your site has it

Check your Clarity install
  1. Get the right ID

    In Clarity, open your project, then Settings, then Overview. Copy the Project ID.

  2. Check the page source

    Open your live site, right-click, choose View page source, and search for clarity.ms. Compare the ID in the script with the one from Settings.

  3. Check the network request

    Open browser DevTools, Network tab, reload, and filter for clarity. You should see a request to clarity.ms/tag/ followed by your ID, and later collect requests.

  4. Check Clarity itself

    In Settings, Setup, Clarity shows whether it is receiving data. Recordings can take a short while to appear, so allow some time after your test visit.

  5. Test every page type

    Check the home page, a landing page, the form page and the thank-you page. Some builders and templates only add scripts to certain pages.

How to fix it

Install Clarity in one place only. Running it from both the theme and Google Tag Manager can cause duplicate or conflicting setups. This is the standard Clarity snippet; replace YOUR_PROJECT_ID with your own ID.

Clarity tracking snippethtml
<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_PROJECT_ID");
</script>
Fix by platform
  1. Use the official plugin or a header tool

    Clarity offers a WordPress plugin. In Clarity go to Settings, Setup, and follow the WordPress option, or paste the snippet into the head with a header-and-footer plugin.

  2. Replace the old ID

    If a plugin or theme option already holds an ID, correct it there and remove any duplicate copy of the snippet in the theme files.

  3. Clear caches

    Purge your caching plugin and CDN so the live page serves the new code.

How to confirm it's fixed

Confirm the fix
  • The page source contains your exact project ID, once
  • The Network tab shows a request to clarity.ms/tag/ with that ID
  • A test visit appears under Recordings in the right project
  • Heatmaps start to populate for key pages
  • Staging and other client sites use their own IDs
  • Every page type, including thank-you pages, loads the script

How to prevent it happening again

Prevention habits
  • Keep a record of each site's Clarity project ID
  • Install Clarity in one place only
  • Recheck the script after theme changes, migrations and redesigns
  • Use separate projects for staging and live
  • Name Clarity projects clearly so agency clients are not mixed up
  • Glance at Clarity weekly: a sudden drop to zero sessions is a warning sign

How FunnelGuard handles this

FunnelGuard does not check this yet. Verifying a Clarity project ID is a possible future check, not a current feature.

What FunnelGuard does cover nearby: a robot visitor runs your real journeys, such as lead forms and checkouts, on a schedule, and checks each step, the tracking hits sent to ad and analytics platforms like GA4, Google Ads and Meta, and whether test leads reach your inbox and CRM. That protects the funnel itself, but it will not tell you that Clarity has the wrong ID.

Questions people ask

Why is Microsoft Clarity not recording my site?

The most common reasons are that the script is not on the page, the project ID is wrong, or a consent tool or ad blocker is stopping it. View the page source, search for clarity.ms and compare the ID with the one in Clarity under Settings, Overview.

How do I find my Microsoft Clarity project ID?

Open your project in Clarity, go to Settings, then Overview. The Project ID is shown there. It is also the last part of the script line that loads clarity.ms/tag/.

Can I use the same Clarity project ID on several websites?

You can, but the data will be mixed into one project, which makes analysis confusing. Create a separate project per site, and per environment if you test on staging.

How long does it take for Clarity data to show up?

Recordings and heatmaps are not always instant after installation. Allow some time after a test visit. If nothing appears after a reasonable wait, recheck the ID and the Network request.

Does a wrong Clarity ID affect my ad tracking or conversions?

No. Clarity is separate from GA4, Google Ads and Meta tracking. A wrong ID only affects your Clarity recordings and heatmaps, though a broken script setup can hint at wider tag problems.

Should I install Clarity through Google Tag Manager or directly?

Either works. Pick one and do not use both, because double installs can cause confusion. Tag Manager makes it easier to tie Clarity to consent rules.

Does FunnelGuard check my Clarity project ID?

Not yet. It is a possible future check. FunnelGuard currently monitors funnel steps, ad and analytics tracking hits and test lead delivery, so check Clarity manually in the meantime.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.