Please, I’m a newbie, I have reviewed the above conversation and tried out some of the scripts but they are not working on wordpress (html).
Please I like to setup something similar on my webpage with HTML. I want a timer (similar to stopwatch) displaying to each webpage visitor (in the footer) the amount of time spent on the page.
Each page visit time to count independently, i.e if you refresh page, it start the time counter afresh. Please Help!
window.onload=function(){
time=0;
}
window.onbeforeunload=function(){
timeSite = new Date()-time;
window.localStorage['timeSite']=timeSite;
}
I have also tried the wordpress plugin ” WP Sessions Time Monitoring Full Automatic”.
I expected it to show a timer or stop watch on each of my webpage counting the amount of time spent on the webpage
Eniade davies is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.