Create metric
Create a new metric in the specified project. The expected POST
body differs depending on the specified kind
property.
Path parameters
Headers
Request
A human-friendly name for the metric
Whether to track numeric changes in value against a baseline (true
) or to track a conversion when an end user takes an action (false
). Required for custom metrics only.
The event key to use in your code. Required for custom conversion/binary and custom numeric metrics only.
The percentile for the analysis method. An integer denoting the target percentile between 0 and 100. Required when analysisType
is percentile
.
Response
A human-friendly name for the metric
For custom metrics, whether to track numeric changes in value against a baseline (true
) or to track a conversion when an end user takes an action (false
).
The percentile for the analysis method. An integer denoting the target percentile between 0 and 100. Required when analysisType
is percentile
.