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

Add buttons to reset user's visualisation for Admins and users #10795

Open gaumondp opened 8 years ago

gaumondp commented 8 years ago

REF: http://piwik.org/faq/troubleshooting/faq_21433/ and #10784

Instead of running SQL queries it should be possible for users and Admins to reset users visualisations on a user by user option or everyone.

We need 3 things :

  1. Users needs to be able to reset it by themselves.
  2. Admin should be able to do it on a per user basis.
  3. Admin should have a "reset visualisations for all users"
tsteur commented 8 years ago

Good point 👍

I think it may be possible to add 1) "reset by themselves" easily. 2) and 3) are currently a bit more effort and is probably not realistic. I could maybe add 1) in Piwik 3but not sure where it would be best placed and how it should be named. Any idea?

gaumondp commented 8 years ago

For # 1 it could be simply under Personal Settings, right under "Exclude your visits using a cookie" ('im using 2.16 so it may be different under 3.x).

For # 2 it would make sense in the "User Management" section since we already have the user ID and the SQL query to perform is known.

For # 3 Administration => Users is where it makes sense.

I presume your concern about how easy it is to add those is related to code quality and make these "clean" and not "hackish" like running the queries by hand... I'm just a simple human being so I don't know what's hidden behind my suggestions usually... ;)

As for a title I think "Reset visualisation" with a short description of the impact : "Clicking this will erase visual preferences of your reports like number of rows showed or the kind of graphs you used to see back to a default Piwik installation. No data will be lost, just the way you used to see it if you changed any visualisation setting."

tsteur commented 8 years ago

My concern was it is just more effort to implement #2 and #3 nicely as it involves finding a nice solution, security checks, even more explaining in the UI when it is useful and what it does etc. The user management is already quite bloated and the feature will be rarely needed so it's a bit tricky to solve :)

Maybe we could have a general "reset settings" button under the "exclude cookie" that also resets a user's plugin settings etc? I'm finding it hard to add a "Reset visualization" because it may be a bit confusing although your explanation is really good and useful 👍

Starker3 commented 12 months ago

We've had around 4-5 customers who ran into the issue with reports not loading due to visualisation settings. Some users had to resort to deleting their user accounts and creating a new one to fix the issue as they didn't have direct SQL access. Having the option to do this in the UI would save a good amount of frustration.