DocsOpen Henkan Vision
Reference

How recording works

What the Vision script records, when a visit becomes a session and when timelines and patterns appear.

Up to date with v1.64.8Updated 30 November 20263 min read

Here is what happens between a visitor opening your site and a session appearing in Vision, and how long each step takes.

What the script records#

The script uses rrweb to record the structure of each page and what changes on it:

  • Clicks, scrolling and mouse movement, with the element each click lands on and how far down each page the visitor scrolled.
  • Typing, as masked characters.
  • Navigation between pages and window resizes.
  • JavaScript errors.
  • Requests to your site that fail or take 2 seconds or more: the method, the address without its query or ids, the status and the time, never what was sent or received. Requests to analytics, advertising, consent and testing tools are left out.
  • How a visitor typed in a text field, noted when they leave it: keys added, keys deleted and time spent, never which keys. Password fields are skipped.

Stylesheets are recorded with the page, so the replay looks like your site. The script also reads purchase events from the Google Tag Manager data layer to detect conversions.

Before anything leaves the browser, the script masks form values and sensitive text and leaves out password and payment fields. See Privacy and security.

The script is small (under 40 KB compressed) and loads asynchronously. It sends data in batches every 10 seconds on desktop and 15 seconds on mobile, with a final batch when the visitor leaves the page.

Network failures and server errors may be retried once. Rejected batches are not retried; when recording credentials expire, the script renews them for the next batch.

When a visit becomes a session#

Vision keeps a visit only when it looks like a real person using the site.

  1. Consent The visitor accepted analytics consent, unless the site records without a banner. See Recording consent.
  2. Not excluded The browser was not excluded with Exclude my browser, and the visitor is not a known crawler or bot.
  3. Long enough The recorded events span at least 30 seconds, and data arrived in at least two batches 20 seconds apart.
  4. Active The visitor moved the mouse, scrolled, clicked or typed. Pages left open in the background are discarded as Idle tabs (no activity).

Visits that do not meet these rules are never stored and never count toward your quota. Vision counts them in the Ignored figure, with a reason.

Session boundaries#

RuleValue
A visit across several pagesOne session, as long as the visitor stays on your site in the same tab.
New session after inactivityAfter 30 minutes without activity, the next action starts a new session.
Session closed by Vision35 minutes after the last activity.
Longest session2 hours. A longer visit continues in a new session.
Largest session5 MB of recorded data.

From visit to insight#

StepWhen
Session listed in SessionsShortly after the first batches arrive.
Timeline and friction tagsA few minutes after the session ends.
Automatic AI summary (sessions with friction)After the timeline, within the daily limit.
Patterns updatedRegularly, by a background job.

Sampling near your quota#

When your organisation has used 90% of its monthly quota, Vision records half of the new visits until the month resets. Cart and checkout pages are always kept, so purchase journeys are never sampled out.

Skipped visits are counted as Sampled out. See Usage and limits.

Data retention#

DataKept for
Raw replays30 days
Timelines, friction tags, summaries and patterns13 months

After your plan's replay retention (30 days by default, 90 days on POC and Max) a session keeps its timeline and summary, and the replay shows Replay expired (kept 30 days) — timeline still available, with your number of days.

Cleanup runs hourly in batches with a 25-second working budget. It deletes expired recording rows before removing their files, and also sweeps files older than two hours that no longer have a recording row. Visitors without sessions are removed after 13 months of inactivity. Super-admins can see recent background runs, remaining sessions to process, errors and the oldest raw chunk in Admin.