Free account
CIPA § 631 Risk

Is LogRocket legal in California?

Session Replay · Updated 2026

LogRocket records session replays with network requests and input data for debugging and analytics. Using it is perfectly legal — but running LogRocket before a visitor consents is what creates exposure under California's wiretapping law.

Is this tracker on your site? Find out free in 30 seconds.

Real browser scan with evidence capture. No signup required to see results.

Why LogRocket can trigger CIPA claims

California's Invasion of Privacy Act (CIPA), Penal Code § 631, prohibits intercepting communications without all-party consent. Since 2022, a wave of plaintiff-firm litigation has applied this decades-old wiretapping statute to website session-replay, chat, and pixel tools — arguing that capturing a visitor's clicks, keystrokes, and form input without consent is an unlawful interception. LogRocket records session replays with network and input data; recording before consent creates CIPA exposure.

Statutory damages run up to $5,000 per violation, and plaintiffs argue each affected visitor session is a separate count — which is why even small sites receive demand letters.

Real-world enforcement

In a landmark action, the California Attorney General reached a $1.2M settlement with Sephora over its use of tracking technologies without honoring consumer privacy choices. Private CIPA suits over session-replay and chat tools have named retailers, healthcare providers, and SaaS companies alike. The common thread: trackers firing before the visitor had any chance to opt out.

How to make LogRocket compliant

  1. Call LogRocket.init() only from your CMP consent callback, not at app bootstrap.
  2. Enable input sanitizers (dom.inputSanitizer: true, network request/response sanitizers) to avoid capturing PII.
  3. Re-scan with 'Verify fix' to confirm no requests reach *.logrocket / *.lr-ingest.com pre-consent.

Consent-gating snippet

import LogRocket from 'logrocket';
cmp.onConsent('analytics', () => LogRocket.init('app/id', {
  dom: { inputSanitizer: true },
  network: { requestSanitizer: r => r, responseSanitizer: r => r },
}));

LogRocket's official privacy/consent documentation →

Check your own site

RegSentry runs a real browser against your site, watches exactly when LogRocket (and every other tracker) first contacts a third-party server, and captures the evidence — including whether it intercepts keystrokes typed into your forms.

Is this tracker on your site? Find out free in 30 seconds.

Real browser scan with evidence capture. No signup required to see results.

← See all tracker compliance guides