mikenikles / your-analytics

Web analytics platform. Open source, privacy-focused and simple.
https://your-analytics.org
40 stars 8 forks source link

Question: Is it possible to display full url? #252

Open josephlyu opened 3 years ago

josephlyu commented 3 years ago

Hi Mike,

Thanks and congrats on this project! It has been the best privacy-focused analytics tool I have used in terms of accuracy/stability/response time.

I have one use case here: Say I have one domain mydomain.com and several one-page subdomains like subdomain.mydomain.com. I would to aggregate all the information in one dashboard your-analytics.org/mydomain.com (with them all using the same code snippet).

Currently in the section of Top Pages: Pages in mydomain.com are displayed as /subpage (which works fine), and all the subdomain websites are displayed as / (so I can't distinguish).

So I am just wondering: Is it possible to somehow meet this use case (to support multiple websites in one overview dashboard). e.g. have the choice of displaying full URLs in the Top Pages section.

It might not be a very common use case but I thought no harm asking. Any suggestion will be much appreciated!

Many thanks

mikenikles commented 3 years ago

Hi Shangjie,

I clearly missed your message 😒. I haven't worked on this project for a while, but recently decided to spend some more time on it and add a few features and enhancements as there's an ever-growing need and demand for solutions like Your Analytics.

Your use case is interesting, although as you said likely not very common. Nevertheless, I'd like to explore this a bit more to see if I can come up with a good solution.

The most straightforward approach is likely to provide a setting where you can toggle "Display full URL". If it's on, you see the URLs including their domain name, e.g. subdomain.mydomain.com/contact.html or mydomain.com/contact.html. If it's off, you would see /contact.html and have the total page views of the subdomain and the root domain combined.

That would cover your use case, wouldn't it?

PS: I fully understand if you've moved on to another solution by now - I wasn't exactly quick in replying 😉