statistics section bundles the settings related to the statistics data of your shop.
statistics* - Basic structure
Below is the basic structure of the statistics node.
Parameter overview
| Parameter | Description |
|---|---|
dataRetention | Retention period of the statistics data per time level (hourly/daily/monthly values). |
statistics.dataRetention - Retention of statistics data
This configuration node defines how long statistics data is retained per time level. In the statistics, figures on visits, orders, and revenue accumulate continuously. These can be stored at the following time levels:
- Hourly values - one data point per hour (for example, to analyze peak times or campaigns),
- Daily values - one data point per day (for example, to compare Black Friday 2025 with 2024),
- Monthly values - one data point per month (for example, to compare revenue growth and customer acquisition).
dataRetention is a singleton and is configured once per shop.
Example configuration statistics.dataRetention
Parameter overview
| Parameter | Type | Description |
|---|---|---|
retainHourlyInMonths | uint | Retention period of the hourly values in months. Hourly values are the finest and most storage-intensive level. The maximum limits them to no more than one year. Possible values: 0 - 12Default: 3 |
retainDailyInMonths | uint | Retention period of the daily values in months. Default: 24 |
retainMonthlyInMonths | uint | Retention period of the monthly values in months. Default: 60 |
monthlyUnlimitedRetention | bool | Activates unlimited retention of the monthly values.true - Monthly values are retained permanently.false - Monthly values are retained according to retainMonthlyInMonths.Default: false |
