Track 09 · Lesson 8 of 9Shipping safely
Analytics and session replay
Lesson 8 of 9· 6 min
Analytics, error tracking and session replay send what happens in your app to someone else’s servers. Whatever you don’t tell them to leave out becomes data at a third party, visible to everyone on your team with access.
Read a session recording
Change the settings, read what’s stored
Replay settings (rrweb-style)
record({
maskAllInputs: false,
maskTextSelector: undefined,
blockSelector: undefined,
})
// in your vendor's settings:
// record network bodies: on
// scrub URLs in replays: off- ✕ Meta
href: "https://app.example.com/reset?token=8f3kQ2vX" - ✕ FullSnapshot
text: "Ana Pereira", "12 Rua Augusta, Lisbon" - ✕ Input
#email value: "ana@example.com" - ✕ Input
#new-password value: "correct-horse-77" - ✕ Input
#card-number value: "4242 4242 4242 4242" - ✕ Network
POST /api/reset body: {"token":"8f3kQ2vX","password":"correct-horse-77"}
6 of 6 events carry personal data or secrets to the vendor’s servers, and to everyone on your team who can watch replays.
How replay sees your page#
Session replay (most tools use rrweb underneath) records the page’s structure and every change, so a session can be played back like a video. Each recording starts with an event holding the page’s full URL, then a snapshot of every text node, then each keystroke into inputs. Unless you mask them, that includes names, addresses, passwords and card numbers.
Defaults to set on day one#
- Mask all inputs, and mask text you mark as private.
- Block sensitive areas (payment forms, settings pages) entirely.
- Don’t record network bodies or headers; they carry tokens.
- Scrub URLs in replays, events and error reports.
- Record only after consent, and open one real recording to confirm what’s inside.
Check yourself