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

As a user, I want to measure how much time I spend on Facebook, so I know how much I'm working for them #23

Open
vrde opened this issue Jan 23, 2017 · 1 comment

Comments

@vrde
Copy link
Collaborator

vrde commented Jan 23, 2017

This is something easy to start. (See #22 for the original issue).

The most important thing is how we track time. In my opinion we can track:

  1. idle time: when the windows is open but no activity is happening
  2. active time: when the user actually moves or scrolls, interacting with the content of the newsfeed
  3. breakdown per page: can be time spent on my personal newsfeed, or on someone else's newsfeed

Ideas are welcome!

@vecna
Copy link
Member

vecna commented Jan 26, 2017

Backend site, you can sent these stats collected in localstorage, with this endpoint

POST /api/v1/slavereport

The JSON has to be cryptographic signed as the content sent to api/v1/event

the time is kept incremental for every browser (or for every localstorage), the data is saved associate to the privateKey used, so if an user lose a private key, just pass through a new registration.

idletime how you can keep track of the lack of activity? and so, how you can keep track of activity time ? I would just consider if the window is "onfocus" in the sense it is display in the monitor. we can interpolate after with the information sent to events API to guess if an user was away or not

the breakdown per page it is ok, I'll just see as a segmentation of the count above

@vrde vrde changed the title As a user, I want to know how much time I spend on Facebook, so I know how much I'm working for them As a user, I want to measure how much time I spend on Facebook, so I know how much I'm working for them Jan 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants