Welcome to our free Google Analytics tutorial. This tutorial is based on Webucator's Introduction to Google Analytics Training course.
In this lesson, you will learn how to setup a filter in Google Analytics.
Filters are used to clean and segment your data.
When a filter is created within your profile, it is immediately applied to new data coming into your account.
New filters will not affect historical data and it is not possible to reprocess your old data once it passes through a filter.
Tips: It is highly recommended that you keep the raw data intact by not applying any filters to your original profile. Create a duplicate profile for applying filters.
Google Analytics provides you with three predefined filter types and several customized filters.
|Exclude all traffic from a domain||Excludes traffic from a domain that you specify. Applies reverse lookup and can filter out traffic from an ISP or the company's internal network.|
|Exclude all traffic from an IP address||Excludes traffic from a single IP address or range of IP addresses. Useful in filtering the company's internal traffic.|
|Include only traffic to a subdirectory||Includes only those visitors who are viewing a particular subdirectory on your web site. Useful in tracking a particular section of a web site e.g. www.yoursite.com/customercare.|
Always keep the default profile without applying any filters.
Adding more than one include filter to a profile can cause data to not appear in your reports e.g. if you use include filters to only include certain IP addresses, then traffic from all other IP addresses will be ignored.
Filters are executed sequentially in the order they are listed in your settings. Thus, output from one filter serves as input for the next filter. Thus, it is important that you apply filters in a correct logical manner.
To setup filters, open up your desired profile, and navigate to the 'wheel' on the top right of your screen. Once you open up all of your settings, you'll see options to add in Filters. See screenshot below.
The following types of filters are available for customized filter options:
|Exclude Pattern||Excludes log file lines that match the filter pattern|
|Include Pattern||Includes log file lines that match the filter pattern|
|Search & Replace||Searches for a pattern within a field and replaces the found pattern with an alternate form|
|Uppercase / Lowercase||Converts the contents of the field into all uppercase or all lowercase characters|
|Advanced||Combines two or more separate fields to construct a single field|
Please choose which filter you would apply in the following scenarios and create the same in your individual profiles:You would only like to segment data related to a particular geographical location, such as excluding all traffic from the Asia Pacific Region in a separate profile.
Once the filter is processed you can see the Asia Pacific region listed in the User Defined reports.
Separating New Visitors.
Include data from Sub-directory.