Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Time Tracking to Account for Inactivity #564

Open
luksch42 opened this issue Aug 15, 2024 · 1 comment
Open

Improve Time Tracking to Account for Inactivity #564

luksch42 opened this issue Aug 15, 2024 · 1 comment

Comments

@luksch42
Copy link

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.

@mfts
Copy link
Owner

mfts commented Aug 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants