Migrate from Microsoft Clarity to OpenReplay without losing the recordings you need
Moving from Clarity to OpenReplay is a rebuild, because Clarity recordings and tags are not a portable dataset that can be carried into a new tool. A team that leaves Clarity's free, Azure-hosted service should plan to recreate its tagging, masking, consent handling and retention settings in OpenReplay, and should expect little of Clarity's history to survive unless favorited recordings are saved before the switch. Clarity's data export covers aggregate dashboard metrics, not replays, so the recordings worth keeping must be reviewed and saved by hand while the Clarity account is still active.
Platform or security engineering usually owns the migration, working with product analytics owners who decide which pages, events and funnels matter. Most of the effort and risk sits in three places. Masking comes first. OpenReplay sanitizes data at capture time through CSS selector masking and input redaction, and its private mode masks all text and inputs by default, so the team should decide page by page what stays visible and test forms that hold personal or financial data. Consent comes second: the tracker should start only after the consent manager reports the right signal for EEA, UK and Swiss visitors. Parallel running is third, since both tags can run for a defined period so the team can compare capture quality before Clarity is removed.
Start the OpenReplay deployment early, because the instance, its storage and its retention settings must exist before the first session is recorded. Confirm the hosting target and sizing with your deployment team against the OpenReplay deployment documentation. Set retention in your own infrastructure so the window matches your privacy notice and legal review, and name the person who owns that decision. Then save the Clarity recordings tied to open investigations, note the page, date and issue for each in your ticketing system, and confirm the expiry date for everything else. Retire the Clarity tag only after parallel running has shown that masking and consent behave as the team expects.
Which Clarity capabilities map to OpenReplay, and which need rework
This table maps the Clarity features most teams rely on to the OpenReplay capabilities documented in its README, and marks each as clean, needs rework or gap. Read it as a checklist for the migration plan: clean rows can move with the tag swap, rework rows need configuration or instrumentation changes, and gap rows need a decision before cutover. Heatmap and smart event equivalents should be confirmed in the current release with OpenReplay before you rely on them.
| Clarity capability | OpenReplay equivalent | Status | What to confirm or change |
|---|---|---|---|
| Session recordings | Session replay with DevTools, console logs and JavaScript errors | Clean | Confirm replay retention settings on your self-hosted instance, since you control retention rather than Clarity's 30-day expiry. |
| Heatmaps | Heatmaps listed under product analytics | Needs rework | Confirm heatmap coverage in the current release with the vendor, then rebuild the page list you analyze. |
| Masking of text and inputs | Capture-time sanitization by CSS selector and input redaction | Needs rework | Re-audit every selector, since masking rules written for Clarity do not carry over automatically. |
| Private or strict masking mode | Private mode that masks all text and inputs by default | Clean | Decide whether default masking suits your pages, then test on forms that handle personal or financial data. |
| Smart events and custom tagging | Product analytics events with funnels, trends and journeys | Gap | Confirm the event definition model with OpenReplay, then recreate each Clarity smart event as an explicit tracked event. |
| Dashboards and recording filters | Product analytics funnels, trends and journeys | Needs rework | Rebuild saved dashboards and filters by hand, since Clarity exports do not provide a migration path into OpenReplay. |
| Consent-gated collection in the EEA, UK and Switzerland | Self-hosted deployment with your own consent manager wiring | Needs rework | Wire OpenReplay's start call to your consent manager so recording begins only after a valid signal. |
What data can move, and what must be rebuilt
Clarity history mostly cannot move, so the migration is a rebuild of collection, not an import. The cards below separate what you can export from Clarity from what you must recreate in OpenReplay before the first recording is captured.
Clarity history and recordings
The Data Export API returns dashboard metrics for only the last 1 to 3 days, with a limit of 10 calls a day and 1,000 rows, and recordings expire after 30 days unless favorited. Treat historical replays as lost unless they were already saved. Before you switch off the tag, confirm what your team has favorited, and agree with stakeholders that OpenReplay history starts on the cutover date.
Replacing the tag with OpenReplay
Clarity uses one script tag, while OpenReplay ships a tracker that you host with your own project key. Plan the deployment first, then add the tracker to the same templates where the Clarity tag sits. Run both tags in a staging environment for a short parallel test so you can compare session counts and page coverage before you remove Clarity.
OpenReplay deployment docsConsent manager hooks
Clarity limits collection for EEA, UK and Swiss visitors without a valid consent signal, so your consent manager must gate the OpenReplay tracker the same way. Map each consent category to the tracker load, and make sure no recording starts before consent is granted. Test rejection, withdrawal and a returning visitor in each region.
Identify calls and user properties
Clarity's identify and custom tag calls do not carry over automatically. Decide which user identifiers you want in OpenReplay, such as an internal account ID rather than an email address, and send them only after consent. Document each property, its purpose and its retention so the privacy team can review it.
Custom tags, smart events and dashboards
Clarity custom tags and smart events must be redefined as OpenReplay events, funnels, trends and heatmaps. Export your current Clarity dashboard list and map each view to an OpenReplay equivalent, noting any metric that has no direct match. Expect dashboards to be rebuilt by hand, and agree on which views the business actually needs.
Masking rules and first-party domain
Set capture-time masking by CSS selector and input redaction before the first session is recorded, and consider private mode for pages with sensitive data. Serve the tracker from your own domain so it is first-party, which OpenReplay notes avoids ad blocker interference. Confirm these settings with your security team and retest them after every release.
How the cutover runs in five steps
This sequence moves Clarity recordings, heatmaps and consent handling onto a self-hosted OpenReplay instance without collecting data before masking and consent are verified. Each step ends with a written output that the next step depends on.
Inventory tags, masked elements and consent flows
Your web or analytics lead lists every site and app that loads the Clarity tag, the page elements and form fields that need masking, and how each property's consent manager passes consent signals today. Include the favorited recordings you want to keep, and export those before any change, using the steps in the Clarity export guide. The output is an inventory sheet with one row per property, a masking map of CSS selectors and input fields, and a consent flow diagram. The step is done when a second reviewer has checked the masking map against the live pages.
Deploy the self-hosted OpenReplay instance
Your platform or infrastructure team installs OpenReplay in your own cloud account, data center or Kubernetes cluster, following the deployment documentation for the target environment. Set up SSO, access roles, backups and retention before any production traffic arrives, and confirm the chosen edition covers the features you need, since the enterprise options sit under a separate commercial license. The output is a running instance with documented hostnames, storage location, retention setting and an access list. The step is done when a test session from a test page appears in the dashboard with the expected region and storage path.
Pilot on a low-traffic property
Install the OpenReplay tracker on one low-traffic site or app with capture-time masking and private mode configured, and keep the Clarity tag in place for that property only if your consent review allows it. Your QA team reviews sample sessions for unmasked text, form inputs, query strings and personal data, and tests the recording behavior on the pages in your masking map. The output is a pilot report listing each defect found, its fix and a retest result. The step is done when a full review cycle produces no unmasked sensitive fields.
Run both tags in parallel with a masking review
Deploy the OpenReplay tracker across the remaining properties alongside Clarity, so both tools capture the same visits for a set period agreed by your team. Compare session samples from both tools and review the masking on every page template, including checkout, login and account pages. Confirm with your legal or privacy team which of the two tools may record each visitor group. The output is a signed-off masking review record and a list of any templates still needing selector updates. The step is done when the privacy owner accepts the masking results in writing.
Cut over with consent gating
Configure your consent manager so the OpenReplay tracker loads only after the visitor's consent choice is recorded, and remove the Clarity tag from every property. Your team tests the consent paths in each target region, including the accept, reject and no-choice cases, and checks that no recording starts before a valid signal. Recreate the smart events, funnels and heatmap views you still need in OpenReplay. The output is a signed-off consent test log covering each region and each consent outcome, plus a configuration record for the consent manager. The step is done when that log is approved by the privacy owner.
Decommission Clarity after retention clears
Once the last Clarity recordings have passed the retention window and the favorited items are exported, your team removes the Clarity project from the sites and records the removal date. Archive the inventory, masking map, pilot report and consent test log with the platform's operational records, and keep the OpenReplay backup and retention settings under review. The output is a decommission record showing the tag removal on each property and the archive location of the migration evidence. The step is done when no Clarity script is found on any property in a fresh crawl.
How the browser, consent manager and OpenReplay fit together
The flow starts in the visitor's browser, where the consent manager decides whether the OpenReplay tracker loads at all. Once the tracker runs, capture-time masking removes or redacts sensitive fields before any session data leaves the page. The masked data then travels to an ingest service inside your own infrastructure, which is the trust boundary to review. Check that your consent manager blocks the tracker before it starts, and that masking rules are tested on real pages.
Consent gates the tracker, masking runs in the browser, and data stays in your infrastructure.
How the migration changes by team size and starting point
A small team with one website and one Clarity tag usually has the simplest move. The work centers on standing up one OpenReplay instance, adding its tracker to the site, and checking that the page renders and recordings appear as expected. Most of the decisions are about defaults rather than architecture, and a single reviewer can usually sign them off.
- Hosting choice: Decide whether one virtual machine is enough for your traffic, or whether you need a managed or bring-your-own-cloud option. Confirm the sizing guidance in OpenReplay's documentation against your expected volume.
- Masking defaults: Turn on private mode or selector-based masking before the first recording is captured, since capture-time sanitization only protects data that never leaves the browser.
- Tag replacement: Remove the Clarity script and add the OpenReplay tracker in the same release so you do not run both on the same pages.
- Smart events: Recreate only the handful of events your team actually reviews, and document their names in one place.
- Favorites export: Save any recordings you need before the Clarity tag is removed, because expiry is driven by Clarity's own retention settings.
Before you cut over, confirm that your hosting provider and the OpenReplay deployment guide match the environment you intend to run.
A team running several sites, apps or brands that share a template or tag manager has a larger migration. The main risk is that one shared snippet reaches many properties, so a masking or consent mistake spreads quickly. The work shifts from installing one tracker to designing project structure, naming conventions and a rollout order across properties.
- Project layout: Decide whether each property gets its own OpenReplay project or whether properties share one, and document the choice since it affects access control and reporting.
- Template changes: Update the shared template or tag manager container once, then test each property's pages, including login flows and checkout pages where masking matters most.
- Rollout order: Move a low-traffic property first, review its recordings for leaked data, then extend the change to the rest.
- Event naming: Agree on one smart event vocabulary so dashboards compare like with like across properties.
- Ownership: Name an owner for masking rules, since different property teams often add new form fields without telling anyone.
Ask whoever maintains your template how changes are reviewed and deployed, because that process will determine how quickly a masking fix can reach every property.
A team with EEA, UK or Swiss visitors needs recording to respect the consent decision the visitor made, not just to be present on the page. This tab is the one where legal, privacy and engineering must agree before the tag goes live. Clarity's own consent requirements have changed how some teams think about this, so check the current rules for your jurisdictions with your privacy counsel.
- Consent integration: Wire OpenReplay's start and stop calls to your consent manager so that no recording begins until the relevant category is accepted.
- Withdrawal handling: Decide what happens when a visitor withdraws consent mid-session, and confirm the tracker stops capturing rather than only hiding the banner.
- Data location: Self-hosting keeps session data in your own infrastructure, so document the region and provider, and check the transfer position with counsel if any sub-processor sits outside the EU.
- Retention schedule: Set a retention period that matches your privacy notice and your records policy, since self-managed retention is now your decision.
- Evidence: Keep a record of your consent configuration and test results, so you can show how recording was gated.
Ask your consent management vendor to confirm how it signals acceptance to third-party scripts, because a mismatch there is the most common reason gating fails.
What makes the migration longer or more expensive
The size of an OpenReplay migration depends less on the tracker snippet than on how many properties, pages and consent flows you carry over, and on who runs the stack afterward. The cards below cover the decisions that most often stretch the timeline or raise the running cost.
Properties, pages and tracker scope
Each property, domain and single-page application route you instrument needs its own tracker configuration, test pass and replay check. Clarity often hides this sprawl because one tag is pasted into every template. Inventory every site, subdomain and app where the Clarity tag runs, then decide which ones move to OpenReplay in the first wave. Illustrative example: a company with three domains and a logged-in app needs three configurations and a separate check on the app's masking.
Masking review depth
Capture-time sanitization masks CSS selectors, redacts inputs and, in private mode, masks all text and inputs by default. Deciding what to unmask for debugging takes review time with product, legal and the people who read recordings. Each unmasked field is a decision that must be documented. Budget time for a sample review of recordings on forms, account pages and checkout flows before you switch the tag live.
OpenReplay READMEConsent manager integration
OpenReplay must start, pause and stop recording according to the consent state your consent manager reports, in every market where you collect data. The work includes mapping categories, testing reject and withdraw paths, and confirming that no recording starts before consent. Confirm with your consent platform vendor how the signal is passed to the tracker, and have legal review the wording of the banner against your jurisdictions.
Hosting choice and sizing
A self-managed VM, a Kubernetes cluster with Helm, or a Bring-Your-Own-Cloud arrangement each shift work between your team and the vendor. The README describes a single VM with 2 vCPUs, 8 GB of RAM and 50 GB of storage as enough to start, but production load, replay volume and storage growth decide the real footprint. Ask your team which cloud and data center standards apply, and load-test with realistic session volumes before committing to a size.
OpenReplay deployment docsRetention, storage and community support
Clarity keeps recordings for a fixed period unless they are favorited, so your self-hosted retention policy is new work. Retention sets storage growth, backup scope and deletion procedures under your own privacy rules. The open-source edition relies on community support and self-managed retention, so upgrades, incidents and retention jobs fall to your team unless you buy a support contract or a retainer. Confirm which tier you need before the first production month.
OpenReplay pricingSmart events and dashboards to recreate
Clarity smart events, filters and saved dashboards do not transfer automatically. Each event you rely on for reporting must be defined again as an OpenReplay product analytics event, with its properties and naming checked against the old definitions. Export a list of active smart events from Clarity, map each one to an OpenReplay event, and agree with analysts which dashboards must match before the cut-over date.
Cost and duration drivers and how to keep each down
This table breaks the migration into cost components, showing who is paid, whether each cost is one-time or recurring, and what drives it up or down. Use it to shape a written quote and to see where your own internal time goes. The main takeaway: the software is free under the open-source edition, so most of the spend sits in infrastructure, engineering time and the parallel-run period.
| Cost component | One-time or recurring | What drives it | How to keep it down |
|---|---|---|---|
| Infrastructure for the instance | Recurring | Session volume, retention length and storage growth; the README cites 2 vCPUs, 8 GB RAM and 50 GB storage as enough to start | Size from measured session volume, set retention deliberately, and confirm the sizing guidance for your expected traffic before you buy capacity |
| Deployment and masking engineering | One-time | Choice of target (AWS, Google Cloud, Azure, Kubernetes with Helm, Docker or Ubuntu), number of sites, and how many CSS selectors and inputs need masking | Start with one site, reuse the same Helm or Docker configuration across properties, and write a masking test plan before recording any production session |
| Consent manager integration | One-time, with occasional review | Number of consent categories, how many regions you serve, and how many tags depend on the Clarity consent signal | Map the Clarity tag and the OpenReplay tracker to one consent category each, and test the opt-out path in every region you serve |
| Parallel-run period | One-time, but calendar-driven | Length of overlap with Clarity, the number of teams reviewing recordings, and how far you compare heatmaps and recordings against Clarity | Keep the overlap short and scoped to a defined set of pages, and agree in advance on the checks that end it |
| Saving favorite recordings and exports | One-time | Volume of recordings you want to keep, since Clarity recordings expire after 30 days unless favorited | Favorite and export the recordings you need before the cutover, and ask the implementer to confirm how the export is delivered |
| Ongoing upgrades and monitoring | Recurring | Release cadence (v1.27.0 in May 2025 and v1.28 on September 25, 2025), database and storage maintenance, and backup testing | Pin a tested version, schedule upgrades in a maintenance window, and monitor storage growth and backups from day one |
| Vendor option: OpenReplay Dedicated | Recurring subscription | OpenReplay lists Dedicated as a managed instance starting at $199 per month on AWS, GCP or Azure, with a 7-day trial (OpenReplay pricing page) | Compare it against self-managed infrastructure and staffing cost, and confirm current plan terms directly with OpenReplay |
| Vendor option: OpenReplay Enterprise | Recurring, custom contract | OpenReplay lists custom pricing on multi-year contracts, including SSO and SAML, SCIM, audit trail, a custom SLA and dedicated support | Ask for a written quote that names the features, SLA terms and contract length you need, and compare them with what you would otherwise build |
What do teams ask before moving off Clarity to OpenReplay?
Can I import my existing Clarity recordings into OpenReplay?
Generally no. Clarity recordings are not designed to be moved into another product, so plan on starting fresh in OpenReplay from the day it is deployed. Before you switch, open the recordings you need to keep in Clarity and favorite them, since favorites are the only items Clarity keeps beyond its 30-day window. Export the dashboard metrics you need for reporting through the Clarity Data Export API while the data is still available. Treat the old recordings as a closing archive, not a migration input, and agree with your stakeholders which sessions justify that effort.
How long does a Clarity to OpenReplay move take, and what drives it?
The duration depends on scope rather than on a fixed template. The main drivers are the number of sites and apps that carry the Clarity tag, how many custom events and smart events need to be recreated in OpenReplay, whether you run native mobile replay, and how much review your masking rules need before go-live. Your internal approval cycle for hosting, SSO and consent changes often takes longer than the technical deployment. DeployOpen agrees timelines in writing as part of a fixed scope, so ask for a timeline tied to the specific sites, events and environments you list.
Can our own engineers migrate to OpenReplay without outside help?
Yes, a capable platform team can deploy OpenReplay and wire the tracker into an application. OpenReplay's documentation describes a single VM with 2 vCPUs, 8 GB of RAM and 50 GB of storage as enough to start self-hosting, and it lists deployment targets including Docker, Kubernetes with Helm and Ubuntu. What usually takes more effort is the ongoing work: upgrades between releases, backups, retention settings, masking verification and consent integration. Community support is included in the open-source edition, so decide who will own those tasks before you start.
What do we need to provide during an OpenReplay implementation?
Prepare four things before the engagement starts:
- Hosting access: an account in AWS, Google Cloud, Azure, DigitalOcean, Scaleway, OVHcloud or a Kubernetes cluster where OpenReplay will run, with network and DNS changes approved.
- SSO and identity: your identity provider details if you need SAML or SCIM, which are part of the self-hosted Enterprise edition under a custom contract.
- A consent owner: a named person who controls the consent manager and can approve how OpenReplay is configured for EEA, UK and Swiss visitors.
- A list of sites and apps: including which pages handle sensitive data, so masking rules can be written against them.
How do we verify that OpenReplay masking works before going live?
Test it against real page flows in a staging environment, not by reading configuration alone. OpenReplay's README describes capture-time sanitization that masks or skips data before it reaches the server, including masking by CSS selector and input redaction, and a private mode that masks all text and inputs by default. Build a test list of forms, account pages, payment steps and search fields, record sessions through them, and confirm in the replay that nothing sensitive is visible. Repeat the check after each change to the tracker or the page templates, and keep the results as evidence for your privacy team.
Does self-hosting OpenReplay keep session data inside our infrastructure?
Yes. OpenReplay's README notes that self-hosting keeps session data in the operator's own infrastructure, and that first-party tracking from your own domain is not blocked by ad blockers. The data stays where you deploy it, whether that is a cloud account you control, a data center or an air-gapped network. Your compliance position still depends on the rest of the setup, including your consent flow, retention settings, access controls and backups. DeployOpen can plan, deploy and document those controls so your security and compliance teams can review them.
What usually goes wrong in a Clarity to OpenReplay move
Most failed Clarity to OpenReplay moves fail in the same few places: data captured before privacy controls were set, consent logic that does not match the policy, recordings lost at cutover, and an instance nobody maintains. Each card below names one risk and the check that prevents it, so the migration owner can assign each one before go-live.
Unmasked recordings from unreviewed defaults
OpenReplay masks or skips data at capture time through CSS selector masking and input redaction, and a private mode masks all text and inputs by default. Teams that copy their Clarity configuration across without reviewing it can capture form fields, account numbers or health details that Clarity never recorded in the same way. Before the tag goes live, test selectors on every page that handles personal data, use a test session to confirm masked values never reach the server, and record who approved the masking rules.
OpenReplay READMERecording before consent is granted
Clarity now needs a valid consent signal for EEA, UK and Swiss visitors, and teams often assume the same gate applies once the tag moves to OpenReplay. If the OpenReplay tracker loads from the page before the consent manager has returned a decision, sessions from those visitors can be captured without a lawful basis. Confirm that the tracker starts only after the consent manager reports an accept state, and test with a fresh browser profile in each region you serve.
Favorited Clarity recordings lost at cutover
Clarity recordings expire after 30 days unless favorited, and the Data Export API does not return full history, so recordings not saved before the switch are gone. Teams often discover this after the Clarity tag is removed. Inventory the favorited sessions, document why each one matters to a product or support decision, and export the ones you need in the window before removal. Treat this as a dated task with a named owner.
Storage filling without a retention plan
OpenReplay's README says a single VM with 2 vCPUs, 8 GB of RAM and 50 GB of storage is enough to start, but session replay volume grows with traffic, and the open-source edition relies on self-managed retention. Teams that never set a retention period end up deleting data under pressure or losing recordings when disks fill. Model storage growth from your own session volume during a pilot, set a written retention period that matches your privacy notice, and schedule a disk alert before traffic reaches production levels.
OpenReplay deployment docsNo owner for upgrades after launch
Self-hosting moves the patching, backups and version upgrades from Clarity's vendor to your team. OpenReplay publishes new releases on its GitHub releases page, and a deployment that stays on an old version can miss security fixes and compatibility changes with newer browsers. Name one owner for the instance, set a recurring review of the release page, and decide in advance whether community support or a paid support arrangement covers you when an upgrade fails.
OpenReplay releasesHow DeployOpen works on this
DeployOpen plans, implements, integrates, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure. For this migration, we start from your Clarity setup and your consent manager, then deploy OpenReplay in your cloud account or data center so session data stays under your control.
How we scope
- The written scope lists which sites, single-page apps and mobile apps move from the Clarity tag to OpenReplay.
- We record how your consent manager signals EEA, UK and Swiss visitors and agree the masking rules before any recording starts.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins. Ongoing support is available as a retainer.
How we build
- We deploy a self-hosted OpenReplay instance in your AWS, Google Cloud, Azure or Kubernetes environment, with SSO and access control set up.
- We configure capture-time masking by CSS selector, input redaction and private mode, then test that sensitive fields never reach the server.
- We recreate your smart events and heatmap views in OpenReplay and check them against the Clarity reports your teams use today.
How we hand over
- You receive written documentation of the deployment, masking configuration, consent wiring and retention settings for your review.
- We run a retest of masking and consent behavior so your security and compliance teams can review the evidence themselves.
- Your team gets a runbook covering upgrades, backups and the self-managed retention settings you own after handover.
How we support
- Upgrades and backups can be covered by a retainer, so new OpenReplay releases are applied on a schedule you agree.
- Continuous testing of masking and consent settings is available if your Clarity-replacement tags change after launch.
- Preparing the systems and evidence for a compliance assessment is in scope, though independent auditors issue any attestation.

