ga4_create_custom_dimension
Registers an event parameter as a GA4 custom dimension so reports can access it as customEvent:. This affects the entire property and only captures data from registration onward.
Instructions
Register an event parameter (for example destination) as a custom dimension so reports can use it as customEvent:. This changes the property for everyone. Data is only available from the day it is registered, not before. Needs the Editor role and the analytics.edit scope. Requires: Google Analytics Admin API (analyticsadmin.googleapis.com) enabled on the quota project; Editor en la propiedad de GA4; OAuth scope analytics.edit. If it fails for access, the error explains how to fix it; ga4_check_access checks everything at once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | EVENT | |
| property | No | Saved property name (see ga4_list_properties). Defaults to the default property. | |
| description | No | ||
| display_name | Yes | Name shown in GA4, e.g. "Destination" | |
| parameter_name | Yes | Event parameter name exactly as the app sends it, e.g. "destination" |