Advanced Segments is by far the most useful feature in all of Google Analytics. I believe that your ability to use them are what separates you from a beginner Google Analytics user. Today, I want to share a quick tip to make them even more useful. One of the limitations that I often hear, especially from Adobe users, is that you cannot created a hit-scoped segment in Google Analytics. Let’s start with why this is even important.
Advanced Segment Scoping
Say we want to analyze information related to what happens before and after someone adds a product to the cart. We can start by creating a segment of any session/visit where an event action contains add to cart. The segment below will isolate any session where an add to cart occurred and return everything in that session.
What if we wanted to know how many of these users that added a product to the cart, also looked at our spring sale page? This is where we get into scoping and order. Do you want to look at a visit/session where both actions occurred, do you want to look at users where both actions occurred (even if they happened individually in separate visits), or do we need to establish an order and define that the user must first see our sale before adding to cart? Depending on the question you are trying to answer any of these may be appropriate. If we want to go with the last option of anyone who viewed our sales page and then ever added a product to bag, we need to change our scope and conditions. Here is how we would do that:
Hit-Scoped Advanced Segments
Now for the quick tip. What if we needed to ensure that a user who viewed our sales page, actually added a product from that sales page to their cart? The conditions in the segment above do not ensure this. They simply state the user added some product to cart and that product may or may not have been included in that sale. We can achieve this by adding conditions to our sequence like this:
Pretty simple, but something pretty important happened here. What we did, was use a new ‘hidden’ scope for hit-scoped segments and conditions. To further build on why this is important lets try and build segments to identify users who added a specific product to their cart. If you are not familiar with how to use hit-scoped you could get very inaccurate data. Lets create a segment of any session where a Metal Roller Pen was added to cart. The two segments built below show the data discrepancy. The first segment shows us anyone who every interacted with a Metal Texture Roller Pen and also added a product to the bag. That interaction with the Metal Texture Roller Pen could have been a product detail view or even a product impression. The conditions are evaluated across the session and not against each other. The second segment shows how to enforce and evaluate the conditions at the same time.
Now you know why you need hit-scoped segments and conditions and how to build them =)