Skip to content

Session replay

Watch real visits to your site as they happened, with sensitive content masked.

Session replay rebuilds a visit from the page's structure and the visitor's interactions, so you can watch what they saw and did: where they moved, what they clicked, where they hesitated and where they left. Recordings sit beside the visitor's events, and, when you turn them on, their console logs and network requests, so a drop in a funnel is one click from the sessions behind it.

A recording is not a video of the visitor's screen. It is a reconstruction of your page, which is what makes it possible to mask content before it ever leaves the browser.

Turn on session replay

  1. Make sure the web snippet is installed.
  2. In the app, open Settings → Project → Session replay.
  3. Turn on Record user sessions.

New visits are recorded from that point on, and appear under Session replay in the app.

The same settings page has more options:

SettingWhat it does
Log captureRecords browser console logs with each recording.
Canvas captureRecords HTML canvas elements, such as charts drawn on a canvas.
Recording conditionsChooses which sessions are recorded, for example by page address or event.
Privacy and maskingChooses what is masked. See below.
Network captureRecords the timing of the page's network requests.
Network headers & payloadsAlso records request and response headers and bodies.
Data retentionHow long new recordings are kept.

Recording only a sample of sessions, only sessions longer than a minimum duration, or only sessions where a feature flag is on, is available on plans that include Replay sampling, Minimum duration and Flag-based recording respectively.

Privacy and masking

Recordings are designed to show behaviour, not personal details.

  • Inputs are masked by default. What a visitor types into form fields is replaced with asterisks in the browser, so it is never sent.
  • Text and images can be masked too. Privacy and masking in Settings → Project → Session replay offers three levels: Total privacy (mask all text/images), Normal (mask inputs but not text/images), the default, and Mask passwords only.
  • Your code can mask or block specific parts of a page. Add the mj-mask class to an element to mask its text, or the mj-no-capture class to leave it out of recordings entirely. For example, to mask all text and leave out a payment form, set the replay options when the library starts:
js
// Inside the snippet's start-up options:
session_recording: {
  maskAllInputs: true,
  maskTextSelector: "*",            // mask every piece of text
  blockSelector: ".payment-form",   // do not record this element at all
},

Masking set in your code takes priority over the level chosen in the app. Masking happens in the visitor's browser, before anything is sent to your data region. A blocked element appears in the recording as an empty box of the same size.

How long recordings are kept

Choose how long new recordings are kept under Data retention: 30 days, 90 days, 1 year or 5 years. The periods you can choose are limited by your plan's Replay retention, in months. Without Replay retention in your plan, the limit is 1 year and the period can't be changed. Once a day, any project set to a longer period than its plan allows is lowered to the plan's limit.

Changing the period only affects recordings that start afterwards; existing recordings keep the period they started with. Recordings past their period stop showing in the app and are then deleted. See Events retention for how long events are kept.

Good practice

  • Mask or block anything showing personal, health or payment information.
  • Tell visitors about recording in your privacy policy.
  • Respect opt-outs: a visitor who has opted out is not recorded.

Can't find what you need? Contact support