activitywatch icon indicating copy to clipboard operation
activitywatch copied to clipboard

"Top Browser Domains / URLs" Section empty despite valid raw data; Browser: Chrome Portable 64bit Stable

Open C64C128 opened this issue 4 months ago • 11 comments

  • [x] I am on the latest ActivityWatch version.
  • [x] I have searched the issues of this repo and believe that this is not a duplicate.

Description: The "Top Browser Domains / URLs" section in ActivityWatch remains empty, even though the raw data clearly shows numerous valid entries for aw-watcher-web. This issue persists across multiple sessions and restarts.

Environment:

  • ActivityWatch Version: v0.13.2
  • Operating System: Windows 10 (64-bit) 22H2
  • Browser: Google Chrome Portable Stable 64bit (Version 138.0.7204.101)
  • Browser Extension: ActivityWatch Web Watcher Chrome extension (0.5.3) is installed and active
  • Watcher: aw-watcher-web appears to be running and collecting data correctly
  • Time Period Affected: Continuous, including current session

Observed Behavior:

  • The "Top Browser Domains / URLs" panel shows no data (blank list)
  • Opening the raw logs via the ActivityWatch Web UI shows proper data such as URL, title, timestamp, and duration
  • No console errors visible in browser or ActivityWatch logs

Expected Behavior: The dashboard should list the top domains and URLs based on the collected data from aw-watcher-web.

Steps to Reproduce:

  1. Install ActivityWatch and the Chrome extension (in Chrome Portable)
  2. Use the browser as normal (multiple sites visited)
  3. Open the ActivityWatch dashboard and inspect the "Top Browser Domains / URLs" section
  4. Check raw logs for aw-watcher-web — data is present
  5. The domain list remains empty despite valid underlying data

C64C128 avatar Aug 06 '25 05:08 C64C128

Hi there! As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct. Thanks a bunch for opening your first issue! 🙏

github-actions[bot] avatar Aug 06 '25 05:08 github-actions[bot]

Hi it, might be an issue on the UI side; please check if you have data in these three buckets:

  1. Go to http://localhost:5600/#/timeline
  2. Check if you have for all time periods that you were using browser: i. non-afk status ii. data from browser extension iii. data from window watcher with the correct browser name — it can't be unknown

Example:


Please report also the displayed browser name in ActivityWatch

BelKed avatar Aug 06 '25 10:08 BelKed

This is how it looks like:

Image

This is the addon:

Image

C64C128 avatar Aug 06 '25 10:08 C64C128

Thanks for reporting, the issue is with the browser name — Chrome.exe. Out of the box it should be chrome.exe (everything lowercase)...

BelKed avatar Aug 06 '25 12:08 BelKed

Update: After renaming the executable to chrome.exe, it now works as expected.

C64C128 avatar Aug 07 '25 05:08 C64C128

I also have a similar issue. Based on the conversation above, I checked the name of my browser, but it is in lowercase

Image Image Image Image

rebron1900 avatar Aug 10 '25 07:08 rebron1900

Hi @rebron1900 — the issue is now somewhere else. The Chrome extension likes to stop working after some time (5 minutes of inactivity) because of MV3... I've tried to fix it multiple times but it still doesn't work.

For now is the temporary solution to open the extension console and that keep the extension running indefinitely :)

BelKed avatar Aug 10 '25 11:08 BelKed

Hi @rebron1900 — the issue is now somewhere else. The Chrome extension likes to stop working after some time (5 minutes of inactivity) because of MV3... I've tried to fix it multiple times but it still doesn't work.

For now is the temporary solution to open the extension console and that keep the extension running indefinitely :)

It's really frustrating news.

rebron1900 avatar Aug 24 '25 03:08 rebron1900

Hi @rebron1900 — the issue is now somewhere else. The Chrome extension likes to stop working after some time (5 minutes of inactivity) because of MV3... I've tried to fix it multiple times but it still doesn't work.

For now is the temporary solution to open the extension console and that keep the extension running indefinitely :)

However, my current issue is that I can see the data in the Timeline, but it does not display in the statistical report. Image

rebron1900 avatar Aug 24 '25 03:08 rebron1900

Could you zoom in on one of the events? For it to be correctly paired and displayed in the visualisations, the aw-watcher-window bucket needs to show the browser name accurately...

Here are currently accepted app names for Chrome: https://github.com/ActivityWatch/aw-webui/blob/master/src/queries.ts#L217-L237

BelKed avatar Aug 24 '25 10:08 BelKed

Could you zoom in on one of the events? For it to be correctly paired and displayed in the visualisations, the aw-watcher-window bucket needs to show the browser name accurately...

Here are currently accepted app names for Chrome: https://github.com/ActivityWatch/aw-webui/blob/master/src/queries.ts#L217-L237

Of course, no problem, the browser information I use. https://www.centbrowser.cn/about.html 5.2.1168.76 (正式版本) (64 位) (Portable) (Chromium 132.0.6834.210)

Image

rebron1900 avatar Aug 25 '25 03:08 rebron1900