You can now track your web browsing with ActivityWatch


#1

In the last few days, we’ve been working on getting a functional version of the ActivityWatch WebExtension out into the open. It tracks your web browsing just as you’d expect RescueTime to but with the added benefit of full URLs and window titles.

A lot of screentime happens on the web, so this is a significant step towards more detailed data.

It tracks the “audible” tab attribute. This is a good way to detect, for example, if a video or music is being played. This helps us log screentime despite the user not giving any mouse or keyboard input, effectively enabling us to log a prevalent kind of “passive” screentime.

It also tracks the “incognito” tab attribute. This is useful if you, for instance, want to track incognito tabs and later be able to find and remove incognito history easily.

Note: It requires that you have ActivityWatch running locally. It will not currently throw any error messages at you if something goes wrong when trying to connect so you have to check and ensure that data ends up in the bucket while we work on visualizations and improving the UX of the extension.

Speaking of visualization, @johan-bjareholt is also working on a new version of the data querying API which, when done, will allow for easier visualization of web browsing data.

It is available for download on the Chrome Web Store and Mozilla Add-ons.

Please report any issues you have.


#2

It doesn’t work for me. When I go to the Dashboard it says “no data” under Activity -> Browser.

But if I go to Raw Data -> aw-watcher-web-firefox -> Open Bucket, it shows the last 100 pages I visit, so it is collecting data properly.

Also, if I go to the system tray, under Modules, aw-watcher-web-firefox is not listed.

How can I get it to show up in the Dashboard and listed under Modules?


#3

What OS?

I now a guy who has verified that it works with Chrome on macOS but I have not heard of anyone testing it with firefox on macOS, could be something on our side in that case. (If it is, what’s the exact appname of the firefox window? Go to the aw-watcher-window bucket in “Raw buckets” and look at the “appname” field)

I have personally tested both firefox and chrome on both windows and Linux though so that should work.

Since aw-watcher-web is a webextension rather than a actual program it will not be visible in the tray icon, only as a icon in your browser.

If you go to the “Browser” tab in the “Activities” view, does the bucket show up as a option on the “Buckets” dropdown?


#4

Hey Johan,

I’m also having the same problem as the previous poster. I’m using the extension on Linux with Firefox and Chrome. Both the Firefox and Chrome buckets appears as options on the “Buckets” dropdown in the “Browser” tab of the “Activities” view, but no data is shown. However, I can few the Raw Data properly, so it is being collected. See the attached screenshots. I’m a professional software developer, so please don’t hesitate to ask if you need me to help debug this!


#5

Can you check the app names of the browsers? (i.e., go into the window-watcher bucket and check what the app property are for both Firefox and Chrome)


#6

Hey, that’s it! I’m using Firefox Developer Edition and Google Chrome Beta. If I add in “Firefox Developer Edition” to the browser_appnames variable in the browserSummaryQuery function in aw-webui/src/queries.js, it works!

Similarly, Chrome Beta is called “Google-chrome-beta” in the window watcher bucket. Probably also need to update those variables for Chrome Canary and Firefox Beta.


#7

Awesome, could you send in a PR to aw-webui? If you could check the Chrome Canary and Firefox Beta as well that would be amazing :raised_hands:


#8

Done: https://github.com/ActivityWatch/aw-webui/pull/111