I’m setting up my user onboarding flow and wanted to know if there is an existing datapoint either in weweb or supabase that tracks the # of user sessions so that I can confirm if that user is in their first session.
Thank you!
I’m setting up my user onboarding flow and wanted to know if there is an existing datapoint either in weweb or supabase that tracks the # of user sessions so that I can confirm if that user is in their first session.
Thank you!
Hi, it should be handled on the backend side if you want it to be cross platform.
Either you decide to track it in a variable stored in your front end (in local storage), but each browsers/devices will have his own counter and it will be reseted if the user clear his browser data.
Or you add a column on your user table and increment it each time your user login or visit your app (workflow on app load > if user is connected > update session column)