In the past two posts, I have described how you can leverage Omniture DataWarehouse and ASI to enhance your Omniture SiteCatalyst web analysis projects. Both of these tools use Omniture’s Segment Builder which is the mechanism for creating the segments which select the visitors, visits and page views you want to analyze. Therefore, a good understanding of how to correctly build segments using Segment Builder is critical to getting the most out of these tools (and Omniture Discover which also uses Segment Builder). In this post I will share some tips and tricks that we at Omniture Consulting have learned in working with the Segment Builder (I will pre-warn you that this post may take a bit to sink in since Segment Builder is a more advanced SiteCatalyst topic, but I promise it is worth it in the long run!).
Understanding Segment Builder
To understand the Segment Builder, you first need to understand the various components that it uses to build a segment. As shown in the image below, when you enter the Segment Builder, you will see Containers, Events and a Segment Canvas.
First, we will discuss the different containers:
- Page Views – Dragging a Page View container to the segment canvas will allow you to define which Page Views you would like to include or exclude from the segment. When evaluating the Page View container, Omniture is, in effect, scanning through each Page View it finds within the specified time frame and deciding whether it should be included or excluded. Therefore, it may be the case that two different Page Views from the same Visit may or may not be included in the segment. For example, let’s assume that you are building a segment where you only want pages where the language was Spanish. It may be the case that a visitor viewed ten pages during their Visit, but only two of those ten were viewed in Spanish. Using a Page View container, would mean that only these two Page Views would be included in the segment.
- Visits – Dragging the Visits container to the segment canvas will allow you to define which Visits you would like to include or exclude from the segment. When evaluating the Visits container, Omniture is, in effect, scanning through each Visit it finds within the specified time frame and deciding whether the entire Visit should be included or excluded. Therefore, if any of the criteria are met within the Visit, all data from that Visit will be included (or excluded if using the exclude tab) in the segment. Using the preceding example, if the segment looking for pages viewed in Spanish were built using a Visit container, the entire Visit would be included since at least one of the pages was viewed in Spanish (even though the majority were in English).
- Visitors – Dragging the Visitors container to the segment canvas will allow you to define which Visitors you would like to include or exclude from the segment. When evaluating the Visitors container, Omniture is, in effect, scanning through all data it has for each Visitor within the specified time frame and deciding whether at any time the Visitor met the criteria. If it finds that the Visitor has met the criteria, all Visits and Page Views for that Visitor will be included in the segment. Continuing the preceding example relating to pages viewed in Spanish, if a Visitor had six site visits within the specified time frame and in one of those Visits viewed at least one page in Spanish, data from all six Visits would be included in the segment.
As you can see, the container you select can have an enormous impact on the data set that is returned in DataWarehouse or ASI. This is why I cannot stress enough the importance of testing your segments before using them in production.
The next item that can be added to the segment canvas is Events. The Event containers represent the Success Events you have identified for your website. If, for example, you have a Visit container and you add the “Order” Event to it, then you are indicating that only Visits in which an Order took place should be included in the segment. You can also define the Success Event in more detail, by clicking on its name and adding additional filter criteria.
The most difficult area of Segment Builder to understand is the Segment Canvas. To begin with, there are two tabs of the canvas, one for Include and one for Exclude. When determining which data to include in your segment, Omniture first looks to the Include tab and identifies all data that is to be included and then proceeds to eliminate any data matching the criteria of the Exclude tab. Once you have successfully navigated the include/exclude tab, the next challenging part is to understand how to set conditions within a container. To do this, you simply click on the underlined container name which brings up a window that allows you to specify the parameters of that container. Here you can choose almost any data point and specify whether it should be equal to, greater than, contains, etc… and then choose or enter a value. In addition, using the first drop-down box allows you to choose whether all of these conditions need to be met (AND) or if just one need to be met (OR). Whatever you choose in this drop-down box will change the criteria in the Filter below. In the image shown here, the user has chosen to use the OR clause so that a Visit can come from either the United States or the United Kingdom. One point of warning: The #1 mistake clients make in this step is that they forget to click the “Add” button when adding conditions so be mindful of this!
The final thing to learn in building a segment is the nesting of containers. Here are some important guidelines you should know:
- Page View containers can only have nested Events
- Visit containers can have nested Events and Page View containers
- Visitor containers can have nested Events, Page Views and Visits
- If an Event is added to the segment canvas with no Page View/Visit/Visitor container, the Page View container is used by default
- It is not possible to add multiple Events to a Visit container such that they form an OR clause, but to get around this, you can add multiple Visit containers to the canvas and add one Event to each
The segment Builder will usually tell you when you are attempting to add an invalid combination, but it is good to learn what you can and can’t nest within the segment builder. Finally, it is important to understand what the Segment Builder treats as AND/OR clauses when building segments. If you want to add two or more items and have all of the conditions met (AND) then you want to be sure that you nest them above the line of the container like this:
However, if you want to the segment to look for one condition or the other (OR), you would want to make sure that the items are outside of the container line like this:
In the examples shown here, the former would include all Visits where the country was “United States” and an Order took place, but the latter would include all Visits where the country was “United States” or an Order took place. This is probably the hardest part and I encourage you to tap into Omniture Consulting when building complex segments.
Important Things To Know About Segment Builder
The following are some important things to know about Segment Builder:
- Segments built using the Page View container will return data the fastest, followed by the Visit container and the Visitor container. Whenever possible, attempt to use the lowest level container needed to get the data you need to improve processing time.
- Classifications cannot be used as criteria in DataWarehouse or ASI Segment Builder segments. For this reason, if you believe that you will want to use a data point as segment criteria, you may want to pass the data directly to a Traffic Variable or Conversion Variable instead of relying upon a classification. Classifications can be used as segment criteria in Omniture Discover.
- Segment Builder allows you to segment on how many times a Success Event takes place which is very powerful. For example, if you set a Success Event each time a visitor conducts an Internal Search, you can build a segment that looks for cases where “Total Internal Searches is greater than 2” to find repeat searchers.
Tips & Tricks
Since this post is really a subset of the DataWarehouse/ASI posts where we already provided some real-world examples, I am going to provide some practical Segment Builder tips and tricks instead of a real-world example:
- If you want to be sure you are including all data in your segment, you can add a Page View container where IP Address contains “.” since all data collected by SiteCatalyst contains an IP address and all IP addresses contain a “.”
- If you want to build a segment using a wild card such that a SiteCatalyst variable has a value (is not blank), you can use a “greater than !” in your segment definition as shown here.
- Conversely, if you want to build a segment based upon the fact that a SiteCatalyst variable had no value you would use “less than !” in your segment definition as shown here.
Have a question about anything related to Omniture SiteCatalyst? Is there something on your website that you would like to report on, but don’t know how? Do you have any tips or best practices you want to share? If so, please leave a comment here or send me an e-mail at firstname.lastname@example.org and I will do my best to answer it right here on the blog so everyone can learn! (Don’t worry – I won’t use your name or company name!). If you are on Twitter, you can follow me at http://twitter.com/Omni_man.Learn more about Omniture Consulting Learn more about Omniture University