track online time
Unanswered
American Wirehair posted this in #help-forum
American WirehairOP
hey guys, quick general question: how would you guys track the time, a users on the website? we want this for displaying statistics to the user himself. currently we got a SessionTimeTracker component in our layout, which just counts thourhg a ref up and after 5 minutes or unload, it calls the api to save the time. but with that, e.g. the user just could have multiple tabs open or could leav it in the background (i guess) how would we do this better and performant?