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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Tracking time spent on page

Started by Bruno Baudry 7 years ago · 0 replies · 558 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 Rene, 1 week ago
2 46 1 week ago
Plugins · by Xavier, 4 weeks ago
2 55 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1181 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 49 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 73 2 months ago