Dimensions are attributes of your data. For example, the dimension city indicates the city from which an event originates. Dimension values in report responses are strings; for example, the city could be "Paris" or "New York". Requests are allowed up to 9 dimensions.
The name of the dimension. See the API Dimensions for the list of dimension names supported by core reporting methods such as runReport and batchRunReports . See Realtime Dimensions for the list of dimension names supported by the runRealtimeReport method. See Funnel Dimensions for the list of dimension names supported by the runFunnelReport method.
If dimensionExpression is specified, name can be any string that you would like within the allowed character set. For example if a dimensionExpression concatenates country and city , you could call that dimension countryAndCity . Dimension names that you choose must match the regular expression ^[a-zA-Z0-9_]$ .
Размеры указываются по name в dimensionFilter , orderBys , dimensionExpression и pivots .
Одно измерение может быть результатом выражения, содержащего несколько измерений. Например, измерение "страна, город": concatenate(country, ", ", город).
DimensionExpression
Используется для обозначения измерения, являющегося результатом формулы для нескольких измерений. Примеры использования: 1) lowerCase(dimension) 2) concatenate(dimension1, symbol, dimension2).
JSON-представление
{// The following is a list of mutually exclusive fields. At most one of the// fields will be set in a response:"lowerCase": {object (CaseExpression)},"upperCase": {object (CaseExpression)},"concatenate": {object (ConcatenateExpression)}// End of mutually exclusive fields.}
Поля
Укажите один тип выражения измерения для DimensionExpression . Ниже приведен список взаимоисключающих полей. В ответе будет установлено не более одного из полей:
Используется для объединения значений измерений в одно измерение. Например, измерение "страна, город": concatenate(country, ", ", город).
Конец взаимоисключающих областей.
CaseExpression
Используется для преобразования значения измерения в один конкретный случай.
JSON-представление
{"dimensionName": string}
Поля
dimensionName
string
Название измерения. Название должно ссылаться на название в поле «Измерения» запроса.
ConcatenateExpression
Используется для объединения значений измерений в одно измерение.
JSON-представление
{"dimensionNames": [string],"delimiter": string}
Поля
dimensionNames[]
string
Названия параметров. Названия должны ссылаться на названия в поле параметров запроса.
delimiter
string
Разделитель, используемый между названиями измерений.
Delimiters are often single characters such as "|" or "," but can be longer strings. If a dimension value contains the delimiter, both will be present in response with no distinction. For example if dimension 1 value = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the response will contain "US,FR,JP".
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2026-09-16 UTC."],[],["This document outlines the structure and usage of dimensions in data reporting, focusing on creating custom dimensions. Dimensions are data attributes, like \"city.\" You can define a `dimension` with a `name` and an optional `dimensionExpression`. `DimensionExpression` allows combining or modifying existing dimensions using `lowerCase`, `upperCase`, or `concatenate` functions. `CaseExpression` changes dimension cases. `ConcatenateExpression` merges dimension values with a specified `delimiter`. Each dimension name is a string with allowed characters.\n"]]