Navigation Menu

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

Allow Plugins to be enabled/disabled on a website level in addition to the default global scope #19498

Open
JanThiel opened this issue Jul 8, 2022 · 5 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@JanThiel
Copy link

JanThiel commented Jul 8, 2022

Plugins are currently globally activated and thus apply to each website in a single Matomo installation. There are features delivered via Plugins which might not be required or wanted on a single website. This is kind of the case with the built-in "ecommerce" features which can be enabled on a per site base.

Summary

I propose to add the ability to add Plugins on a per site base in addition to the current only existing default of a "global" activation. This would allow Matomo Admins to optimize larger installations by limiting additional features only to those websites which actually require them. In theory this should allow peformance boosts in the processing as well as the UI. As less features should result in better processing and loading times.

I would suggest to allow Plugin devs to determine whether their plugin supports a "global", a "single website" or "both" modes. Whereas a globally activated plugin cannot be disabled for a single website.

There are concepts like these in major systems like WordPress. Which allows a much more granular control of the code being executed in the context of a single website. As I do see strong parallels of a WordPress Multisite setup to the way Matomo works for several websites, it would be a beneficial addition to add this level of control.

This would also raise the awareness of developers that there is a differentiation required between global settings and per site settings. We just came across such an issue with one of the official Matomo Premium plugins where this was kind of "overlooked" and site specific configs were setup and stored globally. Thus leading to data being globally accessible by admins of a single site who should not have access to the information of other sites.

@JanThiel JanThiel added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Jul 8, 2022
@MatomoForumNotifications

This issue has been mentioned on Matomo forums. There might be relevant details there:

https://forum.matomo.org/t/enable-disable-features-on-a-per-user-or-per-website-basis/40188/7

@sgiehl
Copy link
Member

sgiehl commented Jul 11, 2022

Hi @JanThiel
Thanks for your suggestion. I guess for now we need to leave that as it is, and plugin developers need to decide if they want to make their features site specific. Changing that would be a fundamental change in the logic we are currently using plugins. But our product team might consider this for future releases.

@sgiehl sgiehl added this to the For Prioritization milestone Jul 11, 2022
@MatomoForumNotifications

This issue has been mentioned on Matomo forums. There might be relevant details there:

https://forum.matomo.org/t/activate-a-plugin-for-just-one-proprty/46557/5

@craigvc
Copy link

craigvc commented Nov 7, 2022

seconded! More granular permissions needed per website/per admin

@Havouza15
Copy link

Much needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

5 participants