📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
privacy
Blue Mouse9fb9af4c5fe5
diff --git a/docs/content/docs/analytics-dashboard/session-replays.mdx b/docs/content/docs/analytics-dashboard/session-replays.mdxindex e6a21fdc7..5f09e63d7 100644--- a/docs/content/docs/analytics-dashboard/session-replays.mdx+++ b/docs/content/docs/analytics-dashboard/session-replays.mdx@@ -78,6 +78,12 @@ Error details can also point you toward the sessions that experienced a specific## Privacy and retention+Session replays can capture page state, user interactions, and non-password input values depending+on the privacy mode and masking options you choose. We recommend asking users for explicit consent+before starting replay recording, especially on public websites or pages that may contain personal+data. If a user opts out or withdraws consent, do not call `startSessionReplay()` for that visitor,+or stop the active replay if one is already running.+Choose the privacy mode in code when you start the replay:- `total`: masks all text and inputs, and blocks media/canvas content.@@ -87,6 +93,7 @@ Choose the privacy mode in code when you start the replay:Configure replay retention in **Project Settings > Session replays**. Retention changes apply only to newly recorded replay chunks; existing replay chunks keep the expiry date they were recorded with.<Callout type="warn">- Review your privacy policy, consent flow, and masking settings before recording replays on pages- that may contain personal, financial, health, authentication, or other sensitive data.+ Review your privacy policy, consent flow, masking settings, and legal basis before recording+ replays on pages that may contain personal, financial, health, authentication, or other sensitive+ data. This page is not legal advice, and requirements vary by jurisdiction and use case.</Callout>diff --git a/docs/content/docs/script-reference.mdx b/docs/content/docs/script-reference.mdxindex 8e41c41fb..683c3ea6b 100644--- a/docs/content/docs/script-reference.mdx+++ b/docs/content/docs/script-reference.mdx@@ -241,8 +241,9 @@ This function starts recording the current browser session so you can watch it l<Callout type="warn">Session replays may capture page content, user interactions, and non-password input values- depending on the privacy mode you choose. Do not record sensitive pages unless you have reviewed- your masking settings, consent requirements, and legal basis for collecting this data.+ depending on the privacy mode you choose. We recommend gating `startSessionReplay()` behind your+ consent flow where applicable, and not recording sensitive pages unless you have reviewed your+ masking settings, consent requirements, and legal basis for collecting this data.</Callout>Call `startSessionReplay()` after `init()`. If you set `sessionReplay: true` in `init()`, Swetrix preloads the recorder first so starting a replay is faster. If you do not preload it, `startSessionReplay()` loads the recorder when it is called.