matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.87k stars 2.65k forks source link

Count www and non-www external links as one in the Outlinks section #6528

Open bahooha opened 10 years ago

bahooha commented 10 years ago

Hello awesome Piwik people,

I was wondering if maybe it would be possible to count the 'www' and the 'non-www' traffic as one in the outlinks section of Piwik. So basicly to count external links on a domain level. On my website I have a lot of external links (it's a site where you can search for photographs of certain events). I deal with about 5000 links and counting. I do not always have control over the links, the majority of the links are scraped automaticly. It's not always possible to let the scraper decide which links should be prefixed with 'www' to make them uniform before adding them to the db.

It would be nice if we could see which links -or domains actually- are more popular than others. Now, with the outlinks page in the actions tab we are able to track a lot of information already and the tree structure makes it easy to see how many clicks a certain event/album on a certain website has recieved. It would be super awesome if Piwik could combine the click stats for -external- links on the same domain.

Since pictures explain more than words, here a few: Current situation: outlinks_now

(future) Feature: outlinks_feature

I do understand that this could cause a problem when links are on a subdomain like "gallery.domain.tld/*", unfortunately I do not know how to overcome that, maybe somebody has a suggestion?

mattab commented 10 years ago

Thanks for the feature suggestion!

bahooha commented 5 years ago

After all these years I would still very much like to see this feature, is it something worth reconsidering, mattab and/or team? Pretty please?

bahooha commented 5 years ago

Is there any chance this will be implemented at any point?

tsteur commented 5 years ago

I reckon it is not planned to work on this soon. Technically, those are even different URLs. I reckon someone with some PHP skills could fairly easily implement this change. All someone would need to do be to listen to eg API.Actions.$methodName.end event and apply the GroupBy filter on the data table to merge these URLs. Similar to https://github.com/matomo-org/matomo/blob/3.10.0-rc2/plugins/Referrers/API.php#L450-L452