Getting Started with Segment filters
Before we can begin using Segment filters in NinjaCat for Analytics data, we need to understand how we can define and analyze subsets of our data in Google Analytics.
Segments in Google Analytics
Lets take a look at how Google defines Segments in this article from Google.
A segment is a subset of your Analytics data. For example, of your entire set of users, one segment might be users from a particular country or city. Another segment might be users who purchase a particular line of products or who visit a specific part of your site.
Segments let you isolate and analyze those subsets of data so you can examine and respond to the component trends in your business. For example, if you find that users from a particular geographic region are no longer purchasing a line of products in the same volume as they normally have, you can see whether a competing business is offering the same types of products at lower prices. If that turned out to be the case, you could respond by offering a loyalty discount to those users that undercuts your competitor's prices.
You can also use segments as the basis for Remarketing Audiences. For example, you might create a segment of users who visit your menswear pages, and then target just those users (your Remarketing Audience) with a remarketing campaign that is focused on the new items that you are adding to those pages.
Segments represent either subsets of sessions or subsets of users:
- Subsets of sessions: for example, all sessions originating from Campaign A; all sessions during which a purchase occurred
- Subsets of users: for example, users who have previously purchased; users who added items to their shopping carts, but didn’t complete a purchase
Reviewing the Analytics User Model first will help you conceptualize how segments work. There are three major components to the Analytics user model:
- Sessions: A user arrives at and interacts with your property. All of these user interactions are grouped into what is referred to as a session.
- Hit: During a session the user interacts with your property. Each interaction is referred to as a hit. Example hits include pageviews, events, transactions, etc.
A single user can have multiple sessions, and each session can have multiple hits. Visually, this is represented below:
Analytics user model
Segments are non-destructive filters that do not change your underlying data. Once you apply a segment, it remains active as you navigate throughout the reports, until you remove it. You can apply up to four segments at a time, and compare results from each segment side by side in your reports.
In addition to analyzing data with segments, you can use them to build audiences for remarketing.
Analytics includes predefined segments (System Segments) that you can use as provided, or that you can copy and edit to create new custom segments. You can also build your own segments from scratch. In addition, you can import segments from the Analytics Solutions Gallery, a free marketplace where Analytics users share segments and other solutions they’ve developed.
Segment definition and scope
You define segments by creating filters based on the dimensions and metrics in your Analytics reports; for example:
- User Type exactly matches “Returning User”
- Country/Territory exactly matches “United States”
- Ecommerce Conversion Rate > "0.2%"
In addition to the dimensions and metrics you use in filters, you also have to set the scope of the data for a filter. There are three different scopes you can use:
- 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 use the segment builder to define the component filters of a segment.
Limits on segments
Segments are subject to the following limits:
- 1000 segments per account
- 100 segments per user, per view
- 100 segments shared across users, per view
These limits include system segments and any segments you create or import. You cannot create or import additional segments once you reach these limits.
Segments applied to reports
You can have up to 4 segments applied to your reports at any one time.
With user-based segments, you can apply a maximum date range of 90 days to your reports. If your date range is already set to more than 90 days, then when you create a user-based segment, Analytics resets the date range to 90 days from the start date.
Segments based on the Date of First Session option are limited to maximum range of 31 days.
Data limits on user-based segments
As stated above, user-based segments have a maximum date range of 90 days. For that 90 days, Analytics reports on only the first 1000 sessions for each user. Session counts beyond 1000 in a 90-day period are usually an indication of non-human traffic.
Do not use segments with Multi-Channel Funnel reports. Use Conversion segments instead.
AdWords cost data
AdWords cost data is not compatible with segments. If you apply a segment to an AdWords report that includes cost data, then the cost data all have zero values.
Filtering Upon Segments in the Google Analytics Widgets
Now that we understand the use of segments in Google Analytics we can report on those segments we created using the filters section of the NinjaCat Google Analytics widgets, as well as the Analytics Executive summary widget.
Filtering by Segment in Legacy Templates:
- Drag an SEO widget into the template
- Open the filters section of the widget
- add the name of the segment that you created in Google Analytics (the name must be an exact match)
The Segment Filter will Filter Upon the Segment name specified. (Filter Upon - meaning that is the segment data that will show in the report) No results will be returned if the name is not an exact match.
Filtering by Segment in Shinobi Templates:
- Add a Widget to your Template and specify Google Analytics as a Data Source
- Add the name of the segment you wish to filter on from Google Analytics. Please note the name must be an exact match. No results will be returned if the name does not match exactly. Be sure there are no spaces before or after to ensure the exact match.
Keywords: Google Analytics Segments, GA, Segments, GA Segments