Page Summary
-
The content describes the metadata for dimensions and metrics accepted in reporting methods.
-
The metadata includes a resource name, a list of dimension descriptions, and a list of metric descriptions.
-
DimensionMetadataprovides details like the API name, UI name, description, and deprecated API names for a dimension. -
MetricMetadataexplains a metric with fields for API name, UI name, description, deprecated API names, type, and expression.
The dimensions and metrics currently accepted in reporting methods.
| JSON representation | |
|---|---|
{ "name": string, "dimensions": [ { object ( |
|
| Fields | |
|---|---|
name |
Resource name of this metadata. |
dimensions[] |
The dimensions descriptions. |
metrics[] |
The metric descriptions. |
DimensionMetadata
Explains a dimension.
| JSON representation | |
|---|---|
{ "apiName": string, "uiName": string, "description": string, "deprecatedApiNames": [ string ] } |
|
| Fields | |
|---|---|
apiName |
This dimension's name. Useable in Dimension's |
uiName |
This dimension's name within the Google Analytics user interface. For example, |
description |
Description of how this dimension is used and calculated. |
deprecatedApiNames[] |
Still usable but deprecated names for this dimension. If populated, this dimension is available by either |
MetricMetadata
Explains a metric.
| JSON representation | |
|---|---|
{
"apiName": string,
"uiName": string,
"description": string,
"deprecatedApiNames": [
string
],
"type": enum ( |
|
| Fields | |
|---|---|
apiName |
A metric name. Useable in Metric's |
uiName |
This metric's name within the Google Analytics user interface. For example, |
description |
Description of how this metric is used and calculated. |
deprecatedApiNames[] |
Still usable but deprecated names for this metric. If populated, this metric is available by either |
type |
The type of this metric. |
expression |
The mathematical expression for this derived metric. Can be used in Metric's |