Setup and data
What are custom dimensions? Scopes, cardinality and the privacy limit
A custom dimension is a label you send, such as plan or author, so reports can split by it. GA4 scopes, the ban on names and emails, and an example.
The CrispStats team · · 10 min read
In short
Standard reports already break traffic down by page, source, country and device. Those labels run out the moment the question is about your business rather than about the web: which plan people picked, which author they read, which position the button was in. A custom dimension is how that label gets into the report. It is also how an email address gets into a place it should never be, so the rules matter as much as the setup.
What is a dimension?
A dimension is a label you group a report by, such as country, page or plan. A metric is the number you then count.
Country is a dimension. Sessions by country is a metric sliced by that dimension. The dimension answers which kind. The metric answers how many, how long or how much money. Swap them and the report stops making sense: you do not group by sessions, and you do not add up the word France.
| Row | Dimension | Metric |
|---|---|---|
| Role | A label that groups rows | A number you count, average or sum |
| Changes when | The category changes | The amount changes |
| Built-in examples | Page, source, country, device | Pageviews, sessions, revenue |
| You supply | A custom dimension, such as plan or author | A custom metric, such as video percent watched |
Signups by plan needs the signup count and the plan label. Pageviews by author needs the pageview count and the author label. A report of only labels has nothing to sort. A report of only a total cannot show which plan did the work.
What is a custom dimension?
A custom dimension is a label you define and send yourself, because the tool cannot know your plans, your authors or your button names.
The tool invented page and country. It did not invent the names of your pricing tiers. You send the tier with the event that matters, and the report gains a column it can group on. Google’s help page, About custom dimensions and metrics, describes that extra data as going beyond what Analytics collects on its own. The glossary entry on custom dimensions is the short version, including the worked split by author.
Keep the variable part in the dimension, not in the event name. signup with a plan property can be one row split three ways. signup_starter, signup_team and signup_enterprise are three events that will not line up in a single comparison. The same advice applies to buttons. Tracking button clicks shows how the click itself is sent. The label of the button, its position, or the plan it belongs to is the dimension on that event.
How do event-scoped and user-scoped dimensions differ?
In Google Analytics 4, an event-scoped dimension describes one action, and a user-scoped dimension describes the user across their events.
Google’s page on custom dimensions and metrics distinguishes three scopes. Event-scoped dimensions report on event parameters, the details of one action, such as which link was clicked or which plan a signup named. User-scoped dimensions report on user properties, something you attach to the user rather than to one click, such as the plan the account is on. Item-scoped dimensions describe a product inside an ecommerce items list, such as a colour or a size. You choose the scope when you register the dimension, and it has to match what you sent.
| Scope | What you send | A fitting value | Standard property limit |
|---|---|---|---|
| Event | An event parameter | button position, author, plan on a signup | 50 |
| User | A user property | The plan the account is on | 25 |
| Item | A field on an ecommerce item | Size or colour of a product | 10 |
The choice follows the question. Which button was clicked is about that click, so it is event-scoped. Which plan the account is on, for every later event, is about the user, so it is user-scoped. Sending the plan on every event also works, and it keeps the value on the action even if you never set a user property. Keep one place stable. A plan that lives on the user in March and on the event in April will not form one history.
GA4 also has custom metrics, for numbers rather than labels, with a standard limit of 50, and calculated metrics that combine metrics you already have, with a standard limit of 5. A text value such as a plan name is a dimension. A count or an amount is a metric. Google notes that a parameter value which looks like a number will be treated as a number, so a text code of 94E40 can be read as scientific notation. If the label must stay text, do not send a value that is only digits and an exponent.
What are the GA4 limits?
A standard GA4 property allows 50 event-scoped, 25 user-scoped and 10 item-scoped custom dimensions, and a new one can take 24 to 48 hours to show in reports.
Those are the standard-property quotas on Google’s page. A 360 property allows more: 100 user-scoped, 125 event-scoped and 25 item-scoped. Register the dimension in Admin after the parameter has started arriving. Google says to expect 24 to 48 hours before you can report on it, so register before a launch that needs the breakdown on day one. At the cap, the page says to wait 48 hours after a deletion before adding another.
Quotas are a reason to prefer a built-in dimension when one exists. Page path, source and campaign do not need a custom slot. Spend the event-scoped slots on labels only your business has.
What should you never send as a dimension?
Do not put an email address, a name, a phone number, or any other personal data in a dimension.
A dimension is copied into reports, exports and, in GA4, audiences you can advertise with. An email address in that pipe is personal data in a system built to aggregate. The same goes for a full name, a postal address, or a free-text field a person typed their name into. PII in analytics lists how wide those definitions are. Send plan=team, not the person who chose it.
Google’s best-practices section says a custom dimension whose value is a unique id per user is not allowed or should be avoided, and names the User-ID feature instead. A session id and a timestamp are on the same list, because each value appears once and the breakdown stops being a summary.
What does a worked example show?
In this example, 1,000 signup events split by plan into 600, 300 and 100, which three separate event names would not show as one comparison.
This is an example with round counts. It is not a benchmark. A product sends one event, signup, and one event-scoped property, plan. Over a month the event fires 1,000 times.
| plan | Signup events | Share of signups |
|---|---|---|
| starter | 600 | 60% |
| team | 300 | 30% |
| enterprise | 100 | 10% |
The useful sentences fall out of one column. Most signups are starter. Enterprise is a tenth of signups, which may still be most of the revenue once you join the dimension to payments. Filter to one plan and you can read that plan’s sources. Three event names, signup_starter and the rest, would be three rows and no share of a common total.
Why do some dimensions collapse into one row?
A dimension with a different value on almost every event, such as an order id or a timestamp, stops being a summary, and GA4 collapses the overflow into an (other) row.
Google’s page warns that high-cardinality dimensions can hurt reports and get condensed under an (other) row. A plan is a handful of values. An order id is one row per order, which in this example would be 1,000 rows of 1. You spent a quota slot to learn less than the raw events already showed.
Values that blow up the row count, and what to send instead:
- An email, a name, a user id or an order id. Do not send them as dimensions. If a signed-in product needs a stable id for its own records, keep that id in the product, and send the category you actually want to group by.
- A timestamp, a full URL with a unique query, or a comment someone typed. Group the time into a day the report already has. Strip the query. Send a short type, such as
comment=yes, if all you need is whether it happened. - Free text with inconsistent spelling.
Team,teamandteamare three rows. Decide the vocabulary before you ship the event, and use lowercase values from a list. - A number you meant as a label, when it is really a metric. A video’s percent watched can be a custom metric. As a dimension it becomes dozens of rows, 1 through 100, which is a histogram you did not mean to build.
How do you send a property without a registration step?
CrispStats breaks down every property you send with a custom event. There is no separate step to register a dimension, and no 24-hour wait.
On the Events screen, each event lists its property keys, and each key lists its values with a count and a share. An event keeps up to 40 properties. Keys may be 60 characters, string values are cut at 500, and an event name over 120 characters is dropped. Keep the name short and fixed. Put the plan, the author or the position in a property.
The privacy limit does not relax because registration is skipped. A property value is still a label in a report. Email addresses, names and other personal data do not belong in it. Send author=ana if Ana is a byline you already publish on the site. Do not send the reader’s name, and do not send Ana’s email. A button can carry its own label with an HTML attribute. The click guide shows the attribute. The value on it should be the kind of button, not the person who clicked.
A checklist before you add one
- Name the decision. If you cannot say what you will do differently for one value than another, you do not need the dimension yet.
- Put the varying part in the property, and keep one stable event name.
- List the allowed values. A handful of spellings, lowercase, no dates and no ids.
- Confirm none of the values identify a person. Plan, role, language, position, published author. Not email, name or phone.
- In GA4, register it before the launch and expect 24 to 48 hours. In a tool that breaks properties down immediately, check the first real events the same day, while the spelling is still cheap to fix.
Terms in this guide
More guides
All guides- Engagement · 9 minHow to track button clicksGA4 does not track button clicks by default. Three ways to add them: a gtag call, a Tag Manager trigger, or one HTML attribute, with the steps for each.
- Privacy · 13 minPII examples: what counts as personal data in analytics, by regulatorPII examples from NIST, the GDPR and the CCPA side by side: names, emails, IP addresses, cookie ids and more, and where each one leaks into analytics.
- Setup and data · 10 minGoogle Tag Manager vs Google Analytics: what each one doesGoogle Analytics measures visits and reports on them; Tag Manager only loads tags. What each does, when you need both, and how they work together.