Sub topic 10
Using Custom Dimensions and Metrics in Reports and Explorations
Assume you know what GA4 events are, can open Reports and Explorations, and have already registered at least one custom definition. This chapter shows how to turn those definitions into useful questions and avoid common reporting mistakes.
Start with the question, then choose the definition
A custom dimension describes a category or label. A custom metric describes a number. For example:
plan_tieris a custom dimension with values such asfree,pro, andenterprise.billing_cycleis a custom dimension with values such asmonthlyandannual.video_length_secondsis a custom metric containing a number.basket_sizeis a custom metric containing a count.
The scope determines where GA4 can use a definition.
| Scope | What it describes | Example question |
|---|---|---|
| Event | One action | Which plan was selected? |
| User | A user characteristic | How many subscribers returned? |
| Item | One product in an ecommerce event | Which color sold most often? |
An event-scoped dimension can describe a select_plan event. It does not automatically describe every event from that user. A user-scoped dimension can apply to later events from the same user, depending on when the property was set.
Use custom definitions in Reports
In a standard report, open the report that contains the relevant event or metric. Use the report customization controls to add a custom dimension or metric when the report supports customization. You can also use comparisons to isolate values such as plan_tier = pro.
A useful workflow is:
- Select a report related to the action, such as Events or Monetization.
- Add the custom dimension as a breakdown.
- Add a metric such as Event count, Users, or Revenue.
- Filter or compare values to focus on one segment.
- Check the date range and comparison period.
- Interpret the result according to the definition's scope.
Suppose you registered plan_tier as an event-scoped custom dimension. A table grouped by plan_tier can show how many select_plan events each tier generated. It does not prove that every event from a user belonged to that tier.
Custom metrics need an appropriate aggregation. A duration metric might be summed to calculate total viewing time, while an average can better describe typical viewing time. Check whether the metric represents a count, currency amount, duration, or another unit before drawing conclusions.
> Note > Registration does not change the data that was collected. It makes matching collected values available as a named definition in supported reports and analyses. GA4 may need processing time before the definition appears.
Analyze custom definitions in Explorations
Explorations are useful when a standard report does not answer the question. In an Exploration:
- Create or open an exploration, such as Free form.
- Import the custom dimension and metric in the Variables panel.
- Drag the dimension into Rows, Columns, or a segment definition.
- Drag metrics into Values.
- Add filters for event names, dimension values, dates, or audiences.
- Compare tabs when you need different views of the same data.
For example, place plan_tier in Rows and eventCount in Values to compare plan selections. Add billing_cycle as a column to see whether annual or monthly plans were selected more often.
A dimension and metric must describe compatible data. An item-scoped dimension may be meaningful with ecommerce item data but misleading when paired with unrelated page-view events. If a value is missing, verify that the event or item actually included the parameter and that the selected date range is after registration.
Reuse definitions carefully
You can use custom dimensions in audience conditions when the scope matches the audience rule. For programmatic queries, the GA4 Data API identifies registered definitions by names such as customEvent:plan_tier, customUser:customer_type, and customItem:item_color. Use the exact parameter name and scope from the registration.
Exercise
You registered plan_tier as an event-scoped custom dimension. What is a safe interpretation of a report showing 200 pro events?
Show answer
The report contains 200 matching events whose plan_tier value was pro. It does not necessarily mean 200 users had the pro plan for all their activity.