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!
We have various custom alerts configured on a "day" level. For example, notify us if traffic drops by 25%.
Matomo at times sends out custom alerts on incomplete data.
Example:
Say we had 100K visits on Monday.
It's Tuesday 7PM and Matomo generates reporting data to consider all visits from 0AM-7PM. Result: 70K visits
It's now Tuesday midnight. Since 7PM we had 20K more visits making it 90K visits overall. Matomo has not yet updated the report that says "70k visits" as Matomo only updates reports every X hours (this is configurable).
It's now Wednesday 1AM.
Matomo checks the Custom Alerts conditions. The last report Matomo has available says we had 70K visits.
70K visits is a 30% drop. As a result, Matomo sends an email that we had a drop of 30% traffic putting us into panic mode.
However, we actually didn't have a 30% drop but a 10% drop only and we should not have been alerted.
We also know that some people have on-call teams hooked up against custom alerts and people may be falsely woken up at night because of false alerts.
Note that the same thing may happen for scheduled reports. This is something that would need to be checked.
What should happen?
Matomo should make sure before sending out an alert that the data is based on complete data, not just partial data of a day.
What happened?
We have various custom alerts configured on a "day" level. For example, notify us if traffic drops by 25%.
Matomo at times sends out custom alerts on incomplete data.
Example:
We also know that some people have on-call teams hooked up against custom alerts and people may be falsely woken up at night because of false alerts.
Note that the same thing may happen for scheduled reports. This is something that would need to be checked.
What should happen?
Matomo should make sure before sending out an alert that the data is based on complete data, not just partial data of a day.
How can this be reproduced?
For more information see DEV-17369
I assume you can reproduce it by:
Matomo Version
Matomo 5
Matomo Patch or Minor Version
0
PHP Version
.
Server Operating System
.
What browsers are you seeing the problem on?
No response
Computer Operating System
.
Relevant log output
No response
Validations