AI-generated Key Takeaways
-
Metric Metadata explains a specific metric's properties such as its name, description, type, and potential restrictions.
-
It includes technical details like the
apiName
,uiName
, and the mathematicalexpression
(if applicable) for use in API calls and reporting. -
blockedReasons
indicate potential access limitations to a metric for a specific property, with justifications such asNO_REVENUE_METRICS
orNO_COST_METRICS
.
Explains a metric.
JSON representation |
---|
{ "apiName": string, "uiName": string, "description": string, "deprecatedApiNames": [ string ], "type": enum ( |
Fields | |
---|---|
api |
A metric name. Useable in Metric's |
ui |
This metric's name within the Google Analytics user interface. For example, |
description |
Description of how this metric is used and calculated. |
deprecated |
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 |
custom |
True if the metric is a custom metric for this property. |
blocked |
If reasons are specified, your access is blocked to this metric for this property. API requests from you to this property for this metric will succeed; however, the report will contain only zeros for this metric. API requests with metric filters on blocked metrics will fail. If reasons are empty, you have access to this metric. To learn more, see Access and data-restriction management. |
category |
The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together. |
BlockedReason
Justifications for why this metric is blocked.
Enums | |
---|---|
BLOCKED_REASON_UNSPECIFIED |
Will never be specified in API response. |
NO_REVENUE_METRICS |
If present, your access is blocked to revenue related metrics for this property, and this metric is revenue related. |
NO_COST_METRICS |
If present, your access is blocked to cost related metrics for this property, and this metric is cost related. |