Building Segments

The Segment Builder provides a canvas to drag and drop Metric Dimensions, Segments, and Events to segment visitors based on container hierarchy logic, rules, and operators. This integrated development tool lets you build and save simple or complex segments that identify visitor attributes and actions across visits and page hits.

There are several ways to access the Segment Builder:

Analytics Tool Path

Analytics top navigation

Go to Analytics > Components > Segments

Analysis Workspace

Go to Analytics > Workspace, open a project and click + New > Create Segment

Reports & Analytics

Go to Analytics > Reports, open an existing report and click the Segments icon in the left navigation, then click Add.

Ad Hoc Analysis

Report Builder

Add or edit segments in Report Builder

  1. Simply drag a Dimension, Segment, or Metric Event from the left pane to the Definitions field.

    The default top-level Hit container is shown after dragging an element to Definitions. You can change the container type to Visit or Visitor from the Show drop-down menu.

  2. Set the operator from the drop-down menu.
  3. Enter or select a value for the item selected.
  4. Add additional containers if needed, using And, Or, or Then rules.
  5. After placing the containers and setting the rules, see the results of the segment in the validation chart at the top right. The validator indicates the percentage and absolute number of page views, visits, and unique visitors that match the segment you created.
  6. Under Tags, tag the container by selecting an existing tag or creating a new one.
  7. Click Save to save the segment.

You are now taken to the Segment Manager, where you can tag, share, and manage your segment in multiple ways.

Building and Nesting Containers

You can build a framework of containers and then place logic rules and operators between.
  1. Click Options > Add Container.

    A new Hit container opens without a Hit (Page View) identified.

  2. Change the container type as needed.
  3. Drag a Dimension, Segment, or Event from the left pane to the container.
  4. Continue to add new containers from the top-level Options >Add container button at the top of the definition, or add containers from within a container to nest logic.


    Select one or more rules and then click Options > Add container from selection. This turns your selection into a separate container.

Building Segments in Ad Hoc Analysis

See About Building Segments for additional information.

  1. Open the Segment Builder from the Segments panel in the left sidebar. Click the wrench icon and select New Segment from the menu.

    The Segment Builder will open.

  2. Drag entities from the Dimension, Dimension element, Event, Templates, or Segment panels from the left sidebar to the Segment Canvas.

  3. Enter a value for the dimension.

    Enter a value or select value by clicking the magnifying glass icon. A menu will open to select possible value for the dimension.

  4. Set the operator from the list of operators.

  5. Resolve any errors identified by the Error icon .

    Mousing over the Error icon brings up a message identifying the error.

  6. After placing the containers and setting the rules, click the Run icon to run the segment against the selected dataset.
  7. View a preview of the results in applying the segment at the bottom of the pane.

  8. Click the Save button to save the segment in the Segments pane for future use.