Have a question that has not been answered before? Feel free to flick us an email at hello@piwik.org and we shall pop the answer up here for all to see. Thanks!
The post Add custom metrics to Custom Reports appeared first on Analytics Platform - Matomo.
Custom metrics is a new feature in Custom Reports (version 6.1.0) that lets you calculate new values by combining existing Matomo metrics in a formula. For example, you can divide Visits by Unique Visitors to calculate the average number of visits per visitor.
These metrics behave like regular metrics in Custom Reports. You can use them in KPI reports and custom report dashboard widgets to display your calculated figures alongside other reporting data.
Custom metrics are part of Custom Reports included in Matomo Cloud. Matomo On-Premise requires the Custom Reports premium plugin.
Create a custom metricSuperusers can manage custom metrics from Administration
> System > Custom metrics, or add custom metrics while creating or editing a custom report:
Click the Add metric dropdown and choose Custom metrics > Add new custom metric.

In the Add new custom metric modal, provide a unique Metric name and optional Description explaining what the metric measures or how it is calculated. This description is shown as a tooltip in the list of custom metrics.

+)−)*)/)0, 1 or 2. For example, display the result of 1.567 as 2, 1.6 or 1.57, respectively.This example creates a custom metric for a daily report by country to compare the average number of visits per unique visitor for that day. The formula is defined as:
Visits / Unique Visitors2
The Visits per visitor column shows the custom metric for the average number of visits per unique visitor, by country, for the selected day.

Matomo calculates custom metrics after aggregating the underlying report data. This means the formula uses the combined metric values for each report row, rather than calculating a result for each individual visit or action and then averaging those results.
For example, Visits / Unique Visitors divides the total visits by the number of unique visitors for each row to calculate the average number of visits per visitor.
As with standard Custom Report metrics, not every custom metric works with every dimension. Matomo does not validate the custom metric against the report’s dimensions.
The metrics used in your formula must be compatible with the report’s selected dimensions. See Valid dimension-metric combinations. If a custom metric cannot be calculated for a dimension, the report displays -.
The #DIV/0! error means the formula is attempting to divide by zero. Check the metric used as the divisor, the value after the division operator, and review the data for the affected row.
#DIV/0! indicates that the calculation cannot produce a valid value. #DIV/0! and - are plotted as 0. A zero shown in these graphs may therefore represent an unavailable result rather than a calculated value of zero.
After creating a custom metric, add it to your Custom Reports to analyse calculated values alongside your standard Matomo metrics. Custom metrics can also be used in KPI reports and dashboard widgets, making it easier to monitor the measurements that matter most to your website.
Previous FAQ: Which dimensions and metrics can be selected in Custom Reports?
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Ask Matomo | 0 | 10.77 | 14-09-2026 |
| 2 | Integrate the Matomo MCP Server with a third-party MCP client | 0 | 9.74 | 20-09-2026 |
| 3 | Configure tracking for Crash Analytics | 0 | 9.15 | 28-09-2026 |
| 4 | Track Goals using server-side tracking | 0 | 12.93 | 03-09-2026 |
| 5 | Do Session Recordings capture browser form validation messages? | 0 | 8.59 | 18-09-2026 |
| 6 | Configure CNIL exemption opt-out tracking with a consent manager (CMP) | 0 | 10.41 | 30-09-2026 |
| 7 | Integrate Silktide consent manager CMP with Matomo | 0 | 8.88 | 30-09-2026 |
| 8 | Configure consent for marketing tags in Matomo Tag Manager | 0 | 8.03 | 04-09-2026 |
| 9 | Integrate Silktide consent manager CMP with Matomo Tag Manager | 0 | 8.03 | 30-09-2026 |
| 10 | Customise pipelines vie | 0 | 19.59 | 09-08-2026 |