Making Filters
Google Analytics filters principal target is include, exclude, or change the representation of certain information in a report.
Filters are not must requirement. But using them will help you define what data you see and how you see it. Since filters affect the way data is displayed in your reports, it is important to get them set up as soon as possible. Filters added after your account begins collecting data will not affect your old data.
Why you want to create filters because:
1. you want to see reports for a certain subdomain or subdirectory only
2. you would like to exclude traffic from certain people or places
3. your dynamic parameters would be more easily readable as descriptive text strings
There are a number of other reasons that you may want filters, but if none of these apply to you, you can safely ignore and go ahead.
A filter consists of;
- The name of the filter
- The type of filter you would like to implement
- The filter field that is affected.
More Information About These Fields >>
The filter pattern is the string that will be matched against the filter field. This field uses regular expressions, a special syntax that uses wildcards and text strings for matching.
More Instructions >>
To make a filter:
1. Click the Filter Manager link from the Analytics Settings page.
2. Click Add Filter.
Filter Types
Google Analytics provides main three predefined filters, useful for common tasks, as well as a number of custom filters.
Predefined filters;
1. Exclude all clicks from a domain (hostname): use this filter to exclude clicks that originate from a specific network, such as your internal work network.
2. Exclude all clicks from an IP address: this filter works to exclude clicks from certain sources. You can enter a single IP address, or a range of addresses
3. Include only traffic from a subdirectory: use this filter if you want a profile to report only on a particular subdirectory (such as www.yoursite.com/motorcycles)
Custom filters:
- Exclude Pattern: This type of filter excludes log file lines (hits) that match the Filter Pattern. Matching lines are ignored in their entirety; for example, a filter that excludes Netscape will also exclude all other information in that log line, such as visitor, path, referral, and domain information.
- Include Pattern: This type of filter includes log file lines (hits) that match the Filter Pattern. All non-matching hits will be ignored and any data in non-matching hits is unavailable to the Urchin reports.
- Search & Replace: This is a simple filter that can be used to search for a pattern within a field and replace the found pattern with an alternate form.
- Lookup Table: Selecting this filter allows you to select a lookup table name which may be used to map codes to human intelligible labels. For example, the phone models table maps abbreviated phone platform identifiers to the model and manufacturer names for phone based web browsers.
- Advanced: This type of filter allows you to build a field from one or two other fields. The filtering engine will apply the expressions in the two Extract fields to the specified fields and then construct a field using the Constructor expression. Read the Advanced Filters article for more information.
- Uppercase / Lowercase: Converts the contents of the field into all uppercase or all lowercase characters. These filters only affect letters, and will not affect characters or numbers.
Common uses
This Report traffic to a subdomain only.
If you have your tracking code on your entire domain, but would like to view reports about a particular subdomain on their own, you can create a filter to include only traffic to your subdomain.
Filter Type: Custom filter > Include
Filter Field: Hostname
Filter Pattern: subdomain\.yoursite\.com
Case Sensitive: No
This will exclude all traffic that is not on the domain subdomain.yoursite.com.
Exclude internal IP addresses - If you'd like to exclude traffic from internal IP addresses, so that your own visits and those of your employees don't show up in your reports, enter your IP address in the filter below. You can also filter out a range of addresses, as in the second example. Remember to use regular expressions in the IP Address field.
Filter Type: Exclude all traffic from an IP address
IP Address: 99\.999\.999\.9
Or, to filter a range of 192.168.1.1 to 192.168.125:
Filter Type: Exclude all traffic from an IP address
IP Address: ^192\.168\.1\.([1-9]|[1-9][0-9 ]|1[01][0-9]|12[0-5])$
Grant access to other users
Google Analytics provides the permission to add any number of users to your account, and to grant varying levels of access to your reports.
Granting profile access
To allow access to another user, follow the instructions below. Please note that additional users will need to create a free Google Account in order to be granted access.
1. Click User Manager.
2. Click Add.
3. Enter the user's email address, last name, and first name.
4. Select the User Type for this user: View reports only, or Account Administrator, which allows the user to edit account settings.
5. If you selected View reports only, select the profiles to which this user should have access (note that Account Admins have access to all profiles). Reports for profiles that are not selected will not be available to this user.
6. Click Add to move these profiles into the Selected Website Profiles list.
7. Click Finish to create the new user.
Google Analytics filters principal target is include, exclude, or change the representation of certain information in a report.
Filters are not must requirement. But using them will help you define what data you see and how you see it. Since filters affect the way data is displayed in your reports, it is important to get them set up as soon as possible. Filters added after your account begins collecting data will not affect your old data.
Why you want to create filters because:
1. you want to see reports for a certain subdomain or subdirectory only
2. you would like to exclude traffic from certain people or places
3. your dynamic parameters would be more easily readable as descriptive text strings
There are a number of other reasons that you may want filters, but if none of these apply to you, you can safely ignore and go ahead.
A filter consists of;
- The name of the filter
- The type of filter you would like to implement
- The filter field that is affected.
More Information About These Fields >>
The filter pattern is the string that will be matched against the filter field. This field uses regular expressions, a special syntax that uses wildcards and text strings for matching.
More Instructions >>
To make a filter:
1. Click the Filter Manager link from the Analytics Settings page.
2. Click Add Filter.
Filter Types
Google Analytics provides main three predefined filters, useful for common tasks, as well as a number of custom filters.
Predefined filters;
1. Exclude all clicks from a domain (hostname): use this filter to exclude clicks that originate from a specific network, such as your internal work network.
2. Exclude all clicks from an IP address: this filter works to exclude clicks from certain sources. You can enter a single IP address, or a range of addresses
3. Include only traffic from a subdirectory: use this filter if you want a profile to report only on a particular subdirectory (such as www.yoursite.com/motorcycles)
Custom filters:
- Exclude Pattern: This type of filter excludes log file lines (hits) that match the Filter Pattern. Matching lines are ignored in their entirety; for example, a filter that excludes Netscape will also exclude all other information in that log line, such as visitor, path, referral, and domain information.
- Include Pattern: This type of filter includes log file lines (hits) that match the Filter Pattern. All non-matching hits will be ignored and any data in non-matching hits is unavailable to the Urchin reports.
- Search & Replace: This is a simple filter that can be used to search for a pattern within a field and replace the found pattern with an alternate form.
- Lookup Table: Selecting this filter allows you to select a lookup table name which may be used to map codes to human intelligible labels. For example, the phone models table maps abbreviated phone platform identifiers to the model and manufacturer names for phone based web browsers.
- Advanced: This type of filter allows you to build a field from one or two other fields. The filtering engine will apply the expressions in the two Extract fields to the specified fields and then construct a field using the Constructor expression. Read the Advanced Filters article for more information.
- Uppercase / Lowercase: Converts the contents of the field into all uppercase or all lowercase characters. These filters only affect letters, and will not affect characters or numbers.
Common uses
This Report traffic to a subdomain only.
If you have your tracking code on your entire domain, but would like to view reports about a particular subdomain on their own, you can create a filter to include only traffic to your subdomain.
Filter Type: Custom filter > Include
Filter Field: Hostname
Filter Pattern: subdomain\.yoursite\.com
Case Sensitive: No
This will exclude all traffic that is not on the domain subdomain.yoursite.com.
Exclude internal IP addresses - If you'd like to exclude traffic from internal IP addresses, so that your own visits and those of your employees don't show up in your reports, enter your IP address in the filter below. You can also filter out a range of addresses, as in the second example. Remember to use regular expressions in the IP Address field.
Filter Type: Exclude all traffic from an IP address
IP Address: 99\.999\.999\.9
Or, to filter a range of 192.168.1.1 to 192.168.125:
Filter Type: Exclude all traffic from an IP address
IP Address: ^192\.168\.1\.([1-9]|[1-9][0-9 ]|1[01][0-9]|12[0-5])$
Grant access to other users
Google Analytics provides the permission to add any number of users to your account, and to grant varying levels of access to your reports.
Granting profile access
To allow access to another user, follow the instructions below. Please note that additional users will need to create a free Google Account in order to be granted access.
1. Click User Manager.
2. Click Add.
3. Enter the user's email address, last name, and first name.
4. Select the User Type for this user: View reports only, or Account Administrator, which allows the user to edit account settings.
5. If you selected View reports only, select the profiles to which this user should have access (note that Account Admins have access to all profiles). Reports for profiles that are not selected will not be available to this user.
6. Click Add to move these profiles into the Selected Website Profiles list.
7. Click Finish to create the new user.