create_custom_metric
Create a custom metric in Google Analytics 4 by defining its parameter name, display name, measurement unit, and scope. Optionally include a description.
Instructions
Create a custom metric. measurement_unit is one of STANDARD, CURRENCY, FEET, METERS, KILOMETERS, MILES, MILLISECONDS, SECONDS, MINUTES, HOURS.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | EVENT | |
| description | No | ||
| property_id | Yes | ||
| display_name | Yes | ||
| parameter_name | Yes | ||
| measurement_unit | No | STANDARD |