GA4: Create custom metric
ga4_create_custom_metricCreates a custom event-scoped metric for a GA4 property to track numeric event parameter values.
Instructions
Creates a custom metric (event scope) for a numeric event parameter.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"property": "<property>",
"parameterName": "<parameterName>",
"displayName": "<displayName>"
},
"name": "ga4_create_custom_metric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| property | Yes | GA4 property ID, e.g. '123456789' or 'properties/123456789' | |
| description | No | ||
| displayName | Yes | ||
| parameterName | Yes | ||
| measurementUnit | No | Default STANDARD |