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 · 839 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, 3 weeks ago
2 289 3 weeks ago
Plugins · by renedebaaij, 4 weeks ago
1 263 3 weeks ago
Plugins · by Thomas, 4 weeks ago
1 280 4 weeks ago
Plugins · by complanar, 2 months ago
6 600 1 month ago
Plugins · by BenLaKnet, 1 month ago
1 504 1 month ago