Heatmap Tracker Installer

Generate tracking snippets for free heatmap providers (like Microsoft Clarity) and get exact instructions to install them on Webflow, Framer, Squarespace, or static HTML.

Find this in your Clarity project settings.

FreeNo signupRuns in your browserPlatform & Speed Diagnostics

Short answer

How do I add a heatmap tracker to a Webflow, Framer or Squarespace site?

To add a heatmap, paste the provider's tracking script into the head of your pages. This tool builds the Microsoft Clarity or Hotjar snippet from your project ID, shows where to paste it in Webflow, Framer, Squarespace or exported static HTML, and copies it to your clipboard.

About the Heatmap Tracker Installer Guide

Generate a Microsoft Clarity or Hotjar tracking snippet from your project ID and see where to paste it on Webflow, Framer, Squarespace or an exported static site.

Common uses

  • Adding heatmaps to a self-hosted site
  • Switching analytics after leaving a no-code builder
  • Installing tracking on static HTML

How the Heatmap Tracker Installer Guide works

You choose a provider, a platform and type your project or site ID. The ID is the only thing the tool needs. When you press Generate, it shows a script block with your ID filled in, and a four-step install guide for the platform you chose. Nothing is sent anywhere, and the snippet is built in your browser.

The Clarity snippet defines a small function and loads a script from the Clarity tag address, with your project ID at the end. The Hotjar snippet sets a settings object with your site ID and version 6, then loads the Hotjar script asynchronously. In both cases the loader adds the file to the page with the async setting.

The platform choice only changes the instructions. Webflow points to the Head Code box in Project Settings, Squarespace to Code Injection and Framer to a custom code area. For exported static sites you paste the script before the closing head tag of every page. The tool does not check that your ID exists, and it does not verify installation afterwards.

How to use it

  1. 1

    Choose Microsoft Clarity or Hotjar.

  2. 2

    Copy the tracking snippet from the guide.

  3. 3

    Paste it into the head of your exported pages.

Reading the results

ResultWhat it meansWhat to do next
Snippet blockThe tracking script with your ID inserted.Copy it and paste it once per site, in the head.
Install steps for your platformFour steps matched to Webflow, Framer, Squarespace or static HTML.Follow them, then publish the site.
Alert asking for an IDThe ID field was empty.Copy the ID from your Clarity or Hotjar project settings.
Copied to clipboard messageThe snippet is on your clipboard.Paste it right away. Do not edit the ID.
No data in the provider dashboardThe script is missing, the ID is wrong or the site was not published.Open the live page, view source and look for the script.

Worked example

A Clarity snippet in an exported HTML page. You export a site and add the generated Clarity snippet before the closing head tag of index.html. The ID is a placeholder here.

index.html

<head>
  <meta charset="utf-8">
  <title>Home</title>
  <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>
</head>

Replace YOUR_PROJECT_ID with your real ID. After you deploy, load the page and check that the Clarity dashboard shows a recording within a short time.

Common mistakes and best practices

  • Pasting the snippet twice. A duplicate script can double-count sessions or cause errors.
  • Typing extra characters in the ID field. The ID is placed straight into the script, so use only the ID itself.
  • Forgetting to publish. In a builder, code added in settings only runs on the published site.
  • Skipping consent. Session recording tools can need a cookie banner or consent under privacy laws such as GDPR, depending on where visitors are.
  • Adding the script to an exported site but not to every page. The head of each HTML file needs it, unless you use a shared layout.

What the Heatmap Tracker Installer Guide cannot do

  • It supports two providers, Microsoft Clarity and Hotjar. Other tools are not offered.
  • It does not validate your ID or confirm that the script is installed.
  • The platform menu names can change over time. The steps follow the builder's help pages, which may differ.

Frequently asked questions

Where do I paste the tracking script?

In the head of each HTML page, or in a shared include if your host supports one. The guide shows the exact placement.

Do I need a cookie banner?

Heatmap tools can set cookies or collect behavior data, so check the rules for your visitors and add consent where needed.

Is this tool free?

Yes. Every tool on WebExport is free to use in your browser, with no signup.

Do you store the URLs or data I enter?

Inputs are used to run the check and return the result. Avoid entering private or sensitive URLs and data.

Is Microsoft Clarity really free?

Microsoft's documentation says Clarity is a free service with no obligation to upgrade. Terms can change, so read the current ones on the Clarity site. Hotjar has a free plan with limits and paid plans above it.

Where do I put a tracking script in HTML?

Put it in the head element so it loads early. Load it with the async attribute so it does not block the page while it downloads. Both snippets generated here already load their script that way.

Does a heatmap slow my site down?

It adds a request and some JavaScript work. Both snippets load asynchronously, so they should not block rendering, but test your page speed with and without the script before you decide to keep it.

How long until heatmap data appears?

Recordings and basic data can show up soon after the script runs on the live site. Clarity says data appears as soon as the code is added. Heatmaps need enough visits per page to be useful.

Do heatmaps need a cookie banner?

Often, yes. Session recording and heatmap tools set cookies or identifiers, and laws such as GDPR can require consent before they run. Ask your legal adviser which rules apply to your visitors.

Sources and further reading

Last reviewed:

Want the site as code, not just a report?

WebExport saves the full site (HTML, CSS, JavaScript, CMS content and assets) as a ZIP you own and can host anywhere.