Sub topic 9
Comparing User Groups with Segments
Prerequisites
Assume you know the GA4 event-based data model and have created a basic Path exploration. You should also know the difference between users, sessions, and events. A segment is a rule that selects a subset of this data for analysis.
Segments help you ask questions such as:
- Do purchasers follow a different path from non-purchasers?
- Do mobile users leave at a different step from desktop users?
- Do users from an email campaign reach the checkout page more often than users from paid search?
A segment is used inside an exploration. It does not permanently change your GA4 data.
Add segments to a path exploration
- Open Explore and open an existing Path exploration, or create a new one.
- In the Variables panel, find Segments.
- Click the plus sign to create or select a segment.
- Choose a segment type, such as User, Session, or Event.
- Define the conditions. For example, create a user segment where
purchaseoccurred. - Apply the segment to Segment comparisons in the tab settings.
GA4 then shows the path for each selected segment. Depending on the exploration layout, each segment may appear as a separate comparison or tab. Keep the path settings the same while comparing groups. Use the same starting point, ending point, date range, and node type.
A user segment selects users who meet a condition at some time in the selected date range. A session segment selects sessions that meet the condition. An event segment filters matching events. These choices can produce different results.
| Segment type | Example condition | Best used to ask |
|---|---|---|
| User | User completed a purchase | How do customers behave? |
| Session | Session came from organic search | What happens during search visits? |
| Event | Event has `device_category = mobile` | Which matching events occur on mobile? |
Compare equivalent paths
Start with a clear comparison. For example, compare purchasers and non-purchasers after users view a product page.
Read the same node position in both paths. If purchasers commonly select add_to_cart while non-purchasers commonly return to a product list, that difference may suggest a useful investigation. It does not prove that the product page caused the purchase.
You can also compare traffic groups, such as organic and paid search. Check whether both groups have enough users and sessions to support a meaningful comparison. A path with a small number of users can change sharply when only a few users take a different action.
Avoid common errors
Do not compare a user segment with a session segment as if they measure the same population. Their denominators differ. Also check whether the segment condition occurs before or after the path step you are studying. A segment based on a later purchase can describe earlier behavior, but it cannot establish that the earlier behavior caused the purchase.
Use segments to discover differences, then validate important findings with conversion reports, experiments, or BigQuery.
Exercise
You want to compare the paths of users who purchased with users who did not purchase. Which settings should remain the same in both paths, and what should you avoid concluding?
Show answer
Keep the date range, node type, starting or ending point, and path settings the same. Avoid concluding that a path caused the purchase; the comparison shows an association that needs further validation.