Answer the question
In order to leave comments, you need to log in
How to find out the amount of time a user stays on the site?
I want to determine how much time the user spent on the site. For example, if a user visits the site for the first time (how to determine that it is your first time?), I want to display a message to him in 5 minutes. Then, every 10 minutes, again display information within the framework of this session. If the session is closed, then when the user enters the site again, define it again as a new one
Answer the question
In order to leave comments, you need to log in
How can you tell if it's your first time?
I want to display a message to him in 5 minutes.Either the timer is normal or the timer + sessionStorage, which is cleared when the tab is closed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question