papermark icon indicating copy to clipboard operation
papermark copied to clipboard

Improve Time Tracking to Account for Inactivity

Open luksch42 opened this issue 1 year ago • 2 comments

Currently, the time metric in Papermark seems to track the time a document is open, regardless of whether the user is actively viewing it. Recently, one of our recipients left the document open overnight, resulting in an inflated time-on-page of over 1900 minutes. This severely distorted our graphs and statistics, making them unreliable.

Bildschirmfoto 2024-08-15 um 11 09 07

Proposed Solution: Implement a more accurate time tracking mechanism that accounts for user inactivity. Possible approaches include:

  • Inactivity Timeout: Pause the time tracking after a certain period of no user interaction (e.g., 2 or 5 minutes without mouse movement, clicks, or scrolling).
  • Tab Activity Detection: Stop tracking time when the document’s tab is not in focus or the browser window is minimized.

Maybe a mix?

Impact: This change will lead to more accurate and reliable statistics, preventing extreme cases like this from skewing the data and ensuring that the time-on-page metrics better reflect actual user engagement.

luksch42 avatar Aug 15 '24 09:08 luksch42

Thanks @luksch42 for the proposal!

This is indeed a great suggestion.

Inactivity Timeout: Pause the time tracking after a certain period of no user interaction (e.g., 2 or 5 minutes without mouse movement, clicks, or scrolling).

I like that. Specifically mouse/keyboard activity to determine inactivity.

Tab Activity Detection: Stop tracking time when the document’s tab is not in focus or the browser window is minimized.

We are already doing this, however this is not perfect either.

If you want to open a PR to improve this, it would be awesome. Otherwise, we probably can get to it next week.

P.s.: You can email me in support@ with your documentId and accountId and I remove the overstated analytics for you.

mfts avatar Aug 17 '24 10:08 mfts

This issue is not part of oss.gg hackathon. Please pick a different one or start with a side quest

oss-gg[bot] avatar Oct 15 '24 08:10 oss-gg[bot]