AI-generated Key Takeaways
-
Metrics are quantitative measurements in a report, such as event count.
-
Reports allow for up to 10 metrics.
-
Metrics have a JSON representation including
name,expression, andinvisiblefields. -
The
namefield is the metric's name and can be a custom string if anexpressionis provided. -
The
expressionfield is for mathematical expressions for derived metrics. -
The
invisiblefield determines if a metric appears as a column in the report response.
The quantitative measurements of a report. For example, the metric eventCount
is the total number of events. Requests are allowed up to 10 metrics.
| JSON representation |
|---|
{ "name" : string , "expression" : string , "invisible" : boolean } |
| Fields | |
|---|---|
name
|
The name of the metric. See the API Metrics
for the list of metric names supported by core reporting methods such as If Metrics are referenced by |
expression
|
A mathematical expression for derived metrics. For example, the metric Event count per user is |
invisible
|
Indicates if a metric is invisible in the report response. If a metric is invisible, the metric will not produce a column in the response, but can be used in |

