matomo icon indicating copy to clipboard operation
matomo copied to clipboard

Fix calculation of action custom dimension metrics

Open sgiehl opened this issue 1 year ago • 3 comments

Description:

The calculation of some metrics for action custom dimensions was not correct.

We used to fetch all metrics grouped by custom dimension value and url to be able to directly fill the subtable reports. The main report was then created by aggregating the subtable values.

This results in incorrect numbers, as e.g. metrics like nb_visits or nb_uniq_visitors can't be simply summed up. They need to be fetched separately from the database.

This PR changes the archiving, so it uses two queries. One to fetch the metrics for the main report (grouped by custom dimension value only) and another query to fetch the data for subtable reports (grouped by custom dimension value and url).

fixes #19164

Review

sgiehl avatar Sep 10 '24 14:09 sgiehl

If you don't want this PR to be closed automatically in 28 days then you need to assign the label 'Do not close'.

github-actions[bot] avatar Sep 26 '24 02:09 github-actions[bot]

This PR was last updated more than one month ago, maybe it's time to close it. Please check if there is anything we still can do or close this PR. ping @matomo-org/core-reviewers

github-actions[bot] avatar Nov 08 '24 01:11 github-actions[bot]

If you don't want this PR to be closed automatically in 28 days then you need to assign the label 'Do not close'.

github-actions[bot] avatar Nov 22 '25 02:11 github-actions[bot]