create_custom_dimension
Create a custom dimension in Google Analytics 4 by specifying property ID, parameter name, display name, and scope (EVENT, USER, or ITEM) to define how event parameters or user properties are tracked.
Instructions
Create a custom dimension. parameter_name is the event parameter / user property key; scope is 'EVENT', 'USER' or 'ITEM'. display_name may contain only letters, numbers, underscores and spaces.
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_id": "<property_id>",
"parameter_name": "<parameter_name>",
"display_name": "<display_name>"
},
"name": "create_custom_dimension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | EVENT | |
| description | No | ||
| property_id | Yes | ||
| display_name | Yes | ||
| parameter_name | Yes |