How to Record User Session Times

I am currently using xano as a backend. Also note i have very little coding experience. I want to store user session times in my xano backend. Currently i can store session times based on user page navigation within the app (Due to custom workflows attached to buttons) however once the user closes the tab or browser i don’t know how to trigger api post request to xano to update session record. Can someone point me in the right direction.

You can trigger a workflow with the App Workflow → Before Page Unload.

1 Like

I tried this already, however it doesn’t get triggered when the user closes a tab or closes the browser. Only works with in app page navigation

Then you might need to reach for custom code I’m afraid

Yh I figured as much. I’m playing around with a few that aim to add custom event listeners. Haven’t got it to working just yet.