How to stop session replay from getting recorded via UI?
The knowledge sources don't mention a way to stop Session Replay recording directly through a UI (e.g., a toggle in the Mixpanel dashboard). However, there are programmatic (SDK) methods available to stop recording, and one remote configuration option that can help control it without redeploying code.
-------------------------
Stopping Session Replay via SDK Methods
Web (JavaScript)
Call stop_session_recording() to halt any active replay collection: [Capturing Replays (Web)]
mixpanel.stop_session_recording();
iOS (Swift)
Call .stopRecording() to stop active replay data collection: [Capturing Replays (iOS)]
MPSessionReplay.getInstance()?.stopRecording()
Android
Call .stopRecording() similarly: [Capturing Replays (Android)]
MPSessionReplay.getInstance()?.stopRecording()
-------------------------
Controlling via Remote Configuration (Closest to "UI")
For the Web SDK, you can use remote_settings_mode to manage the record_sessions_percent setting directly from Mixpanel's dashboard under Settings > Project > Session Replay, without redeploying code. Setting record_sessions_percent to 0 via remote config would effectively stop new sessions from being recorded. [Remote Configuration]
-------------------------
User-Level Opt-Out
If you want to stop recording for a specific user, Session Replay respects the standard SDK opt-out setting โ opting a user out of tracking will also opt them out of Session Replay. [User Opt-Out]
โน๏ธย Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
