# AllSites: Matomo Matomo Multi Sites All Sites ## Documentation Visit summary metrics over one period for every site the credentials give access to, one row per site. Unlike the other reporting tables, it takes no id_site parameter. - Catalog: `Matomo` - Schema: `MultiSites` - Label: Matomo Multi Sites All Sites This is a read-only table function. The Matomo API may not support changing the data or the Invantive UniversalSQL driver for Matomo does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Matomo API. ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `AllSites`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values. Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three. Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third. | Name | Data Type | Required | Default Value | Documentation | |---|:---:|:---:|:---:|---| | `date` | `varchar2` | ☑ | | The date the period is anchored on, or a range such as '2026-08-01,2026-08-31'. | | `period` | `varchar2` | ☑ | | The reporting period: day, week, month, year or range. | ## Columns of Table Function The columns of the table function `AllSites` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `actions_evolution` | `varchar2` | | ☐ | Change in nb_actions versus the equivalent previous period, formatted by Matomo itself as a signed percentage. | | `currency_symbol` | `varchar2` | | ☐ | The site's own configured currency symbol, for the revenue columns on this row. | | `group` | `varchar2` | | ☐ | The site's own configured group, blank where none is set. | | `hits` | `int32` | | ☐ | Number of tracker hits recorded for this site over the period. | | `idsite` | `int32` | | ☐ | The Matomo site ID this row reports on. | | `label` | `varchar2` | | ☐ | The site's own name. | | `main_url` | `varchar2` | | ☐ | The site's own main URL. | | `nb_actions` | `int32` | | ☐ | Number of actions across visits to this site over the period. | | `nb_pageviews` | `int32` | | ☐ | Number of page views on this site over the period. | | `nb_visits` | `int32` | | ☐ | Number of visits to this site over the period. | | `pageviews_evolution` | `varchar2` | | ☐ | Change in nb_pageviews versus the equivalent previous period, formatted by Matomo itself as a signed percentage. | | `period_name` | `varchar2` | | ☐ | The reporting period this row covers, echoed back, for instance 'year'. | | `previous_nb_actions` | `int32` | | ☐ | nb_actions over the equivalent previous period. | | `previous_nb_pageviews` | `int32` | | ☐ | nb_pageviews over the equivalent previous period. | | `previous_nb_visits` | `int32` | | ☐ | nb_visits over the equivalent previous period. | | `previous_range` | `varchar2` | | ☐ | The equivalent previous period the previous_* columns and the evolution percentages compare against, for instance '2025'. | | `previous_revenue` | `double` | | ☐ | revenue over the equivalent previous period. | | `ratio` | `double` | | ☐ | This site's own share of nb_visits across every site in the response. | | `revenue_evolution` | `varchar2` | | ☐ | Change in revenue versus the equivalent previous period, formatted by Matomo itself as a signed percentage. | | `revenue` | `double` | | ☐ | Ecommerce and goal revenue for this site over the period. | | `visits_evolution` | `varchar2` | | ☐ | Change in nb_visits versus the equivalent previous period, formatted by Matomo itself as a signed percentage. |