A Segment sets conditions to filter a visitor based on the visitor’s attributes or interactions with your site. To set conditions in a segment, you set rules to filter visitors based on visitor characteristics and/or navigation traits. To further break down visitor data, you can filter based on specific visits and/or page view hits for each visitor. The Segment Builder provides a simple architecture to build these subsets and apply rules as nested, hierarchical Visitor, Visit, or Hit containers.
The container architecture employed in the Segment Builder defines
Each container lets you report across a visitor’s history, interactions broken down by visits, or break down individual hits.
See Segment containers for a demo video.
The Visitor container includes every visit and page view for visitors within a specified time frame. A segment at the Visitor level returns the page that meets the condition plus all other pages viewed by the visitor (and only constrained by defined date ranges). As the most broadly defined container, reports generated at the Visitor container level returns page views across all visits and lets you generate a multi-visit analysis. Therefore, the Visitor container is the most susceptible to change based on defined date ranges.
Visitor containers can include values based on a visitor’s overall history:
The Visit container lets you identify page interactions, campaigns, or conversions for a specific web session. A segment at the Visit level returns the page that meets the condition plus all other pages viewed as part of the visit session (and only constrained by defined date ranges). The Visit container is the most commonly used container because it captures behaviors for the entire visit session once the rule is met. The Visit container lets you define which visits you want to include or exclude in building and applying a segment. It can help you answer the question of how many visitors viewed the News and Sports section in the same visit? Or pages that attributed to a successful conversion to a sale?
Visit containers include values based on occurrence per visit:
The Hit container defines which page hits you would like to include or exclude from a segment. The Hit container is the most narrow of the containers available to let you identify specific clicks and page view where a condition is true. You can view a single tracking code, or isolate behavior within a particular section of your site. You may also want to pinpoint a specific value when an action occurs, such as the marketing channel when an order was placed.
Hit containers include values based single page breakdowns:
Products
List Props
List eVars
Merchandising eVars (in context of events)
If you use this container on a value that persists, such as an evar, it pulls in every hit where that value is persisting. If there is a tracking code that expires after a week, that value could be persisting across multiple visits.
The Logic Group container allows you to provide a separate container within the segment rules to filter entities not based on hierarchy. For example, you may want to provide a container nested within the segment that filters based on Visitor. This type of logic requires you to break the hierarchy (as you already used a top-level Visitor container) to filter only for selected visitors. See Logic Group examples for additional information.
When creating segment containers within other containers, you are in essence creating a segment within a segment. The following logic is used with nested containers:
When you nest a segment within a segment (for example, you drag a segment from the Components panel onto your segment definition), a container is created with a copy (not a reference) of the dragged segment rule.
You can use nesting between containers and between rules within a container. Here is what you can nest in each container:
Container Name | What you can nest inside |
---|---|
Hit | Events only |
Visit | Hit container, Events |
Visitor | Visit container, Hit container, Events |
Logic Group | Visitor container, Visit container, Hit container |
Including multiple segments in a new compound segment lets you refine data even further. Dragging two existing segments together acts as an “OR” statement when filtering visitors. All containers in the canvas are reviewed against all data, and any data that matches any of the containers is included in the reporting.
For example, dragging a Visit container where Country = United States with a Visit container where Order = True,
Country = United States + Order = True
builds a segment that behaves in this order:
Sequential segmentation employs the same basic containers, including Visitors, Visits, and Hits (including page views or other dimensions) nested hierarchically.
Visitors constitute the highest-order container in sequential segmentation, with Visits contained within the Visitors container, and Hits contained within the Visitors or Visits containers. This container hierarchy must be maintained to build well-ordered sequential segments.
To build sequential segments, containers are nested and sequential logic joined using the THEN operator that requires each container to be true
based on the sequence of the visitor.
THEN | ||
The only exception to this hierarchy of containers is when using the Logic Group container. The Logic Group container lets you nest a hit within a container without order to capture events and dimensions but outside of a sequential order.
THEN | ||
Containers allow you to filter different data differently based on reporting values when breaking down segments and applying them to reports.
Data captured at each level of the Visitor > Visit > Hit containers hierarchy affects how you build your segments. If you take the same segment applied to the same report using the same data set, you get different values based on the container from which you generate the report. Factors such as container reporting level and persistence of values across hits can mean significant changes in your reporting accuracy.
For example, the visitor depicted below visited a site on the first visit, landed on the Home page and then visited three additional pages and converted the visit to a sale. On a separate visit, the visitor landed this time through Product page, then to the Home page, back to the Product page, and then closed the session after looking at Winter Hats. Based in the data captured for each container for the segment, different values are shown in the report.
The Pages equals Winter Coat
segment below is applied to the Pages Report.
Based on the container selected, the report displays different results for the following visits and page views by a visitor.
Visit 1 | ||||
|
Home |
Winter Apparel |
Winter Coat |
Purchase $100 |
Visit 2 | ||||
|
Winter Apparel |
Winter Boots |
Winter Apparel |
Winter Hats |
When this condition is within a Hit container, then the report lists only pages where Page = Winter Coats is true. Since only one page matches this condition in a container of only one page, only the Winter Coats page is displayed.
Page | Page Views |
---|---|
Winter Coat | 1 |
Reporting from the Hit container, you can see how reporting from different containers effect overall reporting values. Viewing the segment report, notice that page views are approximately equal to visits (about 2,000 visitors saw duplicate pages within a visit which adds to the total number of page views). And unique visitors are approximately equal to the number of visits (about 2,000 unique visitors visited more than once).
Metric | # | % | |
---|---|---|---|
Page Views: Views: Unique Visitors: |
69,252 of 351,292 67,554 of 165,175 63,541 of 113,169 |
19% 40% 56% |
Regardless of how you view the data (from the Hit, Visit, or Visitor containers), they all have the same number of visitors, 63,541, in this example. Regardless of how you generate the report, the initial visitor condition (Visitors who viewed the Winter Coats page) remains intact. It is the subset of data from which you are reporting at the different levels.
If this same condition is within a Visit container, then the report lists all pages in the visit where Page equals Winter Coats is true. It filters the Winter Coats page, but also captures all other pages in the visit where the condition is true. Because the visitor also visited the Home, Product, and Purchase pages within the visit, these additional pages are listed in the report when reported using Visitor container data.
Page | Page Views |
---|---|
Home | 1 |
Product | 1 |
Winter Coat | 1 |
Purchase | 1 |
Showing segment values from the Visit container, you can see that the number of page views has increased significantly. This increase is because reporting from the Visit container identifies all pages that meet the conditions, plus all other pages viewed in the visit (with all page views captured in each Visit container).
Metric | # | % | |
---|---|---|---|
Page Views: Views: Unique Visitors: |
226,193 of 351,292 67,554 of 165,175 63,541 of 113,169 |
64% 40% 56% |
If this same condition is within a Visitor container, the report lists all pages viewed by any visitor where Page equals Winter Coats is true. This condition means that if a visitor viewed the Winter Coats page, then all pages in the Visitor container (including page views in other visits) are listed. Therefore, pages that don’t match the condition are also listed in the report because the visitor viewed them at a previous time. All pages in the Visitor container are listed in the report, even if occurred previously and do not specifically meet the conditions.
Visit 1 Page |
Page Views |
---|---|
Home | 1 |
Winter Apparel | 1 |
Winter Coat | 1 |
Purchase | 1 |
Visit 2 Page |
Page Views |
---|---|
Winter Apparel | 2 |
Winter Boots | 1 |
Winter Hats | 1 |
Visit 1 + Visit 2 Page |
Page Views |
---|---|
Winter Apparel | 3 |
Home | 1 |
Winter Coat | 1 |
Purchase | 1 |
Winter Boots | 1 |
Winter Hats | 1 |
Showing segments from the Visitor container, you can see that the Page Views and Visits have increased. This increase is because, from the visitor level, if the visitor visited the Winter Coats page only once (making the condition true), then all other page views and all other visits captured for that visitor.
Metric | # | % | |
---|---|---|---|
Page Views: Views: Unique Visitors: |
240,094 of 351,292 83,823 of 165,175 63,541 of 113,169 |
68% 50% 56% |
In summary, understanding how segmentation works on various data breakdowns is key to interpreting the data it returns.
Every breakdown of segment data has a scope to which it is applied. Most breakdowns are based on Page Views, however, many valuable segments are based on the Visit container, and to a lesser degree the Visitor container. It is important to understand reporting based on the scope of your container.
Using the Page equals Winter Coats
segment example, below are examples of the results of this segment based on how the container data is applied and how the scope of the data matches the segment type.
Applying the segment container against a natural scope of data brings expected results where the line items match the segment rule.
Many segment rules identify page views per visit. When this identification occurs, the entire Visitor container is applied, if only a single hit matches the rule. This segment report is especially valuable because page views based on visits provide insight based on page views per visit.
Using segment with a smaller container than the breakdown scope returns unexpected data. Using a smaller breakdown still pulls in all hits from that scope of data.
Filtering by dimensions that persist across a range of pages, such as a Campaign eVar or a Referring dimension, affects the data collected at the container level and must be understood for reporting accuracy.
Segment data can vary based on the persistence of a dimension or applied variable across selected pages. Some dimensions, such as the Page dimension, provide unique values at the page level and are filtered based on data from the Hit container. (See the Reports based on Container Data example). Other dimensions, such as the Referring Domain dimension, persist across multiple pages for a visit. For example: Referring Domain equals aol.com
. Some dimensions or applied variables, such as Visit Duration, span across a visitor’s entire history.
In contrast to the Page dimension, the Referring Domain value is attached to each page in this visit. For example, the visitor below arrives at the Home page from a referred site. Therefore, all pages within that visit are assigned the same referring domain value.
The Referring Domain equals aol.com
segment below is applied to the Pages Report.
Visit 1 | ||||
aol.com |
Home |
Winter Apparel |
Winter Coat |
Purchase $100 |
Visit 2 | ||||
weather.com |
Winter Apparel |
Winter Boots |
Winter Apparel |
Winter Hats |
In a new visit, the visitor is referred from another site. Therefore, all pages in the new visit are assigned the new referring domain value for each page view.
Because all page views within the same visit are assigned the same Referring Domain value, reporting at the Hit container level where Referring Domain equsls 'aol.com'
returns all pages listed in the table below.
Referring Domain equals ‘aol.com’ | Page Views |
---|---|
Home | 1 |
Winter Apparel | 1 |
Winter Coat | 1 |
Purchase | 1 |
Showing data from the Hit container, just over 92,000 page views were viewed in over 33,000 Visits by just over 32,000 Visitors. On average, there were three page views in each visit, and almost all visits were by unique visitors.
Metric | # | % | |
---|---|---|---|
Page Views: Views: Unique Visitors: |
98,234 of 351,165 33,203 of 165,173 32,269 of 113,110 |
27% 20% 28% |
If this same condition is filtered in the Visit container for a Pages report, then all pages in the visit where Referring Domain equals 'aol.com'
is true. Because the value of the referring domain is set at the visit level, reports at the Page View and Visit levels are the same.
Referring Domain equals ‘aol.com’ | Page Views |
---|---|
Home | 1 |
Winter Apparel | 1 |
Winter Coat | 1 |
Purchase | 1 |
Because all pages have the same referring domain value based on the visit, the report from the Visit container level is (almost) the same to the report from the Page View container. There is a slight offset (98,234 versus 98,248) due to data anomalies.
Metric | # | % | |
---|---|---|---|
Page Views: Views: Unique Visitors: |
98,248 of 351,165 33,203 of 165,173 32,269 of 113,110 |
27% 20% 28% |
From the Visitor container, the Page report lists all pages viewed by any visitor where Referring Domain equals 'aol.com'
is true. Therefore, if a visitor had ‘aol.com’ as a referring domain at any time in the history (within the defined time period), then all pages in the Visitor container (including page views in other visits) are listed. Even pages that don’t match the primary condition are listed in the report because these pages are included in the Visitor container. All pages in the Visitor container are listed in the report, even if they occurred previously and do not specifically meet the conditions.
In a Referring Domain report, Referring Domain equals 'aol.com'
is true in four page views, but Referring Domain equals "weather.com"
is true in the other pages the visitor hit. From the Visitor container, you get a list of Visitors where ‘aol.com’ is true. But it also gives you pages where the referring domain is “weather.com”, not the value that matched your initial request in the segment.
Visit 1 Referring Domain equals ‘aol.com’ |
Page Views |
---|---|
Home | 1 |
Winter Apparel | 1 |
Winter Coat | 1 |
Purchase | 1 |
Visit 2 Referring Domain = ‘weather.com’ |
Page Views |
---|---|
Winter Apparel | 2 |
Winter Coat | 1 |
Purchase | 1 |
Visitor container Referring Domain equals ‘aol.com’ |
Page Views |
---|---|
Winter Apparel Referring Domain: ‘aol.com’ |
1 |
Winter Apparel Referring Domain: ‘weather.com’ |
1 |
Home Referring Domain: ‘aol.com’ |
1 |
Winter Coat Referring Domain: ‘aol.com’ |
1 |
Purchase Referring Domain: ‘aol.com’ |
1 |
Winter Boots Referring Domain: ‘weather.com’ |
1 |
Winter Hats Referring Domain: ‘weather.com’ |
1 |
When you view data from the Visitor container, notice that the page views have increased significantly (from 98,248 to 112, 925). This increase is because all page views by the visitor (including those pages with other referring domain values saved to at the Visitor container level) have been listed. And the additional visits by that visitor, increasing visits from 33,203 to 43,448.
Metric | # | % | |
---|---|---|---|
Page Views: Views: Unique Visitors: |
112,925 of 351,165 43,448 of 165,173 32,269 of 113,110 |
32% 26% 28% |