tracking-exposed / web-extension

Collaborative tool to support investigation of personalization algorithms.
https://facebook.tracking.exposed/
GNU Affero General Public License v3.0
33 stars 19 forks source link

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 7 years ago

vrde commented 7 years ago

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 commented 7 years ago

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