0

ページ滞在時間を測定するには?

解決策がある上記のスレッドに出くわしましたが、ユーザーは最初の日付値を簡単に変更して、いつでもページに費やした時間を作ることができました。

ユーザーが変更できないページにユーザーが滞在していた時間の概算をどうにかして取得する必要があります。

何か案は?

4

1 に答える 1

0

First, you need to determine how important seconds or minutes are.

Measure the time spent on page using javascript.

Implement a heart beat with an unique id per loaded page, which runs every n seconds or n minutes to update how long a user has stayed on your page.

Call the same heartbeat function using onbeforeunload too (which fails many times, but when it works it will improve your accuracy).

于 2012-05-31T22:18:33.877 に答える