create_analytics_custom_dimension
Create a GA4 custom dimension destructive
Description
Register an event parameter the site ALREADY SENDS as a custom dimension, so reports can break down by it (plan tier, content category, logged-in state…). TWO THINGS TO TELL THE USER BEFORE CALLING: a GA4 custom dimension CANNOT BE DELETED — only archived — and a property is capped at 50 EVENT-scoped dimensions, so a duplicate or a typo permanently burns one of them. Call list_analytics_definitions first to see what already exists. GET THE TWO NAMES THE RIGHT WAY ROUND: parameterName is the event parameter GA4 is already collecting (e.g. "customer_tier") and displayName is only the label shown in reports — swapping them silently produces a dimension that always reads "(not set)". Registering a dimension is NOT retroactive: it only collects from the moment it is created. The property is the NUMERIC id from list_analytics_properties. Needs the Google Analytics connection to have edit access on the property.
Parameters
| Parameter | Type | Description |
|---|---|---|
propertyrequired | string | the NUMERIC GA4 property id from list_analytics_properties — it must be one SHARED with this profile, and any other is refused by name |
parameterNamerequired | string | the event parameter GA4 already collects, e.g. "customer_tier" — NOT the report label |
displayName | string | the label shown in GA4 reports — defaults to parameterName |
scope | "EVENT" | "USER" | "ITEM" | default EVENT. The 50-dimension cap applies to EVENT scope |
description | string | optional description, ≤150 characters |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/create_analytics_custom_dimension.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_analytics_custom_dimension","arguments":{"property":"<string>","parameterName":"<string>"}}}
CLI
hermoso call create_analytics_custom_dimension --json '{"property":"<string>","parameterName":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
list_analytics_definitionsList a GA4 property’s key events and custom dimensionslist_analytics_propertiesList the GA4 properties shared with this profilecreate_analytics_key_eventMark a GA4 event as a key event (conversion)list_analytics_metadataWhat a GA4 property can be askedarchive_analytics_custom_dimensionArchive a GA4 custom dimensionanalytics_realtimeWho is on the site right now (GA4 realtime)delete_analytics_key_eventStop counting a GA4 event as a conversionanalytics_reportRun a GA4 reportcreate_analytics_custom_metricRegister a GA4 custom metricarchive_analytics_custom_metricArchive a GA4 custom metric (one-way)