Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Tracking time spent on page

Started by Bruno Baudry 8 years ago · 0 replies · 871 views
8 years ago

Hi all,

I am trying to write a plugin that would track the time the user spent on a page.
What would be the best way ?
I was thinking of storing a cookie with timestamp and url and retrieving it on next page process or with JS onbeforeunload ?

Any good advice is welcome.

Bruno

👍 1

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 1 month ago
2 478 1 month ago
Plugins · by renedebaaij, 2 months ago
1 350 1 month ago
Plugins · by Thomas, 1 month ago
1 375 1 month ago
Plugins · by complanar, 2 months ago
6 699 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 642 2 months ago