Mida works with Microsoft Clarity in two ways:
Send your variants to Clarity. Mida tags each Clarity recording with the test and variant the visitor saw, so you can watch recordings and heatmaps for one variant.
Let the Mida Agent read Clarity. Paste a Clarity API token and the Agent reads how far visitors scroll on each page. It uses that to show which parts of your pages have enough traffic to test.
You can use either one or both. Microsoft Clarity is available on every Mida plan, including Free.
Send your variants to Clarity
Make sure both the Mida tracking script and the Clarity script are installed on the pages you test.
In Mida, go to Integrations, open Microsoft Clarity and turn the Connection switch on.
New experiments have Microsoft Clarity turned on by default. You can check it in the experiment's Configuration step.
Find a variant's recordings in Clarity
Mida sets a Clarity custom tag when a visitor sees a test, and another when they convert:
Custom tag | Value | Means |
|
| The visitor saw the test. |
|
| The visitor converted on one of the test's goals. |
The original shows as Control. Other variants show as their variant ID. For example, mida_pageview_37871_Control is everyone who saw the original of test 37871.
In Clarity, open Recordings or Heatmaps, add a Custom tags filter, pick mida_pageview and choose the value for your test and variant.
Let the Mida Agent read your Clarity data
With a Clarity API token, the Mida Agent reads Clarity's page data and tells you where on your site a test has enough visitors to finish. This is how you find room to run several tests at once.
Connect it
In Clarity, open your project and go to Settings › Data Export › Generate new API token. Only a Clarity project admin can do this. Name the token and copy it.
In Mida, go to Integrations and open Microsoft Clarity. At the top, under Let the Agent read your Clarity data, paste the token and click Connect.
Mida checks the token with Clarity before saving it. The card then shows Connected and how many pages it read.
Connect the Clarity project that tracks the same website as this Mida project. Each Mida project connects one Clarity project.
Ask the Agent where you can test
Open the Agent and ask, for example:
"Where on my site do I have enough traffic to run tests?"
"How many tests can I run on my product pages at once?"
"Can I test the bottom of my homepage?"
The Agent answers with a map of your test surfaces. For each kind of page (homepage, product pages, collection pages and your other busy pages) and each part of it (top, middle and bottom), it shows:
How many visitors reach that part each week.
The smallest lift a two-version test there could detect in 4 weeks. Ask for another length if you like.
Which tests are already running on that page.
Tests on different parts of a page can run at the same time. Each visitor enters each test separately, so tests that change different elements don't skew each other.
The Agent also points out pages where Clarity sees a lot of rage clicks, dead clicks or quick backs, as ideas for what to test.
What Mida reads
Reads | Does not read |
For each page: sessions, bot sessions, average scroll depth, engagement time, rage clicks, dead clicks, quick backs, excessive scrolling, error clicks and script errors. | Recordings, heatmaps, or anything about a single visitor. |
Weekly visitor numbers come from Mida's own tracking. Clarity's sessions are only used when Mida has not recorded any page views yet.
Good to know
Top, middle and bottom are estimates. Clarity gives one average scroll depth per page, not how many people reach each point, so the Agent says "about". Treat the bottom-of-page numbers as rough.
The data can be up to 12 hours old. Clarity shares only the last 3 days and allows 10 data requests per project per day, so Mida reads once and reuses it for 12 hours.
Without Clarity, the Agent still maps your site, but as whole pages only.
Pages with fewer than 20 visitors a week are left out of the map. A rage click or quick back share is only mentioned when the page had at least 30 Clarity sessions.
Your token is stored encrypted and is never shown again.
To stop, click Disconnect on the card. To remove access completely, also delete the token in Clarity under Settings › Data Export.
Troubleshooting
You see | What to do |
"Clarity refused the API token." | The token is wrong or was deleted in Clarity. Make a new one and connect again. |
"Clarity allows 10 data requests per project per day..." | Clarity's limit for today is used up. If it happened while connecting, the token is still saved and the Agent reads Clarity tomorrow. |
"That does not look like a Clarity API token." | Copy the whole token from Clarity. It is one long string with two dots in it. |
The Agent shows whole pages, not top, middle and bottom | Clarity is not connected for this project, or it returned no scroll depth for those pages yet. Check the card on the Integrations page. |



