ga4_create_custom_metric
Create a GA4 custom metric by registering an event parameter with a specified measurement unit and scope. Requires write access and confirmation.
Instructions
[GA4 WRITE] Create a custom metric. Requires GA4_MCP_ENABLE_WRITES=true and confirm=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Custom metric scope (EVENT). | |
| confirm | Yes | Must be true to apply the change. | |
| property | Yes | GA4 property ID, e.g. "123456789" or "properties/123456789". | |
| description | No | ||
| displayName | Yes | ||
| parameterName | Yes | Event parameter name to register as a metric. | |
| measurementUnit | Yes | Measurement unit. | |
| restrictedMetricType | No | Restricted-metric types (for CURRENCY metrics). |