---
title: "ValuesByDimension (Matomo)"
description: "Matomo Custom Dimensions Get Custom Dimension"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/matomo/Matomo.CustomDimensions.ValuesByDimension
original: https://documentation.invantive.eu/en/datamodels/matomo/Matomo.CustomDimensions.ValuesByDimension
updated: 2026-11-10T15:13:36Z
license: https://documentation.invantive.eu/en/
---

# ValuesByDimension: Matomo Matomo Custom Dimensions Get Custom Dimension

`read only` `REST`

- Catalog: `Matomo`
- Schema: `CustomDimensions`
- Label: Matomo Custom Dimensions Get Custom Dimension

Can only retrieve data.

## Summary

Visits over one period broken down by the value of one custom dimension, one row per value seen, for a dimension configured on the site. A dimension ID which does not exist on the site yields an error rather than zero rows.

## API Source

- Endpoint: `/index.php?module=API&method=CustomDimensions.getCustomDimension&idDimension={id_dimension}&idSite={id_site}&period={period}&date={date}&format=json`

## Performance Characteristics

| Characteristic | Value |
|---|---:|
| Write rows per minute | 3,060 |

The result can be cached on the client.

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `date` | `varchar2` | [x] |  | The date the period is anchored on, or a range such as '2026-08-01,2026-08-31'. |
| `id_dimension` | `number` | [x] |  | The ID of the custom dimension, as configured on the site in Matomo. |
| `id_site` | `number` | [x] |  | The Matomo site ID to report on. |
| `period` | `varchar2` | [x] |  | The reporting period: day, week, month, year or range. |

## Table Columns

The columns of the table `ValuesByDimension` 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 |
|---|---|---|:---:|---|---|
| `avg_time_on_site` | `double` | itgen_mat_avg_time_on_site | [ ] | filters on the platform, writable | Average visit duration among visits carrying this dimension value, in seconds. |
| `bounce_count` | `int32` | itgen_mat_bounce_count | [ ] | filters on the platform, writable | Number of visits carrying this dimension value with exactly one action. |
| `bounce_rate` | `varchar2` | itgen_mat_bounce_rate | [ ] | filters on the platform, writable | Bounce rate among visits carrying this dimension value, formatted by Matomo itself as a percentage. |
| `label` | `varchar2` | itgen_mat_label | [ ] | filters on the platform, writable | The value this custom dimension carried on the visit(s) counted in this row. |
| `max_actions` | `int32` | itgen_mat_max_actions | [ ] | filters on the platform, writable | Maximum number of actions in a single visit carrying this dimension value. |
| `nb_actions` | `int32` | itgen_mat_nb_actions | [ ] | filters on the platform, writable | Number of actions across visits carrying this dimension value. |
| `nb_actions_per_visit` | `double` | itgen_mat_nb_actions_per_visit | [ ] | filters on the platform, writable | Average number of actions per visit, among visits carrying this dimension value. |
| `nb_visits` | `int32` | itgen_mat_nb_visits | [ ] | filters on the platform, writable | Number of visits carrying this dimension value. |
| `nb_visits_converted` | `int32` | itgen_mat_nb_visits_converted | [ ] | filters on the platform, writable | Number of visits carrying this dimension value during which at least one goal was converted. |
| `segment` | `varchar2` | itgen_mat_segment | [ ] | filters on the platform, writable | Matomo's own segment expression selecting exactly this dimension value, usable as the segment argument of another reporting table. |
| `sum_daily_nb_uniq_visitors` | `int32` | itgen_mat_sum_daily_nb_uniq_visitors | [ ] | filters on the platform, writable | Sum, over every day in the period, of the number of unique visitors carrying this dimension value that day - not the same as a period-wide unique count, which Matomo does not sum this way across days. |
| `sum_daily_nb_users` | `int32` | itgen_mat_sum_daily_nb_users | [ ] | filters on the platform, writable | Sum, over every day in the period, of the number of visits with a User ID set carrying this dimension value that day. |
| `sum_visit_length` | `int32` | itgen_mat_sum_visit_length | [ ] | filters on the platform, writable | Sum of the length of visits carrying this dimension value, in seconds. |

