Measuring online time on website

后端 未结 7 394
广开言路
广开言路 2021-01-24 05:01

I would like to measure how much time a user spends on my website. It\'s needed for a community site where you can say: \"User X has been spending 1397 minutes here.\"

A

7条回答
  •  北荒
    北荒 (楼主)
    2021-01-24 05:44

    Two factors are working against you -

    1. You can only collect point-in-time statistics (page views), and there's no reasonable way to detect what happened between those points;

    2. Even then, you'd be counting browser window time, not user time; users can easily have multiple tabs open on multiple browser instances simultaneously.

    I suspect your best approximation is attributing some average amount of attention time per click and then multiplying. But then you might just as well measure clicks.

提交回复
热议问题