Cornerstone Pillar GuideNo-Code Data Connectors & Sheets Sync5 min read

How to Archive Microsoft Clarity API Data Beyond the 3-Day Limit & Blend It With GA4

By KPIRelay Data Engineering Team · Connector & Historical Vault Engineering · Voltryn Technologies LLC
Published 2026-11-26 · Updated 2026-11-30
Quick Answer · Verified Summary

Microsoft Clarity's official Data Export API only returns the most recent 1 to 3 days of data (numOfDays <= 3) and limits daily API calls per project. When blended naively with 30-day GA4 or Google Ads queries, legacy connectors either error out or blank the table. KPIRelay snapshots Clarity hourly into a PostgreSQL Historical Vault and fault-isolates partial windows so 30-day dashboards never break.

✓ Verified against Microsoft Clarity Data Export API v1 limits

Understanding Clarity's 3-Day API Export Cap

Microsoft Clarity provides invaluable qualitative UX signals—dead clicks, rage clicks, quick-back taps, scroll depth, and JavaScript script errors—completely free. However, its programmatic Data Export API enforces two strict constraints:

  1. A maximum lookback window of 1 to 3 days per API request.
  2. A strict daily request quota per Clarity project token.

If you query a live pass-through connector for a 14-day or 30-day report without a database vault, Clarity's 3-day ceiling either truncates your entire blended report or leaves historical weeks permanently unrecoverable.

Fault-Isolated Blending With 30-Day GA4 & Ads

Scenario Pass-Through Connector Behavior KPIRelay Historical SQL Vault
30-day blended query Fails or blanks 27 days of rows Serves full 30d Ads/GA4 + archived Clarity history with clear window notice
Session counting Often sums Clarity + GA4 sessions together Uses GA4 for canonical visit counts; isolates Clarity to UX friction metrics
Missing fields (e.g., Clarity spend) Outputs raw null or NaN Labels inapplicable cells explicitly: Not reported by Microsoft Clarity

Key Clarity Friction Signals Worth Archiving

When paired with paid landing-page spend, two Clarity metrics consistently uncover fast conversion wins:

  1. Dead Clicks on mobile booking steps: Taps on non-interactive headers, service cards, or slow date pickers where mobile guests expect a button.
  2. Rage Clicks on submit buttons: Repeated taps caused by validation errors scrolled off-screen on 360px–390px mobile viewports.

Connect & Apply This Workflow

Frequently Asked Questions

Does KPIRelay add Microsoft Clarity sessions to my GA4 website visits total?

No. Because GA4 and Clarity run on the same website pages, summing both would double-count visitors. KPIRelay uses GA4 for website visit and engagement totals while surfacing Clarity dead clicks, rage clicks, and scroll depth alongside them.

How do I connect a Microsoft Clarity project token?

In Microsoft Clarity, open Settings → Data Export → Generate new API token, then paste it into KPIRelay under Connected Apps → Microsoft Clarity. KPIRelay encrypts the token at rest with AES-256-GCM.

NO CREDIT CARD REQUIRED · SELF-SERVICE SETUP

Stop Losing Clarity UX History After 72 Hours

Archive Clarity dead/rage clicks automatically in SQL alongside GA4 and paid ad spend.

Enable Historical Vault Free →

More Practical Analytics Guides