{"id":1170,"date":"2015-06-27T16:56:13","date_gmt":"2015-06-27T20:56:13","guid":{"rendered":"http:\/\/www.gregcruce.com\/?p=1170"},"modified":"2016-04-30T22:14:07","modified_gmt":"2016-05-01T02:14:07","slug":"add-filters-to-google-analytics","status":"publish","type":"post","link":"https:\/\/www.gregcruce.com\/add-filters-to-google-analytics\/","title":{"rendered":"Add Filters To Google Analytics"},"content":{"rendered":"

What Are Filters?<\/h2>\n

Google Analytics\u00a0filters are a way for you to interact with data before it finally is added for processing. Filters are mostly used to remove data (such as analytics spam<\/a> or internal IP addresses), but they can also be used to modify or include data (such as adding domain names to all URLs).<\/p>\n

Caution: setting up filters incorrectly can cause irreversible harm. It is highly recommended you create a new view to test filters before deploying them.<\/p><\/div>\n

Step 1 – Open Filters In Admin<\/h2>\n

\"Google<\/p>\n

From the Google Analytics admin, select the view that you wish to filter and select “Filters” underneath it.<\/p>\n

 <\/p>\n

Step 2 – Add A New Filter<\/h2>\n

\"Add<\/p>\n

Click the red “+ New Filter” button at the top of the filter information box.<\/p>\n

 <\/p>\n

Step 3 – Select New Filter<\/h2>\n

\"New<\/p>\n

From here, you’ll select if you want to apply an existing filter from your property, or create a new filter. We want to create a new filter here.<\/p>\n

 <\/p>\n

Step 4 – Name Your Filter<\/h2>\n

\"Name<\/p>\n

You’ll want to give your filter a descriptive name.<\/p>\n

 <\/p>\n

Step 5 – Select Filter Type<\/h2>\n

\"Select<\/p>\n

Here you select the filter type – predefined or custom. \u00a0Predefined<\/strong> is an easy way to remove your IP address, traffic from a domain, and other common tasks. \u00a0Custom<\/strong> is for more advanced things such as domain name additions and analytics spam removal.<\/p>\n

Step 6 – Add Filter Information<\/h2>\n

From here, you’ll want to know what you are filtering and add the needed information. Here are some common filters:<\/p>\n