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

Zen mode doesn't stay #22545

Open enual opened 3 months ago

enual commented 3 months ago

What happened?

A user enables zen mode. However, if they close their browser and open it tomorrow, zen mode is no longer enabled.

What should happen?

If a user enables zen mode, it should stay in zen mode once they typed in their Matomo URL on their browser.

How can this be reproduced?

  1. Login to Matomo instance (remember me should be ticked)
  2. Enable Zen mode
  3. Close the browser
  4. Open the Matomo instance tomorrow on the same browser and zen mode is no longer enabled

Matomo version

5.1

PHP version

8.2

Server operating system

user not sure

What browsers are you seeing the problem on?

Firefox

Computer operating system

Windows 10

Relevant log output

No response

Validations

sgiehl commented 3 months ago

The zen mode is currently stored in a session cookie, so it will be reset when the session ends. Therefor the current behavior is kind of expected. We can though change that to store that as a account property, but that would also mean that if you have Matomo open in two browsers and activate Zen mode in once of them, the other browser would also switch to zen mode after reload.

randy-innocraft commented 2 months ago

Hi @enual, Thank you for bringing this to our attention and for your valuable input. As @sgiehl has mentioned, the current behaviour is kind of expected. We will forward the suggested enhancement to our Product team for review and future consideration. If you have any additional details or questions, please feel free to share them here.