designcourse icon indicating copy to clipboard operation
designcourse copied to clipboard

💡 track sessions manually

Open bcaudan opened this issue 1 year ago • 6 comments

From @scottalguire

Our clients install our widget on their website and we want to start recording a session once opened and stop once closed.

If we init on open, and stopSession on close, a new session will start again automatically when the user interacts with the webpage further, even if they never open our widget again. We really need a way to start/stop sessions manually so the surrounding website isn't polluting our data with irrelevant interactions and errors.

bcaudan avatar Nov 02 '23 14:11 bcaudan

We could consider a dedicated configuration (similar to trackViewsManually) to let you start and stop the session manually instead of our current behaviours of starting the session on init or re-start a session on user interaction. We'll let you know here if we make progress on this topic.

bcaudan avatar Nov 02 '23 14:11 bcaudan

This would be a very welcome feature, especially in the context of SPA. With the pricing model being per session it is undesirable that sessions are created automatically after init has been called. It would be fantastic if the configuration could be changed on the manual start of a new session also.

Bertie-Chapman avatar Dec 18 '23 04:12 Bertie-Chapman

I have a similar issue. I have severall apps within the same launchpad, and we want record only when we are on a specific app. Recording starts well, but it never stops, even using 'stopSessionReplayRecording' or 'stopSession'. Is there any news on this, or any know workaround?

pedro-canelas avatar Jun 19 '24 15:06 pedro-canelas

@pedro-canelas if you think there is an issue with stopSessionReplayRecording or stopSession, please open a bug report with detailed information and context

BenoitZugmeyer avatar Jun 20 '24 09:06 BenoitZugmeyer

@BenoitZugmeyer actually the problem I'm having is that if I use startView several times on the same session, they cumulate. Is there any way of 'closing' a view before starting a new one?

pedro-canelas avatar Sep 06 '24 17:09 pedro-canelas

The Browser SDK tracks only one view at a time. When you start a new view, the previous view is closed. I'm not sure what you mean by "they cumulate".

BenoitZugmeyer avatar Sep 09 '24 08:09 BenoitZugmeyer