Sub topic 3
User properties: describing who did it
Assume you understand GA4 events, have access to a GA4 property, and can send data with gtag.js or Google Tag Manager. This chapter focuses on user properties, not event parameters or item parameters.
What a user property is
A user property is a named characteristic that GA4 associates with a user. It describes who the user is or how the user is classified. Examples include:
customer_type:subscriberorvisitormembership_level:goldorstandardaccount_region:northorsouthpreferred_language:enorfr
An event parameter describes one action. For example, plan_tier can describe the plan selected during one select_plan event. A user property describes the person across events.
When a user property changes, GA4 uses the new value for later events. It does not rewrite the value attached to earlier events. This means a property such as customer_type can change from visitor to subscriber after a purchase.
gtag('set', 'user_properties', {
customer_type: 'subscriber'
});This call sets customer_type for the current user. GA4 can attach the value to subsequent events from that user. To analyze it in standard reports or Explorations, register the property as a user-scoped custom dimension.
Choosing a user property
Use a user property when the value should describe the user rather than a single action.
| Question | Use a user property when the answer is |
|---|---|
| What does the value describe? | A characteristic or classification of the user |
| How long should it apply? | Until the value changes |
| Example | `customer_type = subscriber` |
Do not use a user property for values that vary by event. A search term, product ID, or video title belongs on the event that contains it. A product color inside an ecommerce event belongs to the item, not to the user.
A useful test is: “Would this value still describe the user during the next event?” If yes, a user property may be appropriate. If no, send an event parameter instead.
How the value reaches GA4
The sequence has three separate stages:
First, your implementation sends the value. Next, GA4 receives it with later events. Finally, you register the property so that GA4 can expose it as a user-scoped custom dimension.
Registration does not create missing values. It only makes incoming values available for supported analysis after processing. Check the implementation in DebugView before registering it.
Common errors
- Setting the property after the important event has already been sent.
- Sending a property for logged-out users without a reliable identity strategy.
- Using many spellings, such as
subscriber,Subscriber, andpaid. - Sending an email address, name, or other personally identifiable information.
- Treating a user property as a permanent historical label after the user changes category.
Use a small, documented set of allowed values. For example, define customer_type as visitor, lead, or subscriber, and apply the same spelling everywhere.
Registering the property
In GA4, open Admin and find Custom definitions. Create a custom dimension with:
- A display name such as
Customer type - User as the scope
- The matching user property name, such as
customer_type - A description explaining the allowed values
The display name is for analysts. The parameter name is the implementation key, so it must match exactly.
Exercise
A user selects a different subscription plan during one visit. Should the selected plan be a user property?
Show answer
Usually no. Send it as an event parameter on the plan-selection event unless the plan is also being maintained as the user's current account classification.