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.63k stars 2.62k forks source link

[Feature requests] Make Matomo users level above Matomo account levels so Matomo users can access multiple accounts without creating one user per Matomo account #21988

Open SW-Vincent opened 6 months ago

SW-Vincent commented 6 months ago

I work in an agency with about 20 Matomo accounts, so it'd be really nice if i could use as one user create / access multiple Matomo domains.

Summary

I think i am not the only one with this need, as it is pretty common for businesses to ask an agency to handle Web Analytics. Being able to have some user account (would it be shared accounts like GA or manager accounts like Google Ads) would have several benefits :

I do not know how it would apply on wordpress / on-premise versions.

Your Environment

michalkleiner commented 6 months ago

Hi @SW-Vincent and thanks for the suggestion! I'm not 100% sure I understand the structure of the accounts and which type could access which instance/which measurables, could you maybe do a little diagram or try to explain it in different terms? Since you mention not being sure about on-premise, would this be for Matomo cloud? And wanting a single account to access multiple Matomo instances? They are still technically separate instances, so it might be possible using some login federation service/LDAP and appropriate roles. But happy for you to clarify if I'm getting it right. Thank you!

SW-Vincent commented 6 months ago

Indeed, the whole point -in my opinion- is either :

michalkleiner commented 6 months ago

Right, thanks for the clarification. I'll assign the enhancement suggestion to the product team for consideration. Thank you for the suggestion!

sgiehl commented 5 months ago

This is actually something we cannot implement in core or for Wordpress. Each Matomo instance uses it's own database (even on cloud). And an instance can't access the database of another instance. So to implement something like this, it requires a global database, every instance additionally has access to. It could be something we can implement on cloud. For on premise/Wordpress I guess a separate plugin would be needed to handle that.