Page Summary
-
Metric metadata describes a metric, including its API name, UI name, description, deprecated API names, type, and expression.
-
The
apiNameis the name used in the Metric'snamefield, whileuiNameis the name displayed in the Google Analytics user interface. -
deprecatedApiNameslists older names that are still usable for a period, after which only theapiNamewill be valid. -
The
typeindicates the data type of the metric, andexpressionprovides the mathematical formula for derived metrics.
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 |