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

Filters by hostname. Why not? #2710

Open
klawdyo opened this issue Apr 24, 2024 · 9 comments
Open

Filters by hostname. Why not? #2710

klawdyo opened this issue Apr 24, 2024 · 9 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@klawdyo
Copy link

klawdyo commented Apr 24, 2024

Describe the feature or enhancement

Hello,

First and foremost, I want to commend you on the incredible work you’ve done with the Umami project. The simplicity and efficiency of the tool are truly noteworthy.

However, I noticed that it’s currently not possible to search for statistics based on the hostname. This feature is crucial for me because I manage a system that spans multiple subdomains, and I’d like to centralize these statistics.

Could you please explain why this functionality isn’t available? It would be great if we could filter data by hostname.

Thank you in advance for your attention!

@franciscao633
Copy link
Collaborator

We already store hostname in the session table so it wouldn't be too hard to implement. Were you looking for hostname as its own metric card and filter? Users that don't use subdomain would just see a single record like umami.is which would be pretty useless. I guess we can make it configurable where the default would be to disable it.

@franciscao633 franciscao633 added the enhancement New feature or request label Apr 26, 2024
@klawdyo
Copy link
Author

klawdyo commented Apr 26, 2024

You can implement this filter only in API. It would be an advanced option.

@giuseongit
Copy link

I actually already implemented this feature in #2689, I just need someone to review my code

@giuseongit
Copy link

The only thing that is missing is the ability to make it configurable, but for that I'd like some help since I've never worked with next.js

@klawdyo
Copy link
Author

klawdyo commented Apr 29, 2024

One more thing.
In this example: one website managing multiple subdomains.

The "open in new tab" button link displayed in this list is wrong
image

  • I think the hostname used in this list should be the one in the session, not the one in the website registration.
  • I also think the page icon could be displayed in this list. In cases where they are the same "hostname", nothing would change, but it would look better with the pages' favicon. But in the case of multiple sub-domains, it would help a lot.
    Example, like referrers icons:
    image
    All other lists on the page show the icon. It would be more standardized.

@franciscao633 franciscao633 added the bug Something isn't working label Apr 29, 2024
@franciscao633
Copy link
Collaborator

@giuseongit Thanks well take a look. I think were leaning towards just an API change, but if adding a configurable host card makes sense we'll implement.

@klawdyo adding a bug tag. page links should work with subdomains. Thanks for reporting.

@klawdyo
Copy link
Author

klawdyo commented Apr 29, 2024

@giuseongit Thanks well take a look. I think were leaning towards just an API change, but if adding a configurable host card makes sense we'll implement.

I think if have many hostnames, make sense show them. Maybe this checking can be better than a config.

@klawdyo adding a bug tag. page links should work with subdomains. Thanks for reporting.

Just remember group pages by hostnames on SQL, because some pages are common between them.
Example:
Screenshot_20240429-140301.png

  • blue are specific by hostnames
  • yellow are common at all

So "/", for example, should be displayed one time for each hostname.

@snaildos
Copy link

snaildos commented May 3, 2024

bump - wish this feature was added and integrated just like refers.

@rishabhAjay
Copy link

I second this. A card that shows the hostnames and a hostname filter while reporting would be really useful for applications using a lot of subdomains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants