Track 09 · Lesson 8 of 9Shipping safely

Track 09 · Shipping 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
  1. ✕ Metahref: "https://app.example.com/reset?token=8f3kQ2vX"
  2. ✕ FullSnapshottext: "Ana Pereira", "12 Rua Augusta, Lisbon"
  3. ✕ Input#email value: "ana@example.com"
  4. ✕ Input#new-password value: "correct-horse-77"
  5. ✕ Input#card-number value: "4242 4242 4242 4242"
  6. ✕ NetworkPOST /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

Your replay tool masks all inputs. What can still leak?