Posthog Session Replay Portable [patched] Jun 2026

return captureElement(document.body);

If your needs outgrow PostHog in the future, you don't have to start from zero. Because you have the raw JSON exports in your own S3 bucket, you can write a custom importer for your new analytics tool. Your historical session data remains an asset, not a hostage. posthog session replay portable

Ensure your PostHog instance is capturing $snapshot events. PostHog automatically writes these to the posthog_session_recording_events table and mirrors them to S3. return captureElement(document

// Replay session const replayer = new SessionReplayer(session, 'replay-container'); replayer.play(); posthog session replay portable