Microsoft Clarity consent requirements in the EEA, UK and Switzerland

Since October 31, 2025, Clarity needs a valid consent signal from EEA, UK and Swiss visitors or it limits collection. Here is what that means for recordings and how self-hosted replay with masking compares.

On this page

Why Clarity recordings in the EU now depend on consent

For product and security owners in businesses facing EEA, UK or Swiss visitors, Microsoft Clarity recordings now depend on a valid consent signal from each visitor. Since October 31, 2025, Clarity limits collection when that signal is missing, so the lost sessions fall unevenly by region and often include the journeys you most need to debug. The short answer for many teams is self-hosted, first-party session replay with capture-time masking, where sensitive fields are removed before they reach the server, while the consent and transfer analysis stays with your organization. DeployOpen does not issue legal opinions or certifications. It deploys, configures and tests the replay stack so your counsel, data protection officer and auditors can review it.

Consent is not the only question, and a self-hosted tool does not settle it on its own. France's CNIL sheet n°16 sets narrow conditions under which analytics trackers can skip consent, including audience measurement only, a single publisher scope, no cross-checking with other processing, truncated IP addresses and a lifetime of at most 13 months. The same guidance says most large audience measurement offerings fall outside that exemption regardless of configuration. Session recordings capture far more user behavior than page counts, so confirm with counsel whether your replay use needs consent in each market. Where the data is hosted also matters. Storage in a cloud outside the EEA is a transfer under EDPB Guidelines 05/2021, and the EU-US Data Privacy Framework adequacy decision is under appeal as Case C-703/25 P, so plan for that risk in your assessment.

Start with an inventory. List every property and app that loads the Clarity tag, check which consent categories gate it in your consent manager, and record what the tag collects today, including masking settings and retention. Then decide with counsel whether replay should run only after consent, be limited to masked first-party data, or be removed for these markets. If you move to self-hosted replay, plan the cutover before the consent banner changes, and document where the data is stored, who can access it and how long it is kept. Ask any hosting or support provider how it would respond to a third-country authority request under 18 U.S.C. 2713 before you choose it. DeployOpen can run the masking tests and produce the evidence, but the consent and transfer decisions remain yours.

What the consent rule requires from your analytics

Clarity's consent problem is not one setting. A valid consent signal decides whether data is collected at all, while transfer rules and the CNIL exemption decide where data can go and which tools can skip consent in the first place. Each card below is a separate check you can run against Clarity or any replacement.

A valid consent signal before collection

Clarity needs a valid consent signal for EEA, UK and Swiss visitors, or it limits what it collects. Before you rely on any signal, confirm with your consent management platform that the Clarity consent mode status reaches the tag on every page, including single-page app route changes. Test with a fresh browser profile that rejects consent and check that no recordings or heatmap events are sent. Record the test so your compliance team can review it.

Transfer conditions under Article 44

GDPR Article 44 requires every transfer of personal data to a third country, including onward transfers, to meet the conditions in Chapter V. A consent banner does not satisfy those conditions. Map where Clarity stores recordings and which entities can access them, then decide whether a transfer tool such as the EU-US Data Privacy Framework or standard contractual clauses covers each flow. Ask your legal team to document that assessment.

GDPR text

Most large offerings fall outside the exemption

The CNIL states that most large audience measurement offerings do not fall within the consent exemption, whatever the configuration. Clarity is a session replay and heatmap product with broad scope, so do not assume a configuration change moves it into the exempt category. Ask the vendor in writing whether the product qualifies for any exemption in your jurisdictions, and keep the answer in your records of processing.

CNIL sheet 16

Narrow purpose and single publisher scope

For analytics to be exempt in France, the CNIL requires the purpose to be limited to audience measurement and A/B testing, with a single publisher scope and no cross-checking against other processing. Session replay of individual visitors, linked to product or marketing profiles, usually breaks these limits. If you want to keep an exempt measurement tool, check that recordings and identifiers are not combined with other datasets.

IP truncation and a 13-month lifetime

The same CNIL conditions require truncating the last byte of the IP address and keeping the tracker lifetime to at most 13 months. Check the IP handling in your current setup, including server logs and any replay payloads that carry headers. Confirm the cookie lifetime in your tag configuration and document the retention setting, so you can show it to an auditor.

CNIL conditions

Consent does not settle transfers

A banner can gate collection, but it does not decide where the data is stored or who can access it. EDPB guidance treats remote access from a third country, including viewing data on a screen for support, as a transfer. Ask your vendor where recordings are stored, which support staff can view them, and whether a third-country authority request could reach them. Self-hosting in an EU data center you control keeps those questions in your own hands.

What changes in your recordings when a visitor declines

When a visitor declines consent, Clarity does not stop being present on the page, but it reduces what it captures. Microsoft's consent mode for Clarity limits collection for visitors who have not given a valid signal, so the recordings and heatmaps you see reflect a narrower group of visitors than your full traffic. The exact behavior, including which signals are read, what is still sent, and whether any data is retained for non-consenting visitors, must be confirmed in Microsoft's current Clarity consent documentation before you rely on it. Documentation changes, and the settings in your consent manager determine what Clarity receives, so treat any description here as a starting point rather than a specification.

The operational effect is that recording coverage and heatmaps become a sample of consenting visitors. Pages with a high share of decliners, such as checkout flows, account areas or pages visited from countries with stricter defaults, can show thinner session counts than analytics tools that do not depend on the visitor's choice. Heatmaps built on fewer sessions can shift in ways that look like a design change but are really a change in who was counted. Segment-level reports, for example by device, country or landing page, can look incomplete for the same reason, because the denominator is partial and differs between segments. Before you draw conclusions from a segment, check how many sessions it contains and compare them with your analytics totals.

Confirm three things on your own site. First, run a test session with each consent choice and check, in the browser's network tools, whether Clarity requests are sent and what they contain. Second, compare Clarity's session counts with your consent manager's accept rate by market over a fixed period. Third, decide which decisions depend on recordings, such as UX fixes or checkout debugging, and whether a self-hosted, first-party tool with masking such as OpenReplay would give you a consistent record for them. Document the result so that stakeholders understand that changes in coverage reflect consent rates, not only visitor behavior.

Which self-hosted options meet the constraint

OpenReplay is a self-hosted session replay platform aimed at teams that need recordings, DevTools-style debugging and error context in their own infrastructure. Its core is mostly AGPLv3 with some MIT directories, while the ee/ directory (the Enterprise Edition) falls under a separate commercial license, so the team should confirm which features it actually relies on before deploying.

  • Capture-time masking: Sensitive text and inputs can be masked or skipped before data reaches the server, using CSS selectors and input redaction.
  • Private mode: Masks all text and inputs by default, which suits forms that handle health, financial or identity data.
  • First-party tracking: Tracking runs from the operator's own domain, so ad blockers do not block it in the way they block third-party vendor scripts.
  • Sizing guidance: The README says a single VM with 2 vCPUs, 8 GB of RAM and 50 GB of storage is enough to start, with production volumes requiring more.
  • Enterprise features: SSO, SCIM and audit trail are listed on the Enterprise tier, which is priced on request.

Confirm with the vendor whether SSO, audit logging and any other controls your assessors expect sit in the open-source edition or in the ee/ directory. Check the consent banner wiring, since the consent decision still belongs to your team.

Trade-offs of OpenReplay, PostHog and Clarity under EU rules

This table compares Clarity with self-hosted OpenReplay and self-hosted PostHog on the points that matter once EEA, UK and Swiss visitors need a valid consent signal. Read each row as a question to answer for your own deployment, since several cells depend on where your servers sit and which license terms apply to the features you enable. The main takeaway is that self-hosting moves the data location, masking and retention decisions to you, and it also moves the upkeep to you.

ConsiderationMicrosoft ClaritySelf-hosted OpenReplaySelf-hosted PostHog
Where recordings are storedHosted by Microsoft on Azure. Confirm current data location and transfer terms in Clarity's documentation and your DPA before relying on them.In your own cloud account, data center or network. Session data stays in your infrastructure.In your own infrastructure. Self-hosted data stays under your control, but you must still document any third-party services you connect.
Masking at captureConfirm the masking settings available in your Clarity project and how they apply to inputs and text.Capture-time sanitization masks or skips data before it reaches the server, including CSS selector masking and input redaction, plus a private mode.Session replay masking must be configured and verified in your deployment. Test it on your own pages before recording live traffic.
License termsFree hosted service under Microsoft's terms. Review those terms against your consent and transfer obligations.Mostly AGPLv3 with some MIT directories. The ee/ directory uses a separate commercial license.MIT except the ee/ directory, which needs a PostHog license for premium features on self-hosted instances. The posthog-foss repository contains no proprietary code.
Retention controlRecordings expire after the period set by the service, so confirm the current window in Clarity's documentation.Self-managed retention on the open-source edition.You set retention on your own servers. Confirm how it applies to replay and event data in your version.
Scale limitsManaged by Microsoft. Volume limits and sampling should be confirmed in its documentation.Single VM with 2 vCPUs, 8 GB RAM and 50 GB storage is the stated starting point. Size up with traffic and retention.Recommended server is 4 vCPU, 16 GB RAM and more than 30 GB storage. The README advises moving to PostHog Cloud above approximately 100k events per month.
Vendor supportSupport is governed by Microsoft's service terms, which you should review for your contract.Community support on the open-source edition. Enterprise edition adds SSO, audit trail and a custom SLA on a quoted contract.Self-hosted deployments are officially unsupported, and PostHog does not offer customer support for them. Plan internal or partner support.
Effort to runNo servers to operate, but you still own the consent manager, tag configuration and review of recordings.Install, upgrade, back up and monitor the instance, plus consent wiring and masking tests.Install, upgrade, back up and monitor the stack, which runs several services. Kubernetes deployments of the paid self-hosted product are no longer supported.
Consent and transfer positionRecordings only start when a valid consent signal is present for EEA, UK and Swiss visitors. Confirm current transfer terms with Microsoft.Data stays where you host it, which simplifies transfer analysis. Confirm your hosting location and any third-party sub-processors.Data stays where you host it. Confirm whether you use PostHog Cloud for any part of the pipeline, since that changes the transfer analysis.

How to deploy self-hosted replay in an EU-controlled environment

This sequence takes a self-hosted OpenReplay instance from region and account choice to a tested, consent-gated recorder, so recordings stay in infrastructure your organization controls.

  1. Choose the hosting region and account

    Your infrastructure or security team selects an EU or EEA region in a cloud account or data center that your organization administers, and records who holds administrative access to that account. Confirm with your legal team and DPO that the region, the operator and any support access satisfy your transfer assessment. Before anything else, list every party with administrative or support access to the hosts, storage and backups. The output is a short written decision naming the region, the account owner and the people who can reach the data, which later steps and your records of processing can cite.

  2. Deploy OpenReplay in your environment

    Your platform engineers deploy the open-source edition using one of the documented paths: Docker, Kubernetes with Helm, or a supported cloud target. OpenReplay's README says a single VM with 2 vCPUs, 8 GB of RAM and 50 GB of storage is enough to start, but a production sizing should come from your own traffic estimates and the deployment documentation. Keep the database and object storage in the same region as the stack. The output is a running instance reachable only at the hostname you intend to use, with its data stores confirmed to sit in the chosen region.

  3. Set masking and private mode before traffic

    Before the tracker is embedded on any page, your frontend engineers configure capture-time sanitization. Use masking by CSS selector for fields that hold personal data, input redaction for form values, and private mode, which masks all text and inputs by default, if your pages carry health, financial or identity details. Masking happens in the browser before data reaches the server, so this is the control that limits what is stored at all. The output is a committed configuration file and a short list of selectors reviewed by someone who knows the pages, signed off before launch.

  4. Configure first-party tracking from your domain

    Your web team serves the tracker and ingest endpoints from your own domain rather than a third-party host, so requests are first-party from the visitor's perspective. OpenReplay's README notes that first-party tracking from the operator's domain is not blocked by ad blockers, which affects how complete your session data will be, not whether a visitor has agreed to recording. Confirm the TLS certificate, the proxy path and the CORS settings with your network team. The output is a working ingest path that a test session reaches on your own hostname, with no request going to an external analytics domain.

  5. Wire the consent manager to the recorder

    Your web or privacy engineers connect the tracker's start call to the consent state from your consent management platform, so no recording begins until a valid consent signal for the visitor exists. The tracker should not be loaded or initialized for EEA, UK or Swiss visitors until that signal is present, and it should stop when consent is withdrawn. Ask your legal team to confirm the exact consent categories, the banner wording and the withdrawal flow, since these depend on your legal basis and jurisdictions. The output is a test log showing that no session is recorded in a no-consent state.

  6. Set retention for recordings and logs

    Your platform and privacy owners set how long session recordings, events and access logs are kept, and configure the deletion schedule in OpenReplay's self-managed retention settings. Choose periods based on the purpose you documented and the guidance from your legal team, not on defaults. Confirm that backups and object storage lifecycle rules follow the same schedule, because deleting from the application alone leaves copies behind. The output is a written retention schedule and a tested deletion job, with the backup policy reviewed against it.

  7. Test masked fields and consent states

    Before launch, your QA team runs a scripted set of test sessions on staging pages that contain sample personal data. They check that masked selectors and inputs never appear in the replay or the stored payloads, that private mode hides text where configured, and that recording stays off when consent is absent, declined or withdrawn. Inspect the stored data directly, not just the replay viewer. The output is a signed test record listing each page, consent state and result, retained with your change records. Repeat the test after any tracker, page or consent banner change.

How consent, masking and storage fit together

The flow starts in the visitor's browser, where the consent manager's signal decides whether the tracker runs at all. Capture-time masking in the tracker then removes or hides sensitive fields before anything is sent. The data goes to a first-party ingest endpoint on your own infrastructure, is stored in an EU region you choose, and is reviewed by internal staff who sign in through SSO. Check that no external path exists, and that the consent signal gates the tracker before its first request.

Consent gates the tracker, masking runs before ingest, and storage stays in your infrastructure.

Evidence your privacy and security reviewers will ask for

Consent rules for Clarity in the EEA, UK and Switzerland are only as strong as the records behind them. The cards below list the artifacts a privacy office, security team or auditor will request, and what each one should show before a replay tool goes live.

Consent flow configuration

Keep screenshots and exported settings of the consent banner, the consent signal sent to the tag, and the behavior when a visitor declines. Reviewers will check that recording starts only after a valid signal and that a refusal, a closed banner and a missing signal each leave collection off. Test the flow from an EEA, UK and Swiss IP address and a clean browser profile, then file dated captures with the test script used.

CNIL analytics guidance

Masking rules and private mode

Export the masking configuration: CSS selectors masked or skipped at capture, input redaction settings, and whether private mode masks all text and inputs by default. Reviewers will ask who approved each rule and how new forms are covered. Record the version of the tracker and the config in force on each date so the evidence matches what visitors actually had recorded.

Data location and retention records

Document where replay data is stored, which region and which hosts hold it, and how long recordings persist. For a self-hosted OpenReplay or PostHog deployment, this is your own infrastructure, so the record should name the cloud account, region, backup locations and the retention setting you configured. Confirm the retention period with your privacy office and keep the configuration file that enforces it.

Transfer assessment for remaining processors

If any vendor in the chain can still access data, such as a managed backup service, an email relay or a hosted CDN for the tracker script, document the transfer analysis. The assessment should state whether data leaves the EEA, which transfer tool applies, and whether a third-country authority could compel access. Keep this as a written file the privacy team has reviewed, since the answer depends on the vendor's contract and location.

GDPR text on EUR-Lex

Access control and audit logs

Reviewers will ask who can view recordings, export them, change masking rules or change retention. List the roles, the identity provider used for single sign-on, and the audit log retention. Pull a sample of access events for a recent period to show the log works. Confirm that enterprise features such as SSO, audit trail and custom roles are included in the edition you run, since some are sold as separate packages.

Pre-launch masking test results

Before go-live, test real page flows with sample data in forms, checkout fields, account pages and support screens. Record which elements leaked, what was fixed and the retest result. Independent auditors and regulators decide whether these controls are adequate. DeployOpen can prepare the test evidence and retest records, but it does not issue audit reports, attestations or certifications.

OpenReplay edition details

Questions buyers ask before changing their replay tool

Does Clarity stop recording EEA, UK and Swiss visitors without consent?

Clarity needs a valid consent signal from EEA, UK and Swiss visitors, and since October 31, 2025 it limits collection when that signal is missing. The practical effect is fewer recordings and heatmap data from those visitors, and gaps you cannot easily measure. Confirm the exact behavior with Microsoft's current documentation and with your consent manager's Clarity integration, because the signal you send determines what Clarity collects.

Does self-hosting replay software remove the need for consent?

In general, no. Self-hosting does not by itself exempt a replay tool from consent under EU rules. The French regulator CNIL sets out narrow conditions under which audience measurement analytics can be exempt, including limiting the purpose to audience measurement and A/B testing, a single publisher scope, no cross-checking with other processing, truncating the last byte of the IP address and a tracker lifetime of at most 13 months. Session replay with heatmaps rarely fits those conditions, so plan for a consent flow and confirm the position with your legal or privacy team.

What drives the cost of self-hosting OpenReplay or PostHog?

Costs fall into hosting, licensing, implementation and upkeep. OpenReplay's README says a single VM with 2 vCPUs, 8 GB of RAM and 50 GB of storage is enough to start, and PostHog recommends 4 vCPU, 16 GB of RAM and more than 30 GB of storage for its hobby deployment, so server size grows with session volume and retention. Licensing matters if you need the enterprise directories: OpenReplay's ee directory and PostHog's ee directory require a commercial license for premium features. Ask any provider for a quote that separates one-time setup from recurring hosting, storage, licensing and support.

Which parts of a replay deployment need the most testing?

Masking and consent integration are the two areas that most often need checking before launch. OpenReplay describes capture-time sanitization, including CSS selector masking, input redaction and a private mode that masks text and inputs by default, and you should verify these on your own pages rather than assume them. Test the consent manager against real opt-in and opt-out paths so recording starts and stops as the visitor chose. Any scope should list which pages, forms and mobile screens are tested.

How long does a self-hosted replay deployment take?

The duration depends on the scope, which is why it should be written down before work starts. The main variables are the number of sites and apps, whether mobile replay is in scope, how much masking and consent testing is needed, and how your infrastructure approvals run. DeployOpen agrees scope, deliverables and timelines in writing before work begins, so ask for a timeline tied to those items. No duration applies until the scope is fixed.

What must our organization provide for a replay migration?

Three inputs usually decide whether the work moves smoothly: infrastructure access, a named consent manager owner and legal sign-off. Infrastructure access covers the cloud account, Kubernetes or VM environment and DNS for the first-party domain. The consent owner decides how replay is gated and documents the legal basis. Legal or privacy sign-off confirms the masking settings, retention period and data location before recordings start. Ask the implementation partner to list these dependencies in the written scope.

Can our internal team run a replay migration alone?

A capable platform team can deploy the software alone, but consent, masking and evidence work usually needs people from privacy, security and product. OpenReplay's documentation covers deployment on several clouds and Kubernetes, and PostHog's self-host documentation says self-hosted deployments are officially unsupported and that PostHog does not offer customer support for them. That means your team owns upgrades, backups and incident response. Compare the internal effort with a fixed-scope engagement and an optional retainer for upgrades and testing.

How DeployOpen works on this

DeployOpen plans and implements self-hosted open-source replay inside your own infrastructure, so consent handling, masking and retention are configured and reviewed by your teams. We scope the work in writing first, then build and test it against the consent behavior your sites actually need.

How we scope

  • Map which sites, apps and EEA, UK and Swiss audiences would be recorded, and where a consent signal is required before capture starts
  • Agree in writing which replay, heatmap and event features move, and which Clarity behavior you need to replace
  • Confirm the hosting target, cloud account or data center, and who in your organization approves the data handling decisions

How we build

  • Deploy the self-hosted replay platform in your infrastructure with SSO, access control and audit logging configured
  • Configure capture-time masking, CSS selector rules and private mode so sensitive fields are masked before data reaches the server
  • Wire the tracker to your consent manager and test that recording stops or does not start without a valid consent signal

How we hand over

  • Document the consent flow, masking rules, retention settings and data locations so your privacy and security teams can review them
  • Deliver test evidence from the consent and masking checks, including the configuration and results you can share with auditors
  • Hand over runbooks for upgrades, backups and access reviews, with the open-source license terms that apply to each component

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the initial handover
  • Retesting after consent banner, tag manager or site changes can be included in the written scope
  • Confirm with your legal counsel whether your consent and transfer position meets the rules that apply to your organization

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.