Configuration: Matomo Matomo Custom Dimensions Configuration
insert REST
- Catalog:
Matomo - Schema:
CustomDimensions - Primary Keys:
idcustomdimension - Label: Matomo Custom Dimensions Configuration
Can retrieve data and change data using insert.
Summary
A custom dimension slot configured on a site - up to five per scope, per Matomo's own free-edition cap. The value ValuesByDimension.id_dimension refers to.
API Source
- Endpoint:
/index.php?module=API&method=CustomDimensions.getConfiguredCustomDimensions&idSite={id_site}&format=json
Performance Characteristics
| Characteristic | Value |
|---|---|
| Write rows per minute | 3,620 |
The result can be cached on the client.
Parameters
| Name | Data Type | Required | Default | Documentation |
|---|---|---|---|---|
id_ |
number |
The Matomo site ID to list configured custom dimensions of. |
Table Columns
The columns of the table Configuration are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.
| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|---|---|---|
active |
char |
itgen_mat_active | filters on the platform, writable | Whether the dimension is active. A deactivated dimension still occupies its own slot - verified 2026-08-28, Matomo has no way to free a slot once used. | |
case_ |
char |
itgen_mat_case_sensitive | filters on the platform, writable | Whether extraction pattern matching is case-sensitive. Matomo's own parameter is 'caseSensitive'. | |
description |
varchar2 |
itgen_mat_description | filters on the platform, writable | Dimension description. Matomo answers an empty string rather than null when none is set. | |
extractions |
varchar2 |
itgen_mat_extractions | filters on the platform, writable | Extraction rules deriving this dimension's value from a URL or another Matomo value, as JSON text - empty when none are configured. Read-only for now, see the remark above. | |
idcustomdimension |
int32 |
itgen_mat_idcustomdimension | filters on the platform, writable | Dimension ID, assigned by Matomo on insert - a slot number scoped to (idsite, scope), not globally unique. Never written. | |
idsite |
int32 |
itgen_mat_idsite | filters on the platform, writable | Site ID the dimension is configured on. Matomo's own configureNewCustomDimension() takes it as 'idSite'. | |
index |
int32 |
itgen_mat_index | filters on the platform, writable | Slot number within (idsite, scope) - 1 through 5 on the free edition. Assigned by Matomo on insert, never written. | |
name |
varchar2 |
itgen_mat_name | filters on the platform, writable | Dimension name, shown throughout Matomo's own reporting UI. | |
scope |
varchar2 |
itgen_mat_scope | filters on the platform, writable | Where this dimension is captured: 'visit' or 'action'. Set on insert; configureExistingCustomDimension has no parameter to change it afterwards. |