Segments and containers
Purpose: Filter and compare visitor groups.
Who this page is for
| Audience | Why it matters to you |
|---|---|
| Analysts | Essential skill |
| Business users | Ask better questions |
Segments and Containers
A segment is a filter that isolates a subset of your data.
Simple segments
Segment 1: Mobile visitors
- Condition: Device = Mobile
- Result: Only shows mobile traffic
Segment 2: High-value customers
- Condition: Revenue > 100
- Result: Only shows customers who spent >100
Segment 3: Bounce
- Condition: Visits = 1 AND Page Views = 1
- Result: Only bounced visits
Building segments
Method 1: Quick segment (temporary)
- Right-click a value in report
- "Create segment from selection"
- Applies to current report only
Method 2: Save segment (reusable)
- Components → Segments → + (New)
- Define rules
- Save with name
- Use in any report
Containers
When you build a segment, you choose a container:
| Container | Scope | Use case |
|---|---|---|
| Hit | One request | "Show me only checkout page views" |
| Visit | Session | "Show me sessions with a purchase" |
| Visitor | Person | "Show me people who ever purchased" |
Example:
- Hit: "Page Name = Checkout" → only checkout hits shown
- Visit: "Page Name = Checkout" → only visits that had a checkout shown
- Visitor: "Page Name = Checkout" → only visitors who ever visited checkout
Complex segments
Combine multiple conditions:
Segment: "High-value mobile customers"
Container: Visitor
Condition 1: Device = Mobile
AND
Condition 2: Revenue > 100
Result: Visitors who are on mobile AND have spent >100
Segment: "Checkout abandoners"
Container: Visit
Condition 1: Page Name = Checkout
AND
Condition 2: Events != Purchase
Result: Visits that saw checkout page but did NOT purchase
Segment stacking
Apply multiple segments to one report:
Report: Visitors by Page Name
+ Segment 1: Mobile visitors
+ Segment 2: US only
+ Segment 3: New visitors
Result: Mobile US new visitors by page
Each segment further filters the data.
Segment examples: Example Super
"Form submitters"
- Hit container
- event5 (form submit) exists
"Newsletter members"
- Visitor container
- eVar1 = "newsletter_signup"
"Complaint form completers"
- Visit container
- Page Name contains "complaint"
- AND event5 fires
---
Next: Calculated metrics