pex

Microsoft Clarity

The Microsoft Clarity connector imports user behavior data — session recordings, heatmap insights, rage clicks, and dead clicks. Unlike other connectors, Clarity uses an API key rather than OAuth and provides qualitative behavior data that complements quantitative metrics.

Authentication

Clarity uses API key authentication via the Data Export API.

Get your Clarity API token

In your Microsoft Clarity project, go to Settings > Data Export API and generate an API token.

Enter the token in Apex

On the Sensors page, find the Microsoft Clarity card, click Connect, and paste your API token.

Verify the connection

Apex validates the token format and confirms connectivity on the first sync.

Info

Clarity's Data Export API has a rate limit of 10 requests per day per project. Apex schedules syncs accordingly and caches results between syncs.

Data Synced

Each sync pulls live insights from the last 3 days:

MetricDescription
SessionsTotal session count across devices
UsersDistinct user count
Rage clicksClicks where a user rapidly clicked the same area (frustration signal)
Dead clicksClicks on elements that didn't respond (broken UI signal)
Script errorsJavaScript errors captured during sessions
Traffic by deviceSession breakdown by device type
UX by URLEngagement metrics broken down by page URL

How Apex Uses This Data

  • Frustration detection — Rage clicks and dead clicks highlight UX problems that may be hurting your experiment results
  • Experiment debugging — If a variant is underperforming, Clarity data can reveal why — users might be confused by new UI elements
  • Session context — Understand how users actually interact with your pages, beyond click and conversion counts
  • Quality signals — Script errors and dead clicks feed into overall site health monitoring

Tip

Pair Clarity's qualitative data with your experiment results for a complete picture. A variant might have higher conversion but also higher rage clicks — which could indicate a dark pattern rather than genuine improvement.

Configuration

ParameterTypeDescription
api_keyrequiredstringMicrosoft Clarity Data Export API token. Generated in Clarity Settings > Data Export API.

Differences from Other Connectors

FeatureClarityOther Connectors
Auth methodAPI keyOAuth 2.0
Data typeQualitative (behavior)Quantitative (metrics)
Refresh cycle3-day rolling windowConfigurable date range
Rate limit10 requests/dayVaries by platform

Troubleshooting

IssueCauseFix
"Invalid token"Token is too short or malformedRegenerate the token in Clarity Settings
All metrics show 0Clarity tracking code not installedAdd the Clarity JavaScript snippet to your website
Sync fails silentlyAPI rate limit exceededWait until the next day — the 10/day limit resets at midnight UTC

Next Steps