matomo icon indicating copy to clipboard operation
matomo copied to clipboard

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

Open 9joshua opened this issue 11 months ago • 4 comments

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

9joshua avatar Mar 06 '24 02:03 9joshua

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.

mneudert avatar Mar 19 '24 21:03 mneudert

Another user reported this same problem.

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

atom-box avatar Apr 19 '24 21:04 atom-box

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

atom-box avatar May 07 '24 21:05 atom-box

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

AdamMcAddEm avatar Sep 26 '24 18:09 AdamMcAddEm