Replays

Watch a visit back instead of guessing from charts. Add the recorder next to your Databuddy tracker:

app/providers.tsx
<DatabuddyProvider clientId="YOUR_WEBSITE_ID" replay />
  1. Visitor interacts
  2. Masked in the browser
  3. Uploaded
  4. Listed under Replays
  5. Insights reads it

Recording starts only once a visitor moves the pointer, scrolls, taps or types, so crawlers and unseen tabs never record. It pauses after five minutes idle and resumes when they return. Recordings show under Replays a few seconds later.

Every plan includes 5,000 recordings a month. Paid plans pay from $0.005 per extra recording, falling to $0.0015 at volume. To stop, switch off Session replay in the website's Settings → Setup.

Choose what gets recorded

Recorded?
Typed input, including text in editable areas (contenteditable)Never, whatever you configure
Page textMasked by default; replay={{ maskText: false }} or data-mask-text="false" records it
Element with data-replay-unmaskIts text is shown
Element with data-replay-blockLeft out; an empty box of the same size takes its place
Attribute textMasked: alt, title, placeholder, label, summary, content, aria- labels and descriptions, data- values other than styling ones like data-state and data-open
Link, media and inline style URLsPath only, masked with your maskPaths
Structure, class names, IDs, other attributes, stylesheets and URLs inside themKept
Pages your skipPaths coverNot recorded, however the address is written; with script tags, add data-skip-patterns to the recorder too

Recorders from SDK 3.8.1 and earlier keep label, summary, content and data- values and the query of URLs in inline styles; update the SDK or replay.js. The tracker's beforeSend and filter never see recordings. If your privacy policy forbids any of the kept data, keep session replay off; there is no stricter recording mode yet.

The recorder follows the tracker's opt-out, Global Privacy Control and consent. When consent is withdrawn, it discards what it hasn't sent and forgets the visitor. When consent returns, it records a new visitor from a full snapshot. A consent setting given only to the recorder, such as data-consent-cookie on its script, withholds the website's analytics too while the recorder is on the page.

Mention session recording in your privacy policy, as for any analytics that records how people use your website.

Find the visits worth watching

Replays lists each recording with its visitor, first page, country, browser, device and length, led by the most useful fact, such as a button that did nothing.

FilterMatches
Worth watching, struggled, identified, long visitsDatabuddy's reading of each visit
PersonIdentified user's email, name or user ID
User traitsThe user's current profile, such as plan = pro; every selected trait must match
Recording dateWhen it started, including the start and excluding the end; presets use your browser's timezone
What they were doingBrowsing, evaluating, signing up, using the product, buying or looking for help
What they didAny custom event in that session, such as signup_completed

Filters stay in the URL, so you can bookmark or share a view. If a search hits its candidate limit, the page says results may be incomplete; narrow the filters before trusting an empty result.

In the player, click any activity to jump there. Your custom events appear when they fired. Clicks the page never answered are marked on the timeline and collected under Problems. A visitor's profile marks recorded sessions, and the events stream shows a play button for them.

When the same element fails for several visitors, Insights opens an investigation linking those recordings. Databunny, and agents connected through MCP, can search recordings and ask each match a question, such as whether the visitor compared plans before leaving.

Show recordings in your own app

curl -X POST https://api.databuddy.cc/replays/list \
  -H "x-api-key: $DATABUDDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"websiteId": "YOUR_WEBSITE_ID", "traits": [{"key": "role", "value": "editor"}], "limit": 50}'

Use a server-side key with read:data and access to the website.

EndpointDoes
POST /replays/listRecordings matching person, email, profileId, traits, startedAfter, startedBefore (ISO with timezone). hasMore or truncated means narrow the filters.
POST /replays/eventsOne session's recording chunks by websiteId and sessionId, a page at a time, as URLs that expire after five minutes
POST /replays/recordedWhich of these session IDs have processed recordings
POST /replays/issuesRecurring unanswered clicks

Calls count toward the API rate limits, so cache lists and load a recording when someone watches it. Watching in Databuddy doesn't use your key's allowance, and reading a recording never creates another one.

Script tag options and limits

AttributeDefault
data-client-idrequiredYour website ID
data-mask-texttruefalse records page text; typed input stays masked
data-record-iframesfalseRecords your own embedded pages into the page that frames them. Set it on both pages, only where the framed page allows framing by the parent alone. Another origin hands over only what its own consent and skipPaths allow.
Limit
One recording20 MB
One website10 GB a day
Page sizePages with more than 20,000 elements aren't recorded
Kept for30 days, stored with Tigris, then deleted

How is this guide?