rrweb-io / rrweb

record and replay the web
https://www.rrweb.io/
MIT License
16.88k stars 1.44k forks source link

How to find inactive sessions while recording? #1070

Open sharanraj124 opened 1 year ago

sharanraj124 commented 1 year ago

Hi, I used rrweb recorder in my app for recording its working well. My issue is I got a long video with 2 events only, so I decided to send a new session in inactivity

How to find inactive sessions?, could you help for us

Example: Enter the site doing some activity than didn't touch any event and mouse actions still same session data is coming from the site

eoghanmurray commented 1 year ago

Hi...

This sounds like something that depends on your application! At https://statcounter.com/ we start a new session after 30 minutes of inactivity on a page. It's also important to properly classify what counts as real user activity (clicks, entering text, scrolling etc.) and what does not (e.g. background page mutations).

During replay it's possible in the default replayer to skip over inactive parts of a session, I'm not sure what the defaults are for the built in replayer, e.g. a 5 second gap between 'user' events could count as an inactive period.

Let me know if this is off track re. your question!