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

[Bug] Wrong range shown in e-mail reports #22790

Closed JVC-MSF closed 3 days ago

JVC-MSF commented 3 days ago

What happened?

I have define a Personal e-mail report to be sent daily.

When I receive it in the morning, the range show the right range.

But when I click in the "Send report now" link, I receive the report with the right data, but in the range it has only today date.

What should happen?

I expect to have the right range shown in the report, even if I ask for having it sent manually.

How can this be reproduced?

Matomo version

5.2.0

PHP version

8.2.24

Server operating system

Debian 12

What browsers are you seeing the problem on?

Firefox

Computer operating system

Debian 12

Relevant log output

No response

Validations

sgiehl commented 3 days ago

Hey @JVC-MSF,

This is expected behavior. The Send report now button will trigger to send the report for the date/period that is currently selected in the date picker. The report should also contain the data for that period.

JVC-MSF commented 3 days ago

Thanks for the feedback.

I find it counterintuitive, but if this is how it is, nothing to say.

sgiehl commented 3 days ago

I agree that it might not necessarily be what everyone expects and there already have been a couple of reports around this topic. Improving the UI so it's more clear what to expect from this feature will at some point be handled with https://github.com/matomo-org/matomo/issues/19674