Segments
Save a set of filters as a segment and draw up to 3 of them on the Overview chart.
A segment is a set of filters saved under a name, such as Mobile visitors or Desktop in the US. The Overview draws up to 3 segments as lines on its chart, next to all your visitors, so you can see one group move against the rest. Segments come with Insight and Foresight.
Save a segment
- Open the Overview and click the values that describe the group, such as Mobile under Devices and Organic search under Channels. Each click adds a filter.
- Pick Save as segment at the end of the filter bar.
- Name the segment. The name starts from the filters, and you can change it.
A segment stores filters, not people, so it counts past visits too and its numbers show up at once for any range. Owners, admins and editors can save segments, and a site can have up to 30.
Compare segments
The comparison menu in the header lists your segments under the period choices. Pick up to 3. Each one draws a line in its own color on the chart. The dashed line of the earlier period hides while segments show, and the changes on the cards still compare with the earlier period.
The legend above the chart shows each line's total for the range. For counts, such as visitors or pageviews, it also shows each segment's share of the total. The cross next to a segment takes it off the chart. The chart's table view adds a column for each segment.
Filters on the page apply to every line. With Country is United States set, the Mobile visitors line counts mobile visitors from the United States, and the first line reads Matching the filters.
The Segments page
Segments, under Explore in the sidebar, lists every segment with its filters, its key, and its visitors and share for the range in the header. From there:
- Compare adds the segment to the Overview chart. With 3 already on, it takes the place of the first one you added.
- Click a segment's name to open the Overview filtered by it.
- Rename changes the name. The key stays, so links and API calls keep working.
- Delete removes it at once, with Undo in the message that follows.
A visitor can be in more than one segment, so the shares can add up to more than 100%.
How segments count
Days imported have daily totals only, so segment lines count tracked days alone. When the range holds imported days, the legend says so and hides the shares.
In the API
The query endpoint takes segment with a segment's key, such as "segment": "mobile". Its filters join the ones in filters, and the answer counts the visitors who match both. Share links cannot use segments.
Plans
On Glance, the comparison menu and the Segments page show what segments do and the plan that has them. An organization that moves to Glance keeps its segments and can delete them.