Sub topic 1
The GA4 data model audiences are built on
Prerequisites
This chapter assumes a GA4 property that already collects data, Editor or Administrator access to that property, and a working understanding of events, event parameters, and user properties. You should also know how to open the Admin page.
Events, parameters, and user properties
GA4 records every interaction as an event. An event is one user action, such as page_view or add_to_cart. An event parameter adds detail about that action, such as the price of an item. A user property describes the person, such as a membership tier, and applies to all of that person's events.
Audiences filter on all three of these elements.
What an audience is and what it is for
A GA4 audience is a saved group of users who match a set of conditions. GA4 adds users who match and removes users who stop matching, for as long as their membership lasts. You can send an audience to Google Ads for remarketing, or use it as a comparison or filter in reports and Explorations.
A Universal Analytics segment applies to one report and disappears when you close it. An audience is saved in the property and can be reused elsewhere.
Registering custom dimensions so you can filter on them
The audience builder cannot read an event parameter or user property until you register it as a custom dimension. In Admin, open Custom definitions, create a dimension, and set its scope to Event for a parameter or User for a user property.
gtag('set', 'user_properties', {
membership_tier: 'premium'
});
gtag('event', 'add_to_cart', {
currency: 'USD',
value: 29.99,
items: [{ item_id: 'SKU_123', item_name: 'Trail Shoes', price: 29.99, quantity: 1 }]
});Custom dimensions apply only to data collected after you create them. Register them before you need them.
Building your first audience with conditions and groups
A condition tests one event or parameter. A condition group holds several conditions that must all match. In the audience builder, conditions inside a group are joined with AND, and groups are joined with OR.
Choosing the right scope for each condition
Each condition has a scope that sets the time window in which it must match.
| Scope | What must match | Example |
|---|---|---|
| Within the same event | All parameter values in one event occurrence | `add_to_cart` with price above 25 |
| Within the same session | Conditions matched by events in one session | A page view and a purchase in one visit |
| Across all sessions | Conditions matched by events in any sessions | Any purchase in the last 30 days |
Pick the narrowest scope that fits your goal. A broad scope enlarges the audience but can include users who did not behave as you intended.
Exercise
You want users who added an item to the cart in one session and then purchased in a later session. Which scope do you choose for the condition pair?
Show answer
Use "Across all sessions." The "within the same session" scope would require both events in one visit, so it would miss these users.