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

Can't categorize activities by URLs #352

Open
salmivas opened this issue Feb 28, 2020 · 21 comments
Open

Can't categorize activities by URLs #352

salmivas opened this issue Feb 28, 2020 · 21 comments

Comments

@salmivas
Copy link

Environment

Browser: Firefox 73.0.1 (64-bit) and Google Chrome Version 80.0.3987.122 (Official Build) (64-bit)
Operating system: Windows 10 Pro 1909
OS Type: 64-bit

Debug info from plugin

Number of active tabs: 1
Tabs:
{
    "id": 20,
    "index": 0,
    "windowId": 109,
    "highlighted": true,
    "active": true,
    "attention": false,
    "pinned": false,
    "status": "complete",
    "hidden": false,
    "discarded": false,
    "incognito": false,
    "width": 1080,
    "height": 1824,
    "lastAccessed": 1582933480468,
    "audible": false,
    "mutedInfo": {
        "muted": false
    },
    "isArticle": false,
    "isInReaderMode": false,
    "sharingState": {
        "camera": false,
        "microphone": false
    },
    "successorTabId": -1,
    "url": "https://learn.javascript.ru/",
    "title": "Современный учебник JavaScript",
    "favIconUrl": "data:image/png;base64,..."
}

Appnames in the Watcher

image
image

The issue

Hi, I use ActivityWatch with Chrome and Firefox extensions. But activities are only tracking by tabnames, not by URL in both browsers. For example, with these settings:
image
image
or
image
i have no information about activity
image
but if I set like this:
image
my activties appear
image

@ErikBjare
Copy link
Member

ErikBjare commented Feb 29, 2020 via email

@ErikBjare
Copy link
Member

Here's the query I mentioned that merges web events into the full timeline of events (which are then classified): https://github.com/ActivityWatch/aw-research/blob/3d8b70255ccb4c32dc5e3e6ecc3647079633a93e/aw_research/classify.py#L249-L282

It has other issues though (which is why we can't just take it straight from there) but the general problem here is that the web UI does two queries: One for AFK + window events, and one for browser events. To fix this issue we'd need to merge those two queries into one.

@salmivas
Copy link
Author

Oh, thanks! Looking forward for updates.

@YAMLcase
Copy link

I also am looking forward to the update. My use case is we use workfront for a ticketing system. when in a ticket, it doesn't display anything meaningful to regex on. i.e., only the subject of the ticket is present which makes each window title unique.

@Tenome
Copy link

Tenome commented Jun 11, 2020

Ahh, so this isn't a feature yet. Unfortunately this means it's useless for tracking, say, Reddit.com since it only counts it if it had Reddit in the tab name. Oh well, hoping it'll get updated in the future.

@ErikBjare
Copy link
Member

ErikBjare commented Jun 11, 2020

@Tenome Unfortunately not. However, we just merged ActivityWatch/aw-webui#203 which is about half of the work required. See my comment there ActivityWatch/aw-webui#203 (review) for what else is required to fix this issue :)

@ErikBjare ErikBjare changed the title Doesn't track activities by URLs Can't categorize activities by URLs Nov 24, 2020
@1000i100
Copy link

In activity Summary, i have Top Browser Domains and when i filter to see what's uncategorized, i have Top Browser Domains that match with my filter ex :
GitHub (incensitive checked)
and github.com is not catch and tagged.

@yutotakano
Copy link

Pardon my naive understanding, but is it a more general approach to perhaps add a classifier based on any event field? This would then allow extending into url: abc.com fields in the web-watcher, and file: /home/abc.js from vim-watcher or vscode-watcher.

@ErikBjare
Copy link
Member

ErikBjare commented Apr 25, 2021

@yutotakano That's how it works right now.

The issue is that the url field is not in the events being categorized in the query. What's needed is something to merge the web events with the window events, like worked on in ActivityWatch/aw-server-rust#179.

@stale stale bot added the stale label Apr 27, 2022
@tbertels

This comment was marked as resolved.

@stale stale bot removed the stale label Apr 27, 2022
@ActivityWatch ActivityWatch deleted a comment from stale bot Apr 27, 2022
@ethanicus
Copy link

ethanicus commented May 11, 2022

Is there any progress on this as of late? Or some workaround? It's confusing to me that it shows youtube.com for instance as being used for ~15 minutes, and has it colored as the Videos category, and yet it doesn't actually seem to show up anywhere on the charts. Would love to have this working.

@ErikBjare
Copy link
Member

ErikBjare commented May 11, 2022

@ethanicus I'm afraid this has stalled a bit due to the difficulty in getting the required transforms right.

Right now, the general workaround is to either:

  1. not rely on URLs if possible
  2. install a browser extension that appends the domain or full URL to the window title (like: this for Firefox, and this for Chrome). That way, you can at least still use URLs for categorization.

I've noted that this is getting a bit untenable (and def an understandable source of confusion), so upping the priority a bit.

@nordson21
Copy link

nordson21 commented Oct 23, 2022

Until the problem is resolved, this can be added to the top of the documentation. It is hard to imagine a person who does not use a browser and who does not need to create categories by domains. I spent several hours to come to your comment. Someone else just won't get to it and uninstall this great program.

2. install a browser extension that appends the domain or full URL to the window title (like: this for Firefox, and this for Chrome). That way, you can at least still use URLs for categorization.

@singalen
Copy link

Can you please describe the technical problem in more detail?

Somebody may be able to help, and this is a really vital feature.

For one, half of my productive and nonproductive time is spent in browser, and putting URLs into tab titles will hurt the quality of life.

@reorx
Copy link

reorx commented Apr 10, 2023

I agree that browsers are becoming a major part of people's daily use, whether we admit it or not.

Although I find it frustrating that I can't categorize most of my browsing time accurately, I will continue to use ActivityWatch and hope that this problem will be resolved. This issue is the only thing preventing it from being a "great" software as opposed to just "usable". Post this reply to vote for it :)

@tutunak
Copy link

tutunak commented Jul 11, 2023

Tracking sites by domain names is a must-have feature. For what another purpose I need a extension for browser. I switch between different projects on different sites, and instead of seeing a site, I see a title. You have mentioned two extensions that add a full URL to the tab. If the can so, it means all extension have such information. Even without extension if I put a mouse over the tab I see the domain name.

Edited: I've checked you already have that information in the database, so why not implement that it's proved a boost in popularity of the app. I spend about half of the working day in browser .

@endolith
Copy link

So the only way to categorize things is through keywords? :/

@DivineMK
Copy link

DivineMK commented Apr 8, 2024

+1

@feerus23
Copy link

Is there any progress on this issue? After all, there are no messages from developers in this topic for more than two years.

@DivineMK
Copy link

Coming from #179, I wonder what is the issues? First of all, I would like to thank you for maintaining such useful tracking utilities. ActivityWatch has been one of the greatest changes to my productivity management. And so far, using the browser extension to add domain to window fits as a workaround. However, this workaround feels like an unnecessary quirk and hence this feature is still highly demanded to users, including myself. I am not a developer myself but I am certain amongst such large user base, many are willing to help you merge this high demand features 🫡. I hope this message reaches you @ErikBjare.

@ErikBjare
Copy link
Member

What we need is something like ActivityWatch/aw-server-rust#179

I have some ideas I might give a try, but it's tricky to get right/accurate (we need extensive tests for such transforms).

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