Access old data in CustomReport


We use the custom report plugin and have defined various reports here.

I noticed that there are individual custom reports that do not show any data in the period 01/2022 - 05/2022.

Other custom reports also show data from the beginning of 2022.

What could be the reason?

Could this be related to the fact that the recalculation of the data (after data invalidation) may not have been carried out correctly? Unfortunately, we have often had the problem in the past that our Matomo server would hang due to the large amount of data due to the invalidation of the data.

Do you have any ideas about what this could be and what we can do?

Can the recalculation/ivalidation of data also be triggered manually for a specific custom report?

Thanks for feedback and help.

Best regards


Hello @iparker. We expect the issue with the reports can be solved by invalidating your report data, please see instructions here:

Could you try this invalidation and re-process the reports, and let us know if this resolves the issue for you?


Thanks for the feedback.

So it’s not possible to run this process only for a specific report? Does this always work for the entire site?

Hi @iparker ,

It is not possible to process a specific report, however it is possible to process feature based report, for example: you would like to process Custom reports for a specific website. Please run the command below:

sudo -u apache -E bash -c "php /var/www/html/console core:invalidate-report-data --plugin=CustomReports --dates=YOUR-DATE-RANGE --sites=YOUR-SITEID"

Thanks for the reply.

Does this mean that only the data for the custom reports is recalculated, but not for segments etc.?

Hi @iparker ,

Segments related to custom reports will be processed but not all of them.

A small addendum: Apparently the older values ​​were missing in CustomReports because the config value rearchive_reports_in_past_last_n_months was set to 18.

We have now changed this value (to 30 months) and we now also see the data from early 2022 in the CustomReports.