Skip to main content

Documentation Index

Fetch the complete documentation index at: https://revlytics.co/docs/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Revlytics includes built-in session replay powered by rrweb. It captures DOM changes, mouse movements, clicks, and scrolls — then lets you play them back in the dashboard. Session replay is enabled by default. To disable it, add the data-no-replay attribute.

Disable replay

<script
  defer
  data-site="YOUR_SITE_ID"
  data-no-replay
  src="https://revlytics.co/script.js"
></script>

Sample rate

Record replay for only a percentage of sessions:
<script
  defer
  data-site="YOUR_SITE_ID"
  data-replay-sample-rate="25"
  src="https://revlytics.co/script.js"
></script>
This records replay for 25% of sessions. The sampling decision is made once per session and persisted in sessionStorage for consistency.
ValueBehavior
100 (default)Record all sessions
50Record 50% of sessions
0Disable replay (same as data-no-replay)

Privacy

Session replay respects user privacy:
  • Input masking — rrweb automatically masks input values by default
  • Opt-out — Users who call revlytics.optOut() won’t be recorded
  • No replay on sensitive pages — Use URL skip patterns to exclude specific pages

Viewing replays

  1. Go to Dashboard → Sessions
  2. Click on any session to open the replay player
  3. Use the timeline to scrub through the recording

Storage

Replay events are sent to the /api/replay endpoint and stored separately from analytics events. Each replay session includes the full DOM snapshot and incremental changes.