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|