Vue / Browser — Recording control
Control session replay recording and event flushing.start()
Start session replay recording. Returns a Promise. When to use: Manually start recording if you didn’t call it during initialization, or restart recording after stopping.stop()
Stop session replay recording. Stops rrweb recorder, network capture, and console capture. When to use: Stop recording when the user navigates away or when you want to disable tracking temporarily.pauseRecording()
Pause recording temporarily. Events are not captured while paused. When to use: Pause recording for sensitive operations (e.g. payment forms, password entry) without fully stopping.resumeRecording()
Resume recording after pausing. When to use: Resume recording after a sensitive operation is complete.flush()
Flush all queued events to the server immediately. Returns a Promise. When to use: Before page unload, before navigation, or when you need to ensure events are sent immediately.dispose()
Shutdown the SDK and clean up resources. Stops recording, flushes events, and removes event listeners. Returns a Promise. When to use: When the app is being destroyed or when you want to completely remove the SDK.Vue example
Vanilla JS example
Example: Conditional recording
See also
- Initialization — createSignal() and start()
- Capture — Track events
