解決策がある上記のスレッドに出くわしましたが、ユーザーは最初の日付値を簡単に変更して、いつでもページに費やした時間を作ることができました。
ユーザーが変更できないページにユーザーが滞在していた時間の概算をどうにかして取得する必要があります。
何か案は?
解決策がある上記のスレッドに出くわしましたが、ユーザーは最初の日付値を簡単に変更して、いつでもページに費やした時間を作ることができました。
ユーザーが変更できないページにユーザーが滞在していた時間の概算をどうにかして取得する必要があります。
何か案は?
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).