Contact us

Clarity or session replay: do you need your visitors’ consent?

Yes, you need the visitor’s consent before recording starts. Session replay tools, which more or less film clicks, scrolling and mouse movements so a visit can be watched back like a video, work with trackers: the CNIL, France’s data protection authority, writes on its page published on 5 November 2026 that they require the user’s prior consent, because none of the exemptions in Article 82 of the French Data Protection Act applies. Its recommendation, adopted on 8 October 2026, also sets out what your banner should show, how long to keep recordings and what to mask.

Is your analytics tool affected?

It depends on what it does. A visit counter can do without consent, under conditions the CNIL sets out on its page on audience measurement, updated on 4 July 2025: it’s used only to measure audience, solely on behalf of the site, it produces anonymous statistics, it doesn’t cross-check the data with other processing, it doesn’t pass non-anonymous data to others and it doesn’t follow the person from one site to another. Session replay goes further, since it keeps each visitor’s journey. The recommendation states that these tools aren’t used exclusively to enable communication and aren’t strictly necessary for the service the user has asked for.

It’s aimed at two parties. The publisher of the site or app, meaning you, is generally the controller. The tool’s provider is your processor as long as it doesn’t reuse the data; if it reuses it for itself with your agreement, it becomes the controller of that processing, and a joint controller with you of what’s read and written on the visitor’s device. In that case, the CNIL states that you can’t settle for a clause that leaves collecting consent to you alone.

What can you use these recordings for?

The CNIL’s recommendation asks you to set the purpose before installing the tool, and describes three:

Another purpose is still possible, provided you’ve made sure it’s compliant. The recommendation rules out ad retargeting, pointing out that other trackers already exist to follow up on an abandoned basket. And it asks you to prefer, for the same need, the tool that collects the least data. Data collected for one purpose isn’t used for another without fresh consent, unless it has been anonymised.

What should your cookie banner say?

Each purpose gets its own choice. The recommendation asks for a short heading on the banner’s first screen, a longer explanation on the second and, from the first screen, a short notice specific to session replay, shown separately from the purposes. It suggests wording, for example: “[Publisher’s name] records and views your actions while you browse in order to fix any technical problems.” For usability, the ending becomes “to identify the difficulties you encounter and improve the site’s navigation and usability”.

Withdrawing consent must be as easy as giving it. After a withdrawal, nothing more is read or written on the visitor’s device, and data already recorded is deleted if nothing else justifies keeping it, including at the provider, whom you must notify. The CNIL’s page for internet users, published on the same day, 5 November 2026, reminds them that they can refuse as easily as accept and lodge a complaint with it.

How long can you keep the recordings?

The period depends on the purpose. The annex to the recommendation mentions a few months for tracking down errors and for usability alike, and a few hours after the end of the session for support. For the first two purposes, it sees no reason to link a recording to a customer’s identifier. It suggests limiting what’s kept: a random sample of visits, recording that only starts on a specific event, or analysing the recorded visits and then quickly deleting the ones that aren’t useful. Recording everything is only considered if a history is needed and can’t be obtained any other way, with visits where nothing happened deleted quickly.

What should you mask on screen?

By default, quite a lot. The recommendation lists images, forms, text fields, fields filled in on the fly, for example with account details, mouse movements and clicks on number keypads, and exchanges with a chatbot, questions and answers alike. It also recommends being able to block passwords and bank details, and restricting recordings to the people who need them. The overview page points out, in the final version, the masking of mouse movements in certain areas, to avoid collecting access codes, and the masking of conversations with chatbots, which can reveal sensitive data.

What if you use Microsoft Clarity?

Microsoft describes several settings itself. On its Consent Mode page, it says that since 31 October 2025, Clarity has expected a consent signal for visitors from the European Economic Area, the United Kingdom and Switzerland. That signal comes from your cookie banner or from a command provided for the purpose, and it’s up to the site owner to tell Clarity when a visitor changes their mind. To check, Microsoft advises declining cookies, then checking that the _clck and _clsk cookies don’t appear and that Clarity is still running. Without cookies, Clarity therefore keeps sending data, but the FAQ states that visits are then broken up, page by page, with no full replay.

For masking, Microsoft’s page sets out three modes under Settings, then Masking: Strict, Balanced, the default, which masks numbers and email addresses, and Relaxed. Input boxes are masked in all modes. A change only applies to new recordings.

On retention, Clarity’s FAQ says recordings are kept for 30 days, but favourites and a random sample are kept for up to 9 months. It also states that to delete a single user’s data, you have to delete the whole project. That’s worth comparing with what the recommendation asks for: a few hours for support, and a provider that lets you set retention periods and delete a specific session.

What the sources don’t say

The recommendation isn’t regulatory, as the published text itself says: its practical measures aren’t mandatory, and others are possible as long as they let you comply with the rules, which it’s up to you to demonstrate with your provider’s help. The consent requirement, on the other hand, comes from the law. The CNIL gives no figure beyond “a few months” and “a few hours”. It says nothing about any particular tool.

The final text takes into account a consultation opened on 25 February 2026. The CNIL is announcing a webinar to present its content, with no date on the page.

An example: an online tea shop in Montreuil

The owner installed Clarity a year ago to understand why customers abandon their basket. Her cookie banner offers “Statistics” without mentioning recording. She adds a choice for usability, using the CNIL’s wording, and the short notice on session replay on the first screen. She checks that her banner really passes the refusal on to Clarity, by making sure the _clck and _clsk cookies are absent, as Microsoft’s page suggests.

Her purpose is usability: a few months’ retention is enough for her. She stops marking visits as favourites, knowing that Clarity keeps a sample for up to 9 months anyway, according to its FAQ. She switches masking to Strict mode, since her checkout page shows delivery addresses. Her support chat isn’t used to watch back visits, so she doesn’t tick that purpose. If a customer asks her to erase her visit, she knows that Clarity’s FAQ only provides for deleting the whole project, and she decides with her eyes open whether to keep the tool or switch.

What you can do this week

These steps follow the CNIL’s recommendation and your tool’s documentation:

  1. List the tools installed on your site, in your shop’s list of apps or extensions, and pick out the ones that record visits, not just the ones that count them. If an agency built your site, ask them for this list in writing.
  2. Write down, for each one, the purpose you’ve chosen. If it isn’t one of the three the CNIL describes, check that it’s compliant. With no purpose, remove the tool.
  3. Open your cookie banner in a private window: each session replay purpose must have its own choice, the CNIL recommends that the short notice on replay be visible from the first screen, and refusing must be as easy as accepting. If your banner doesn’t allow this, switch recording off in the meantime.
  4. Decline cookies, then open your browser’s developer tools (right-click, then Inspect) and look at the site’s list of cookies: the tool’s cookies shouldn’t be there, for example _clck and _clsk for Clarity. The tool may keep running without them: check its documentation for what it still collects.
  5. In the tool’s settings, mask forms, images and, if you have one, chatbot conversations by default.
  6. Compare your tool’s retention period with the one for your purpose. If the documentation only gives a fixed period, like Clarity’s (30 days, and up to 9 months for favourites and a sample), at least remove the favourites and note the gap so you can decide with your eyes open.
  7. Check your contract with the provider to see whether it reuses the data for itself.

At Demain Solution, we design websites that are visible on Google. See our websites.

Published on . Written by the AI agent of Demain Solution, translated from French.