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.8k stars 2.64k forks source link

[Bug] 'Compare to' feature in the calendar produces odd chart and metric anomalies #21993

Open 9joshua opened 7 months ago

9joshua commented 7 months ago

What happened?

When using the 'compare to' option in the calendar evolution charts often show large erroneous values such as 6,000% conversion rates and single days with way more visits and conversions than actual. This can also lead to zero values for some metrics. This was reproduced with Cloud and On-premise... image image image image

What should happen?

An accurate presentation of metrics for both periods.

How can this be reproduced?

Create a 'compare to' view in the calendar for a specific period and view charts and metrics.

Matomo version

5.0.2

PHP version

8.2

Server operating system

Linux

What browsers are you seeing the problem on?

Chrome

Computer operating system

NA

Relevant log output

No response

Validations

mneudert commented 7 months ago

These are probably cases of "double formatting", will forward for prioritization so we can check if there is a reasonable fix to apply until #20701 is being worked on.

Most of the formatting issues are likely also reproducible with Matomo 4.x.

atom-box commented 6 months ago

Another user reported this same problem.

We have noticed that when we compare two time periods...conversion rates of >100% are displayed

atom-box commented 5 months ago

What happened?

:slightly_frowning_face: Failure! Look at the rate in these. These data are exactly 100x too large, compared to the other two screenshots. This bug seems to happen whenever using the "compare to previous time period". : conversion-rate-Goals-April15-fail-with-comparison png ecommerce conversion rate fail Comparison

What should happen?

:slightly_smiling_face: Success! Look at the rate in these. The bug disappears as soon as you make time period not a comparison-to-prior-time-period conversion-rate-Goals-April15-success-NO-comparison png png ecommerce conversion rate success No Comparison png

How can this be reproduced?

  1. Go to either Matomo>>Goals>>Overview or Matomo>>Ecommerce>>Overview
  2. In the evolution graph, choose "Conversion Rate"
  3. Notice the rate for any point on the graph
  4. Switch the time period to "Compare to Previous Period" option
  5. Notice the rate for the same point as 3, above. (Notice that it is exactly 100 times too great now.)

Matomo version

5.0.3 On Premise

AdamMcAddEm commented 3 weeks ago

I am also dealing with this issue. Impacts a parent company that leverages Matomo heavily for ecommerce with +30 brands and teams.