Skip to main content
Session replay records what visitors do on your website, with every form value masked and page text masked wherever you choose. You can watch a session on the Replays page, or ask the agent why visitors from one campaign left before checkout.

What you get

Before you start

  • Session replay is for websites only. It needs dl.js or @datalyr/web version 1.8.1 or later.
  • The SDK must load its container. Sites that set enableContainer: false record nothing.
  • You must be a workspace owner or admin.
  • A workspace set up as a health or wellness business can’t turn it on. See Health and wellness redaction.

Turn on session replay

  1. Open Replays.
  2. Turn on session replay and confirm the add-on.
  3. Open the settings panel on the Replays page to change the sample rate or turn recording off.
Recording starts on the next page load. You don’t change your tracking code.
If your site sends a Content Security Policy, allow https://track.datalyr.com in script-src and https://replay.datalyr.com in connect-src. Without them the browser blocks the recorder, and nothing is recorded.

Pricing

Both add-ons are available on every plan, and neither includes free sessions. Every session counts. You can buy either one alone, or both. The sample rate in the settings panel on the Replays page sets the share of sessions that get recorded, from 1% to 100%. A lower rate records fewer sessions and costs less.

How long data is kept

After 30 days you can’t play a session back, but the agent can still read its summary.

What is and isn’t recorded

Session replay privacy and masking lists every default and the attributes that change them.

Shopify checkout

Shopify checkout pages are not recorded. Shopify runs checkout in a sandbox that no storefront script can see into. A recording ends when the visitor starts checkout. The summary still says whether the visitor reached checkout and whether the order completed when the Shopify integration is connected, because those events come from the Datalyr Shopify pixel and webhooks. It can’t show what happened inside checkout.

In-app browsers

Sessions in the Instagram and Facebook in-app browsers are recorded. Those browsers can close without warning, so the last few seconds of a session can be missing.

Ask the agent about sessions

The agent reads replay data in AI chat and over MCP. Two tools do this: Ask questions like these:
  • Why did visitors from my Meta retargeting campaign add to cart but not check out last week?
  • Show sessions with rage clicks on the cart page.
  • Which pages throw JavaScript errors right before visitors leave?
The agent answers from summaries, not by watching video. Open the session on Replays to check what it describes.

Verify

  1. Visit your website in a normal browser window.
  2. Click through two or three pages.
  3. Close the tab.
  4. Wait about 35 minutes. A session appears once its visitor has been inactive for 30 minutes, which is when the SDK closes the session.
  5. Open Replays.
  6. Confirm that your session appears in the list and plays.

When it does not work

Next