How is it calculated?
A dimension is a label you group by, unlike a metric, which you count or sum. You send the value with an event or a user, then the report groups those events by each value and counts them.
In Google Analytics 4 the term has a specific meaning. Per Google’s help page About custom dimensions and metrics, you send an event parameter or user property, then register it as a custom dimension with a scope: event-scoped for parameters, user-scoped for user properties, or item-scoped for items in ecommerce events. A standard property allows 50 event-scoped, 25 user-scoped and 10 item-scoped custom dimensions, and Google says you can start reporting on a new one 24 to 48 hours after you create it.
Example
- 12,000 events
- 5,400 with author Ana
- 45% of views
- 1.25% for the blog overall
A blog sends a post view event with an author property. In a month there are 12,000 events: 5,400 with author Ana, 4,200 with Ben and 2,400 with Chen. Grouped by author, Ana’s posts get 45% of views. If 90 of the month’s 150 newsletter signups came from Ana’s readers, her posts convert at 90 ÷ 5,400, about 1.7%, against 150 ÷ 12,000, 1.25%, for the blog overall.
Common mistakes
- Putting the variable part in the event name.
signup_proandsignup_teamare two events. Onesignupevent with aplanproperty can be grouped and compared. - Sending values with high cardinality, such as timestamps or order ids, as a dimension. Every value becomes its own row and the breakdown is unreadable.
- Sending personal data, such as an email address, as a value. Use a user id you control instead.
- Expecting GA4 to report a parameter as soon as you send it. You register it as a custom dimension first, then wait for it to appear, so register before a launch, not after.