Sub topic 10
Comparing segments and applying filters
This chapter assumes you can already build a funnel exploration with ordered steps, and that you know the difference between open and closed funnels. It also assumes you have read an overall completion rate. Here you will learn to split that overall number into groups with segment comparisons, and to narrow the data with filters.
Why one overall completion rate is not enough
A funnel for view_item → add_to_cart → begin_checkout → purchase might show 2.1% completion. That number mixes mobile and desktop users, new and returning users, and paid and organic traffic. If one group converts at 5% and another at 0.5%, the average hides both.
GA4 gives you three tools for splitting the data:
- Breakdown splits each step by the values of one dimension, such as device category.
- Segment comparisons run the same funnel for up to four user groups that you define with conditions. The groups appear side by side.
- Filters remove rows from the whole exploration tab before anything is counted.
The previous chapter covered breakdowns. This chapter covers the other two and shows how they differ from breakdowns.
What a segment is in an exploration
A segment is a saved set of conditions that selects a subset of your data. In explorations you build segments in the Variables column, under Segments, with the + button. Each segment has one of three scopes:
| Scope | Selects | Typical use in a funnel |
|---|---|---|
| User segment | Users who meet the conditions in the date range | "Users who came from a paid campaign" |
| Session segment | Sessions that meet the conditions | "Sessions on a mobile device" |
| Event segment | Individual events that meet the conditions | Rarely useful for funnels (see the gotcha below) |
You can also use a predefined segment, such as one based on a built-in audience, instead of building one. Segments you create in an exploration belong to that exploration unless you share them.
To compare segments:
- Open the funnel exploration.
- In Variables, create or select the segments you want.
- Drag them into Segment comparisons in Tab Settings, or double-click them. GA4 allows up to four.
- Look at the visualization. Each step now shows one result per segment.
How the funnel counts with a segment applied
The working model is that GA4 first selects the data that matches the segment, then runs the funnel on only that data. The funnel does not run on everyone and then filter the output.
Two consequences follow from this model:
- A user can appear in more than one segment. Segment totals therefore do not have to add up to the overall funnel total.
- Whatever a segment removes cannot be counted in any step, even if a step condition would otherwise match it.
Scope matters: user versus session segments
Suppose you compare "Mobile" against "Desktop" users.
- With a user segment defined as device category = mobile, a user who browsed on mobile on Monday and bought on desktop on Tuesday belongs to the segment. A user segment keeps all of that user's events in the date range, depending on how you define it. The Tuesday purchase may be counted for the mobile segment.
- With a session segment defined the same way, only the mobile sessions are kept. The desktop purchase is dropped, and that user looks like they abandoned.
Neither result is wrong. They answer different questions. Use a user segment to ask what happens to people who ever use mobile. Use a session segment to ask how the mobile experience itself performs. State the scope in the segment name, for example "Mobile (session)".
Common errors with segments
The event-scoped segment trap
An event segment keeps only the events that match its conditions. If you build an event segment for event_name = purchase and apply it to a funnel, the earlier steps have no events left, so they show zero or nonsense. Use user or session scope for funnel work.
Conditions that contradict the steps
If a segment requires country = Canada and a step requires country = Germany, the funnel is empty. This looks like a tracking bug, but it is a logic conflict. Check the segment and the steps against each other before you suspect the data.
Segments that are too small
When a segment selects few users, GA4 may apply thresholds or show very small counts that swing wildly. A 50% completion rate based on four users carries no information. Widen the date range or loosen the segment.
Comparing segments of different sizes without context
A 12% completion rate for a segment of 300 users and a 3% rate for a segment of 30,000 users are not equally reliable. Always read the step-1 user count next to the rate.
Filters: narrowing the whole tab
A filter is a condition on a dimension or metric that applies to the whole tab. You add it in Tab Settings under Filters by choosing a dimension, a match type, and a value. You can add several, up to a limit set by the tool, and all of them must hold.
Filters differ from segments in three ways:
| Row | Segment comparison | Filter |
|---|---|---|
| Result | Several groups shown side by side | One restricted data set |
| Effect on counts | Each group counted separately | Rows removed before counting |
| Based on | Users, sessions or events with conditions | A dimension or metric value in a row |
Use a filter when you want to remove something from every number, for example internal traffic or one country that is out of scope. Use a segment comparison when you want to see two groups against each other.
A practical example: an e-commerce team sees low checkout completion. They add a filter excluding country = Test Region, which removes a QA team's test purchases. They then compare "New users" against "Returning users" as two user segments. New users convert at 1.4%, and returning users convert at 4.8%. The overall 2.1% hid a gap of more than three times.
Choosing the right tool
Use this decision order:
- Do you want to exclude data from everything? Use a filter.
- Do you want to compare two or more groups defined by behavior or traits? Use segment comparisons.
- Do you want to see how one dimension, such as device or channel, splits each step? Use a breakdown.
- Do you want to act on the group later, for example in remarketing? Build the same conditions as an audience, which a later chapter covers.
Verifying a segment before you trust it
Before you report a comparison, run three checks:
- Open the segment in the builder and read each condition back in plain words.
- Check the step-1 count for each segment against what you expect from a standard report.
- Switch scope, user to session, and see whether the conclusion survives. If it flips, say so in your findings.
Exercise
You compare two user segments, "Paid search" and "Organic search," in a four-step purchase funnel. Paid search shows 8% completion and organic shows 3%. A colleague adds an event-scoped segment for event_name = purchase and now the first three steps show zero users. Explain why the steps are empty and name the scope you should use instead.
Show answer
An event-scoped segment keeps only events that match its conditions, so every non-purchase event (viewitem, addtocart, begincheckout) is removed before the funnel is evaluated, leaving the earlier steps with nothing to count. Use a user-scoped segment (or a session-scoped one if you want to analyze only sessions) so the full journey of matching users stays in the data.