Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

Tracking time spent on page

Started by Bruno Baudry 8 years ago · 0 replies · 794 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, 2 days ago
2 81 3 hours ago
Plugins · by renedebaaij, 1 week ago
1 135 3 days ago
Plugins · by Thomas, 6 days ago
1 144 5 days ago
Plugins · by complanar, 4 weeks ago
6 471 3 weeks ago
Plugins · by BenLaKnet, 3 weeks ago
1 295 3 weeks ago