Sub topic 8
Registering a custom dimension in Admin
This chapter assumes you can navigate GA4 Admin, know what an event, a property and a data stream are, and can send an event with gtag.js or Google Tag Manager (GTM). It also assumes you have already seen your parameter arrive in DebugView. If you have not, do that first, because registration cannot fix data that was never sent.
Why registration exists
GA4 stores every event with all of its parameters. The standard reports and Explorations, however, only show the parameters Google has predefined, such as page_location or currency. A parameter you invented, such as plan_tier, is collected but not listed as a dimension in any report picker.
Registering tells GA4 to index that parameter (or user property) under a display name and a scope. Only then does it appear in the dimension list of reports, Explorations, audiences and the Data API.
Registration is a mapping. It does not collect anything new. It links a name in your incoming data to a dimension in the reporting layer.
Who can register, and where
You need the Editor role or higher on the property. Viewers and Analysts cannot create definitions.
- Open Admin and select the correct property.
- Under Data display, choose Custom definitions.
- On the Custom dimensions tab, select Create custom dimension.
- Fill in the form and select Save.
The form fields
| Field | What to enter | Notes |
|---|---|---|
| Dimension name | The label people see in reports | Can be changed later. Use readable words, for example `Plan tier`. |
| Scope | Event, User or Item | Cannot be changed after saving. |
| Description | What the value means and where it comes from | Optional, but valuable for governance. |
| Event parameter, User property or Item parameter | The exact name in your data | Case sensitive. Cannot be changed after saving. |
The last field is the one that causes most errors. It must match the name you send character for character. plan_tier and Plan_Tier are two different parameters. If your event has been seen in DebugView or in recent collected data, GA4 usually offers the name in a drop-down list. Choosing from the list avoids typos. You can also type a name that has not appeared yet.
Matching scope to the data
The scope you pick decides which kind of name GA4 looks for. Picking the wrong one produces a dimension that stays empty.
| Scope | Looks for | Sent with | Report prefix in the Data API |
|---|---|---|---|
| Event | An event parameter | The `params` of an event | `customEvent:` |
| User | A user property | `gtag('set', 'user_properties', ...)` | `customUser:` |
| Item | A parameter inside `items` | An item in an ecommerce event | `customItem:` |
For example, this event sends two event parameters. Each one can be registered as a separate event-scoped dimension.
gtag('event', 'select_plan', {
plan_tier: 'pro',
billing_cycle: 'annual'
});You would create two custom dimensions. The first is named Plan tier, with scope Event and event parameter plan_tier. The second is named Billing cycle, with scope Event and event parameter billing_cycle.
A user property is registered under the User scope. The value then describes the user across events, not a single event.
gtag('set', 'user_properties', {
customer_type: 'subscriber'
});Here you would create Customer type, scope User, user property customer_type.
An item parameter goes inside the items array. Register it with the Item scope.
gtag('event', 'view_item', {
currency: 'USD',
value: 29.99,
items: [{
item_id: 'SKU_123',
item_name: 'Trail Shoe',
item_color: 'green'
}]
});Here you would create Item color, scope Item, item parameter item_color. Note that item_id and item_name are already standard item dimensions and need no registration.
What happens after you save
The process has a few stages, and the delays between them are the part that surprises people.
Three behaviors follow from this.
- No retroactive data. The dimension is populated only for events collected after you register it. Events sent earlier stay without a value in that dimension, even though the parameter was in the raw data. This is why you should register as soon as you start sending a parameter, not when you first need the report.
- Processing delay. A new dimension can take up to 24 hours to appear in standard reports and Explorations. Some show data sooner. Do not delete and recreate the definition because it looks empty after an hour.
- Reports see it only from then on. Comparing a date range that spans the registration date will show
(not set)for the earlier days.
Choosing the right definition before you save
Because scope and parameter name are permanent, check these points first.
- Is the parameter really event-level? If the value stays the same for the whole user, such as a subscription status, a user property is the better fit. As an event parameter it would have to be sent on every event, and reports would need an event filter to avoid inflated counts.
- Is the name already a standard dimension? Many parameters, such as
page_locationormethod, are built in. Registering a duplicate wastes quota. - Is it a number you want to sum or average? Then it belongs in a custom metric, not a dimension. A dimension with a numeric value like
184treats each distinct value as a separate label. - Could the value take thousands of unique values or contain personal data? Avoid it. Later chapters cover high cardinality and personally identifiable information (PII).
If you make a mistake in scope or parameter name, you cannot edit those fields. You archive the definition and create a new one. Archiving does not free up quota immediately in every case, so treat registration as a deliberate step.
Quotas to keep in mind
Each standard property has a fixed allowance of custom definitions. At the time of writing, a standard property allows 50 event-scoped custom dimensions, 25 user-scoped custom dimensions and 10 item-scoped custom dimensions. Custom metrics have their own limit, covered in another chapter. Check Google's current documentation, since these numbers can change. GA4 360 properties have higher limits.
The same parameter can be registered under only one definition for a given scope. If you try to create a second definition with a parameter name that is already registered in that scope, GA4 rejects it.
Editing and archiving
After saving you can edit the dimension name and description. You cannot edit the scope or the parameter name. To stop using a definition, select the three-dot menu and choose Archive. Archived dimensions disappear from report pickers, but the quota they used may remain occupied for a period, so do not rely on archiving to make room quickly.
Verifying that registration worked
Use this short checklist after about a day.
- Open Reports and add a secondary dimension, or open Explore and look for the dimension in the Variables column under Dimensions. Custom dimensions are grouped under Custom.
- Build a simple table with the dimension as a row and Event count as the metric.
- Confirm the values match what you sent, for example
proandannual. - If the values are
(not set), check the parameter name spelling, the scope, and whether the events were collected after registration.
You can also query it with the Data API. The customEvent: prefix is followed by the parameter name, not the display name.
{
"dateRanges": [{ "startDate": "28daysAgo", "endDate": "today" }],
"dimensions": [{ "name": "customEvent:plan_tier" }],
"metrics": [{ "name": "eventCount" }]
}Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Dimension exists but shows only `(not set)` | Name typo, wrong scope, or data predates registration | Compare the name with DebugView. Archive and recreate if wrong. Wait for new data. |
| Parameter missing from the drop-down | GA4 has not seen it yet | Send it once, or type the exact name manually. |
| Cannot find Create custom dimension | Role lower than Editor | Ask a property admin for access. |
| User-level value changes between events | Used a user property for a per-event value, or the reverse | Re-evaluate the scope and recreate. |
| Dimension limit reached | Quota used up | Archive unused definitions and review naming and need. |
Exercise
Your site sends gtag('event', 'select_plan', { plan_tier: 'pro' }). You registered plan_tier as a custom dimension with scope User by mistake. Reports show only (not set). What do you do, and why can't you simply edit the dimension?
Show answer
Scope and the parameter or property name are fixed after saving, so you cannot edit them. Archive the User-scoped definition and create a new custom dimension with scope Event and event parameter plan_tier. The new dimension only fills with events collected after you create it, and it can take up to 24 hours to appear, so earlier events will not show pro.
Exercise
You start sending a new parameter billing_cycle today but plan to register it next month, when the marketing team asks for a report. What problem will you face, and what should you do instead?
Show answer
GA4 does not populate a custom dimension retroactively, so the month of data collected before registration will show (not set) in that dimension. Register the dimension as soon as you begin sending the parameter, ideally right after confirming it in DebugView.