Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Tracking time spent on page

Started by Bruno Baudry 8 years ago · 0 replies · 757 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 complanar, 6 days ago
6 267 2 days ago
Plugins · by BenLaKnet, 3 days ago
1 98 3 days ago
Plugins · by complanar, 4 weeks ago
2 415 3 weeks ago
Plugins · by Vladimir Novak, 2 months ago
3 706 2 months ago
Plugins · by Mathieu Lecouturier, 2 months ago
3 546 2 months ago