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 · 888 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 Cédric, 2 years ago
4 537 2 days ago
Plugins · by DrPen, 1 month ago
2 512 1 month ago
Plugins · by renedebaaij, 2 months ago
1 385 1 month ago
Plugins · by Thomas, 2 months ago
1 403 1 month ago
Plugins · by complanar, 2 months ago
6 730 2 months ago