How to export your data from Microsoft Clarity

Clarity's documented export path covers dashboard metrics for short windows and a limited number of rows, not full session history. This guide shows what you can take out, what you cannot, and how to plan a clean exit.

On this page

How to export your data from Microsoft Clarity before you switch tools

If you are moving off Microsoft Clarity because of a renewal, a consent problem, or a residency review, plan on keeping a small slice of history, not the full record. Clarity's Data Export API returns dashboard metrics for the last 1 to 3 days, with a limit of 10 calls a day and 1,000 rows per call, and recordings expire after 30 days unless you favorite them. Full history rarely survives a move, so the export plan has to start before the switch date, not after it.

Dashboard metrics are the part you can pull programmatically, but only in short windows, so a long trend line has to be assembled by exporting a little each day over a long period. Favorited recordings are the other piece you can keep, and they should be identified and saved before any cutover. Everything older than the 30-day window that you did not favorite should be treated as lost. Confirm with Microsoft's current Clarity documentation exactly which fields, segments and recording formats the API and the dashboard expose, because the available data changes over time.

The rest of this page sets out the sequence: what to export and in what order, how to record the export for your own compliance files, and what to ask your new vendor and your legal team to confirm before you turn Clarity off. The main planning risk is time. Because the API limits are tight, a team that waits until the contract ends may have little usable data to carry forward, so start the export work as soon as the switch decision is made.

What you can export from Clarity and the limits that apply

This table compares each type of Clarity data with the route you can use to take it out and the limits on that route. Read it as a planning list: the API window and call caps decide how often you must pull data, and recordings expire on a fixed schedule. Confirm the current format and field list in Clarity's own documentation and in your account before you build a script.

Data typeHow to get it outLimits to plan around
Dashboard metrics via Data Export APIScheduled API calls that return dashboard metricsLast 1 to 3 days per query, 10 calls a day, 1,000 rows per call
Dashboard metrics older than 3 daysNo API route inside the supplied windowPull daily so each day is captured before it leaves the API window
Session recordingsPlayback in the Clarity dashboard, favorites for keepingExpire after 30 days unless favorited, so save key sessions early
HeatmapsDashboard view per pageConfirm in Clarity's documentation whether heatmap data can be exported at all
Traffic from EEA, UK and Swiss visitorsCollected only where a valid consent signal is presentRecords without consent may be missing, and export cannot restore them
Your exported copiesYour own storage after each pullKeep a timestamp and source label so each file can be traced later
Field names and file formatClarity documentation and your account settingsConfirm both before building a parser, since they can change

Why session recordings and older history do not leave Clarity

Clarity's export paths cover a narrow slice of what you see in the interface. Recordings expire, the API reaches back only a short window, and heatmaps and funnels live as interface state rather than as data you can reload. Each card names one gap, a workaround your team can run now, and the check that shows it is working.

Recordings expire without favorites

Clarity keeps session recordings for a fixed period unless you favorite them, and recordings are not offered as a bulk download. Favoriting is the only way to keep a specific session inside Clarity. Before a release, a migration or a quarterly review, favorite each session that shows a defect or a conversion problem before its window closes. Write each one into a log with the session date, the page URL, the issue and the ticket number. Check favorite status a few days before the cutoff, because a session you did not favorite cannot be recovered afterward.

Default recording retention
30 days

The API reaches back only briefly

The Data Export API returns dashboard metrics from a short recent window and limits how many calls you can make each day. Anything older than that window must be pulled while it is still in range, or it is gone. Schedule one pull per day, store the raw response with its pull date, and keep the request parameters beside each file so a later reader knows which dimensions and filters produced it. Confirm the current window and quota in Clarity's documentation before you design the job.

Metric window per call
1 to 3 days
Daily call limit
10 calls

Heatmaps and funnels are not exported

Heatmap views and funnel definitions are configured in the Clarity interface and are not exported as data sets you can reload elsewhere. Heatmaps are aggregates over sessions the platform still holds, so an older heatmap cannot be rebuilt after its recordings expire. Save a dated screenshot of each heatmap with its page, device and date range, and write each funnel's steps and filters into a text file under version control. Confirm with Clarity's documentation which funnel fields the API returns before assuming any definition can be restored.

Row caps truncate large exports

Each export call returns a fixed maximum number of rows, so a page-level or URL-level report with many entries comes back incomplete unless you split it. Split the request by date and by dimension, and paginate where the API supports it. Compare the row count you received with the total shown in the interface for the same range. A file that stops at the cap looks complete, which is why this check matters for every dated record you keep.

Rows per export call
1,000 rows

Long-term trends need your own archive

Clarity does not give you a long-term trend history that you can carry into another tool, so any trend older than your export job exists only if you saved it. A new platform cannot backfill metrics it never received. Start the archive before you plan a switch. Store one row per day per metric in a table your team controls, with the export date and the Clarity project identifier. Review the table monthly for gaps caused by failed or skipped jobs, and document the start date so future readers know where the history begins.

Why history rarely survives a switch to another analytics tool

Plan on a clean start in the new tool. Clarity recordings are hosted in Clarity, expire after 30 days unless you favorite them, and are not designed to be loaded into another product as event data. A favorited recording still plays back only inside Clarity, so the replay itself does not move with you. Before you decommission the tag, list the favorited sessions you still need, note their dates and the pages they cover, and write down what each one showed. Confirm with Clarity's current documentation whether any recording export format exists, and do not assume one.

Metrics fare no better. The Data Export API returns dashboard metrics for the last 1 to 3 days, within 10 calls a day and 1,000 rows per request, so the output is aggregated report data, not individual sessions, page views or clicks. A new analytics tool stores raw events with timestamps, identifiers and properties, and it builds funnels, paths and segments from those events. Aggregated rows cannot be turned back into that event model. The same limit appears in other migrations: Matomo's Google Analytics import documentation explains that imported aggregated data does not support features that depend on raw events. Treat exported Clarity figures as an archive for reference.

The practical consequence is that the new tool starts counting on the day its tracking begins. Definitions also differ between products. Session length, bounce, unique visitors and sessions may be calculated differently, so a trend line that spans the switch will mislead. Run the new tag alongside Clarity for a fixed overlap period, document how each metric is defined in both tools, and label the switch date in every dashboard. Consent matters here too: for EEA, UK and Swiss visitors, the share of sessions the new tool can record depends on your consent setup, so the overlap will show a different volume. Ask any vendor or implementation partner in writing whether they import Clarity data at all, and what they would cover.

Sequence for a complete export from Clarity

This sequence turns Clarity's short-lived data into files you control before access ends. Each step has a named owner and a check that confirms it is finished, so the archive can be trusted when you compare it with the dashboard or hand it to a new tool.

  1. Inventory dashboards and filters you rely on

    Start by listing every Clarity dashboard, segment and filter your analysts use each week, along with the question each one answers. Ask the product, marketing and support owners to confirm the list, because the export only covers what you request. Record the project, date ranges and filter settings in a shared sheet so someone else could reproduce them. The step is done when every dashboard has an owner, a stated purpose and documented settings.

  2. Favorite recordings before the 30-day expiry

    Review the recordings that matter for support cases, funnel investigations and design decisions, and favorite each one in Clarity. Assign one person to own this review, because recordings that are not favorited expire after 30 days. Note each favorited session's ID and date in your inventory so you can confirm later which sessions you kept. The step is done when the inventory lists every favorited session with its ID, date and the reason it was kept.

  3. Schedule API pulls within the limits

    The Data Export API returns dashboard metrics for the last 1 to 3 days, allows 10 calls a day and returns up to 1,000 rows per call. Plan your pulls so each request stays inside those limits, and overlap windows by a day so you can detect gaps. Schedule the pulls with cron or your existing job scheduler, and log each call with its time, status and row count. The step is done when the log shows an entry for every planned pull and no call was lost to a limit.

  4. Store raw exports with dates and parameters

    Save each API response exactly as returned, without editing, into storage that your organization controls. Name each file with the pull date, metric, dimensions, filters and time window, and keep the request parameters in a manifest file beside it. Restrict write access and turn on access logging for the archive location. The step is done when a colleague can identify and reproduce any file from its name and manifest alone.

  5. Verify each file against the dashboard

    For each file, open Clarity's dashboard for the same window and compare the row count and headline totals, such as sessions or page views. Accept small differences only where the dashboard shows rounding or other display adjustments, and note them. If the totals diverge further, rerun the pull and compare again before you accept the file. The step is done when every file has a comparison record with the dashboard figures, the date checked and the reviewer's initials.

  6. Document what the export cannot carry

    The API covers dashboard metrics, not session recordings, and recordings that expired before you favorited them cannot be recovered. List every metric, filter, date range and recording category that is missing from the archive, along with the reason. Share the gap list with the teams that depend on this history before you plan the switch. The step is done when the analytics owner has reviewed and signed off the gap list.

How the export paths fit together

The diagram starts in Clarity's Microsoft-hosted service, with two sources: dashboard metrics reached through the Data Export API and recordings you have favorited. The API covers only the last 1 to 3 days of dashboard metrics and is capped by a daily call limit and a row limit, so plan batched pulls on a schedule. Unfavorited recordings expire after 30 days, so save favorites to storage you control before they age out. Everything then crosses the trust boundary into your own storage, where verification checks completeness before anything loads into the new tool.

Export paths from Clarity into storage you control, then verification and the new tool.

What to plan before the Clarity exit or consent change

Each item below is a decision you can put on a calendar with a named owner. Together they set the order of work: export first, decide what to keep, change consent and tag setup, then update privacy notices and confirm the export is complete. Working through them in this order keeps data from expiring before it is saved.

Export calendar

Set the export dates before any consent change or tag removal. The Data Export API returns dashboard metrics for the last 1 to 3 days and is limited to 10 calls a day with 1,000 rows per call. Plan repeated pulls on fixed days so the metric history covers the whole period you need. Record each pull date, the date range and the file location in a shared log.

Recording retention decisions

Recordings expire after 30 days unless you favorite them, so the window is short. Decide which sessions need to be kept, such as those tied to an open support case, a bug investigation or a usability study. Favorite those recordings before their 30 day window closes, and write down the reason and the period each one must be kept for.

Consent and tag removal timing

Clarity requires a valid consent signal for EEA, UK and Swiss visitors since October 31, 2025, or it limits collection. Confirm with your consent manager how the Clarity tag is gated and when it will stop loading for these visitors. Test the change in a staging environment, then remove the tag only after the export is confirmed complete.

Privacy notice updates

Your privacy notice should name the tools that collect session data, the purposes, the retention periods and the regions covered. Update the notice to reflect Clarity's removal and any replacement, such as self-hosted OpenReplay or PostHog. Publish the revised notice before the new tool records any visitor sessions, and have legal or privacy counsel review the wording for each market you operate in.

Inventory of data to preserve

List every artifact you need to keep: exported metric files, favorited recordings, dashboard screenshots, custom segments and the names of any events or tags used in reports. Check which items the export covers and which must be saved by hand. Store them in a location you control, with access limited to the people who need them and a note on the retention period for each set.

Sign-off owner for the export

Name one owner who confirms the export is complete. That person checks the export log against the inventory, confirms that favorited recordings are saved and signs off before the tag is removed or the Clarity project is closed. Keep the signed checklist with the privacy records, so anyone reviewing the change later can see who approved it and when.

Questions buyers ask before exporting Clarity data

How much effort does a full Clarity export take?

A full export takes as much effort as the data you need to keep, and the API limits set the scope. Clarity's Data Export API returns dashboard metrics for only the last 1 to 3 days, with 10 calls a day and 1,000 rows, so older history cannot be pulled through it. Recordings expire after 30 days unless someone favorites them, and favorites must be handled one by one. The main drivers are the number of dashboards and segments you report on, the row volume you need to fetch, how many favorited recordings you want to keep, and whether you write a scheduled script or pull data by hand. Most of the effort sits in deciding what to keep and in repeatable collection, not in the download itself.

Can our team export Clarity data in-house?

Yes, many teams can handle a basic export in-house if they have a developer who can work with an API and someone who owns the analytics questions. The technical skills are API authentication, writing a scheduled job that stays within the 10 calls a day limit, storing output in a format you can query later, and saving favorited recordings. The business skills matter just as much: someone has to decide which dashboards, segments and periods count as history, and who signs off on what gets kept. Small teams with few dashboards often finish in-house. Teams with many sites, long retention needs or a planned platform switch often bring in help for the scripting and archive design. Confirm your own API access and token setup before you commit staff time.

What do security and privacy teams need to review?

Security and privacy teams should review the export before anyone runs it, because the output may contain personal data. Confirm which fields appear in the exported files, since URLs and other identifiers can be included, and check whether recordings captured any input or content that masking did not cover. Ask who can reach the export files, where they are stored, how long copies live and how they are deleted. Consent also matters: Clarity needs a valid consent signal for EEA, UK and Swiss visitors since October 31, 2025. Ask counsel how that applies to data collected earlier and how the archive should be handled. Log who ran each export and keep the archive under the same access controls as other personal data.

How far ahead should we start planning the export window?

Start planning before you turn off Clarity, because the windows are short. Dashboard metrics cover only the last 1 to 3 days through the API, and recordings disappear after 30 days unless favorited, so anything you have not captured by the switch date may be gone. Work backward from the date you plan to stop running the tag. List the dashboards, segments and recordings to keep, agree owners and a storage location, script the collection and run a test pull, then schedule recurring pulls until cutover. Exact durations depend on your volume and internal approvals, so confirm them with the people who will run the work and with any partner you engage.

Will exported Clarity history survive a switch to another tool?

Usually not in a form you can reuse directly. The export gives you a partial record, and the API limits mean there will be gaps between what you saw in the dashboard and what you can take out. Recordings should not be expected to import into another tool as historical data. Plan for a clean baseline in the new tool, keep an archive of exported metrics and favorited recordings for reference, and record the date of each export so later comparisons stay honest. Before you assume any history will load, ask the vendor of your target tool which import paths it supports and what those imports cover.

Do we need an outside partner for the export?

A partner is not required for a small, well-documented export, but one can help when the scope is large or the switch is tied to a wider migration. Ask any partner for a written, fixed scope before work starts. It should name the dashboards and periods covered, the export method and schedule, the storage location, the access model, the handover documentation and the check that confirms the export is complete. DeployOpen plans, implements, backs up, documents and supports self-hosted open-source platforms in your own infrastructure, and most engagements are fixed-scope with deliverables and timelines agreed in writing. DeployOpen does not publish a price list, so a quote follows from the written scope. Compare proposals against the same written scope.

What drives the cost of exporting Clarity data?

Most of the cost is staff time, and most of it is one-time, with a smaller recurring part if you keep pulling data on a schedule. The components are internal engineering time to build and test the collection, analyst time to define what to keep, security and privacy review time, storage for the archive, and any partner fees for the scope you agree. Costs rise with the number of dashboards and segments, the row volume, the number of favorited recordings to review and save, the number of approvers, and the length of history you need to cover. A narrow, documented scope lowers them. Confirm with Microsoft whether any API access terms apply to your account. When you request a quote, ask for each component as a separate line with its owner.

How to verify the export and keep what you need

Before you switch off Clarity, prove that each export is complete. Start with row counts: the Data Export API returns at most 1,000 rows per call, so any file that lands at exactly that number is probably truncated and needs to be split into smaller date windows. Record the row count, the date range, the metric name and the request time for every call in a log, and keep that log with the files. Then pick a few days in the export window and compare the totals with the Clarity dashboard for the same days. Confirm with Microsoft's current documentation how sessions, bot filtering and time zones are defined in each view, because differences between the dashboard and the export are expected if the definitions differ. Write down any gap you cannot explain before you rely on the data.

Once the files are complete, treat them as sensitive records. Clarity exports can contain page URLs, device details and, depending on how you configured masking, traces of user behavior, so store them in a restricted location with named access, not in a shared drive open to the whole marketing team. Give read access only to the people who need it, use separate accounts for administration and review, and turn on encryption at rest and logging of every read. Generate a checksum for each file and keep a manifest that lists file names, row counts and checksums, so you can show later that nothing was altered. Set a retention date for the archive that matches your own policy and your data protection obligations, and confirm who approves deletion.

The exit record is what auditors and internal reviewers will ask for. Document the reason for leaving Clarity, the export method and script version, the API schedule, the list of metrics pulled, the favorited recordings you saved and when, and any data that could not be recovered, such as recordings that expired after 30 days without being favorited. Record who approved each step and where the evidence lives. Note also that DeployOpen can plan this exit, prepare the evidence and the documentation, and help the team assemble it for review. DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations, so agree the evidence format with them before the export starts.

How DeployOpen scopes and delivers an analytics data exit

DeployOpen plans and delivers the export of Clarity data as a written, fixed-scope engagement, with the export method, storage location and handover agreed before work starts. Clarity's dashboard metrics, recordings and any archived files are treated as separate workstreams, because each has different limits and different ways of being kept.

How we scope

  • We inventory which Clarity projects, dashboards, recordings and favorited sessions your teams need to keep.
  • We confirm the Data Export API calls, dashboard metrics and date windows that can be pulled within Clarity's stated limits.
  • We agree in writing which records are exported, where they are stored and who on your side approves the handover.

How we build

  • We build a scheduled export job that runs within the daily call and row limits, with logs of each pull.
  • We store exported files in your own infrastructure, with access controls and retention settings your compliance team can review.
  • We check that exported data excludes anything you have not approved for retention, including masked or personal fields.

How we hand over

  • We document the export job, the storage layout, the schema of each file and the steps to re-run an export.
  • We test a restore or read-back of sample exports so your analysts can confirm the files open and match the source dashboards.
  • We deliver the documentation and a short walkthrough so your team can operate the export without DeployOpen involved.

How we support

  • Ongoing support, upgrades and checks on the export job are available as a retainer if your team needs them after handover.
  • We can review the export job when Clarity changes its API, limits or retention rules, and agree the update in writing.
  • Ask any provider to confirm in writing which Clarity data types they can export, and which they cannot, before you sign.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.