Sub topic 8
Registering a Custom Dimension in Admin
Assume you understand GA4 events and can access the property’s Admin area. You should also be able to send an event with Google Tag Manager or basic JavaScript. This chapter focuses on turning an existing parameter or user property into a usable custom dimension.
Why registration is required
GA4 can receive many event parameters and user properties without showing them in standard reports. Registration tells GA4 which values deserve a reportable definition.
A custom dimension is a report field that describes an event, a user, or an item. Its scope determines how GA4 stores and displays the value.
| Scope | Source data | Example |
|---|---|---|
| Event | Event parameter | `plan_tier` on `select_plan` |
| User | User property | `customer_type` for a returning user |
| Item | Item parameter in an ecommerce item | `item_color` for a product |
Choose the scope based on how the value changes. A plan selected during one event is usually event-scoped. A customer classification that remains true across later events is user-scoped. A product attribute belongs to the item scope.
Check the data before registering it
Registering a name does not create the data. Your implementation must send the parameter or property first.
For example, an event-scoped definition might use this parameter:
gtag('event', 'select_plan', {
plan_tier: 'pro'
});Open Admin, select the correct property, and use DebugView to confirm that the event arrives with plan_tier. Check the spelling, capitalization, and value format. plan_tier and Plan_Tier are different names.
A value that does not appear in DebugView usually indicates an implementation or data-stream problem. Registering the name early will not fix that problem.
Create the definition in Admin
- Open the GA4 property.
- Select Admin.
- In the property column, open Data display and select Custom definitions.
- Select Create custom dimension.
- Enter a readable Dimension name. This is the label users will see in reports.
- Choose the correct Scope.
- Enter the exact source name:
- For an event scope, enter the event parameter name.
- For a user scope, enter the user property name.
- For an item scope, enter the item parameter name.
- Add a description that explains the allowed values and business meaning.
- Save the definition.
The interface may label the source field according to the selected scope. Do not enter the event name unless the event name is also the parameter you intend to report.
Avoid common registration errors
Use one definition for one meaning. Do not register status without documenting whether it means payment status, account status, or delivery status. Ambiguous names create misleading reports.
Do not choose user scope merely because a value describes a person. Choose it only when the value should apply to later events from that user. If a visitor can change plans during a session, the selected plan is often better represented by an event parameter.
After processing, add the custom dimension to a report or Exploration and compare its values with DebugView. Reports can take longer to reflect new data than DebugView.
Exercise
You receive customer_type: "subscriber" on every login event, and the value should describe the customer on later events. Which scope should you choose, and what source name should you register?
Show answer
Choose the user scope and register the user property name customer_type. The event name login is not the source name for the dimension.