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.95k stars 2.66k forks source link

Request to limit/grant user's access to certain geo locations #20837

Open kylejacksonb opened 1 year ago

kylejacksonb commented 1 year ago

It would be nice if I could limit certain user to only be able to see traffic from certain countries.

Summary

We have the ability to hook Matomo up with a Geo location database like Maxmind. Assuming Geo location is working, I would like to provide tracking data to certain users who are in charge or certain regions, but exclude data outside of their region. It could work like a tagging system. Each country has a tag and I could assign those tags to a user.

Your Environment

heurteph-ei commented 1 year ago

Hi @kylejacksonb This seems the same as: #19636 / #19074

kylejacksonb commented 1 year ago

Hi @heurteph-ei

I agree that both of those issues seem similar, but they could also bypass my request entirely. The 'views' from #19636 could solve my request, but if I can't limit a user's access to a certain set of 'veiws' then that feature would not quite solve my issue. Issue #19074 could also solve my problem, but I don't see any mention of limiting users to view information from specific geo location. Again, it's close to what I want, but if the request is interpreted by the developer a certain way, my request would remain unresolved.

It also doesn't bode well that #19074 hasn't had any activity for over a year and it has been 6 months for #19636.

michalkleiner commented 1 year ago

Thanks for your suggestion @kylejacksonb and the explanation how it differs to the other suggested duplicates. I think there's scope for merging all the three tickets together and working on the enhancement with the goal of covering all the mentioned use cases.

I'll move this for prioritisation but due to the backlog size we can't promise it will get worked on any time soon, so if anyone wanted to make a code or plugin contribution it will be most welcome.

kylejacksonb commented 1 year ago

@michalkleiner Thank you for your consideration. I agree, it's a good idea to merge these 3 requests.