When moving session replay data, portability must be balanced with security. Portable data is vulnerable data. PostHog helps manage this by allowing you to mask sensitive information before it is ever captured. If you export a session, the PII (Personally Identifiable Information) stays masked in the exported JSON, ensuring that your portable data remains compliant with GDPR and HIPAA. Generating Portable Insights
switch (this.config.storage) case 'localstorage': localStorage.setItem( `session_$this.recording.sessionId`, JSON.stringify(this.recording) ); break; case 'indexeddb': await this.saveToIndexedDB(this.recording); break; case 'memory': // Keep in memory only break; posthog session replay portable
return path.join(' > ');
: Developers can use the Session Recording Snapshot API to programmatically fetch the raw rrweb snapshots used to reconstruct replays . When moving session replay data, portability must be
ph = Posthog('YOUR_PROJECT_API_KEY', host='https://app.posthog.com') If you export a session, the PII (Personally
: PostHog is currently testing a beta feature to export recordings directly as video files for easier sharing in non-technical environments. 2. Self-Hosting for Data Sovereignty
// Error events window.addEventListener('error', this.handleError); window.addEventListener('unhandledrejection', this.handlePromiseError);