Build Segments

Define filters, conditions, and sequences in the Segment builder.

Segments let you isolate and analyze subsets of your Analytics data. You use the Segment builder to configure the individual filters that together constitute a Segment. You then apply Segments to your reports and dashboards so you can see that specific data.

In this article:


Segment-builder user interface

Segment builder.

The Segment builder lets you create the component filters of a Segment based on Analytics dimensions and metrics. You choose a dimension or metric, a comparative operator, and you enter a value to set the condition for the filter. In many cases, you can also choose the scope of the data (hit, session, user). For example:

Language - exactly matches - fr
(dimension - operator - dimension value)

Revenue - per user - > - 100
(metric - scope - operator - metric value)

In some cases, the operator is implied, for example, when you use the Age or Gender dimension:

Age - 18-24 (Age = 18-24)
(dimension - implied operator - dimension value)

A Segment can contain up to 20 filters.


Data scope

Each filter in a Segment has one or more scopes to the data that it defines:

  • Hit: Behavior confined to a single action, for example, viewing a page or starting a video.
  • Session: Behavior within a single session; for example, the goals that users completed during a session, or the amount of revenue they generated during a session.
  • User: Behavior across all sessions within the date range you’re using, up to 90 days; for example all the goals users completed or all the revenue they generated (across all sessions) during the date range.

You can choose the scope for some filters; for other filters the scope is fixed. When you can choose the scope, you see one or more menus that offer those choices, for example:

Conditions filters with data-scope options.

When a filter includes multiple scopes, they function as in the following examples:

Sessions in which the Revenue per hit > 10

Users whose Revenue per Session > 10

Users whose Revenue per hit > 10

Scopes for filter categories, dimensions, and metrics
Category Dimension/Metric Scope
Demographics Age User
Gender User
Language Session
Affinity Category User
In-market Segment User
Other Category User
Location Session
Technology All Dimensions Session
Behavior Sessions User
Days Since Last Session User
Transactions Hit/Session/User
Session Duration Session/User
Date of First Session First Session User
Traffic Sources All dimensions Session/User
Enhanced Ecommerce All dimensions User
Revenue (metric) User + Hit/Session/User
All dimensions & metrics In addition to Hit/Session/User, you can also apply an overall limit to these filters based on specific shopping activities:
  • Performed any action
  • Added to cart
  • Purchased an item
For example:
Users who Purchased an item AND whose Revenue was > 10
Conditions All dimensions & metrics Sessions/Users
Some metrics Sessions/Users + Hit, Session, or User
Sequences All dimensions & metrics Sessions/Users
Some metrics Sessions/Users + Hit, Session, or User



How filters are evaluated

Multiple values within the same dimension are joined with OR logic, for example:

Age: 18-24 OR Age: 25-34

Data is included if it meets either condition.


Multiple dimensions and values within the same category are joined with AND logic, for example:

(Demographics/Age: 18-24) AND (Demographics/Gender: Female)

Data is included when it meets both conditions.


Multiple metric values within the same category are joined with AND logic, for example:

Behavior: Sessions > 1 AND Behavior: Transactions per user > 1

Data is included when it meets both conditions.


Metric values and dimension values within the same category are joined with AND logic, for example:

Ecommerce: Revenue per user > 10 AND Ecommerce: Product = T-shirt

Data is included when it meets both conditions.


Filters from multiple categories are joined with AND logic, for example:

Demographics filter AND Technology filter AND Sequences filter

Data is included when it meets all conditions.



Working with Conditions and Sequences

Conditions and Sequences filters are also based on dimensions and metrics, but they offer some additional options:

  • Rather than being restricted to specific categories, they let you create filters for any dimension or metric.
  • They can include or exclude specific data.
  • They can include AND and OR conditions.
  • When you include user- and session-based rules in the same filter, those are joined with AND logic. Data is included when it meets both conditions.
  • Sequences filters let you determine whether the sequence begins with the first user interaction or with any user interaction.
  • When you include multiple steps in a Sequences filter, you can specify that one step follows another anytime or immediately. The subsequent step can occur in the same session or in a subsequent session.



Sessions vs. Count of Sessions

When you create a Segment, you may encounter some confusion around using the Sessions metric in the Behavior section, and using the Count of Sessions dimension in the Conditions section.

While both Sessions and Count of Sessions provide a count of sessions at the user level, they differ in the time frames they cover:

  • Sessions is the number of times users initiate sessions during the specific date range you are using for the report; for example, Sessions = 5 or Sessions > 5 from January 1 to January 15.
  • Count of Sessions is the number of times users initiate sessions over a lifetime, with the final session in the count occurring during the date range you are using for the report (regardless of whether the preceding sessions occurred within that date range); for example: Count of Sessions = 5 means the users initiated their 5th sessions during the date range of the report; Count of Sessions > 5 means the users initiated their 6th or later sessions during the date range of the report.



Create new Segments

The current limits on Segments are: 1000 Segments per account, 100 segments for any single view. If you have reached these limits, you cannot create or import additional segments. Learn more about Segments limits

If none of your existing Segments address the data you want to analyze, then you can create new Segments and configure them as broadly or narrowly as necessary.

To create a Segment:

  1. Sign in to your Google Analytics account.
  2. Open the View whose data you want to analyze.
  3. Click the Reporting tab. You can start with any report.
  4. Click + Add Segment...
    Audience Overview report, + Add Segment highlighted. open the Segments list.
    Segments list.
  5. Click + NEW SEGMENT...
    Segments list, + NEW SEGMENT highlighted. open the Segment builder.
    Segment builder.
  6. Enter a name for the Segment.
  7. Use the options in the different categories to configure the filters you want for your Segment.

    As you add filters, the Summary pane updates to give an estimate of how many users and sessions will be included in the Segment. This estimate is based on sampled data, and is not intended to exactly match the number of users or sessions that will be included when you finally apply the Segment to your reports.
    Summary update as you add filters.
  8. When you have finished configuring filters, you can preview and test the Segment.

    Click Test to see the the percentage of users and sessions that match your Segment filters.

    Click Preview to see how the Segment affects the current report. If you don’t see the information you want in the report, you can continue to edit the Segment, and then preview again. (When you click Preview, the Test function is automatically invoked.)
  9. When you’re satisfied that the Segment includes exactly the data you want, click Save to close the Segment builder and apply the Segment to your reports.



Copy and modify existing Segments

Existing Segments can provide a good starting point for new Segments.

For example, you could start with the system Segment Sessions with Conversions, make a copy, and then add additional filters for things like Country/Territory and Campaign to focus on data about specific countries where sessions with conversions originated, and about specific campaigns that led to sessions with conversions.

To copy a Segment:

  1. Open the Segments list, and locate the Segment you want to copy.
    Segments list, Sessions with Conversions Segment highlighted.
  2. Click Actions > Copy...
    Segments list; Sessions with Conversions Segment; Action menu > Copy command. open the Segment builder with the configuration for the current Segment:
    Default filter configuration for Sessions with Conversions Segment.
  3. Give the Segment a new name.
  4. Edit the existing filters, and/or add new ones. For example:
    Sessions with Conversions Segment modified to include Country/Territory and Campaign filters.
    In its original configuration, the Segment included only sessions in which Goal Completions were greater than zero. With a little modification, the Segment now restricts those sessions to also include only ones that originated in the United States and that were initiated as a result of the Summer Swimwear campaign.
  5. When you have finished modifying the original Segment, Click Save.



Related resources

Was this article helpful?