Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Tracking time spent on page

Started by Bruno Baudry 7 years ago · 0 replies · 660 views
7 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 Mathieu Lecouturier, 6 days ago
3 132 3 days ago
Plugins · by Slebeig, 4 weeks ago
1 297 4 weeks ago
Plugins · by Rene, 2 months ago
2 457 2 months ago
Plugins · by Xavier, 2 months ago
2 375 2 months ago
Plugins · by Luka Prinčič, 7 years ago
3 1597 3 months ago