ga4_create_custom_metric
Register an event parameter as a custom metric in GA4. Specify measurement unit, scope (EVENT), and optionally set restricted metric types for cost or revenue data.
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). |