smartlook / smartlook-client

Official Smartlook client for easy frontend integration.
https://smartlook.com
MIT License
28 stars 9 forks source link

Keeping the path from the visitor #22

Closed mauriciord closed 2 years ago

mauriciord commented 2 years ago

I've got a React application and when the user accesses the pages that don't require authentication like signin and signup, should I use a anonymize() and after I get the user from their authentication, should I call identify() with that userId and others properties from that userId?

Doing this, will the recordings keep the videos before the login and after the login in the same session?

mauriciord commented 2 years ago

sorry about opening this issue here, but I haven't found anything related to this doubt about keeping the session.

Joozty commented 2 years ago

Hi @mauriciord 👋.

Calling anonymize will start a new recording. If you call it before identify it will basically start a new video. To answer your question I would recommend calling anonymize only when the user logs out.

Joozty commented 2 years ago

I am closing this one for inactivity. Feel free to reopen if you have any follow-up questions.