From the course: Advanced Google Analytics

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Create common exclude filters

Create common exclude filters - Google Analytics Tutorial

From the course: Advanced Google Analytics

Create common exclude filters

- [Instructor] Let's look at a common exclude filter. I'll go ahead and select add filter from the view that I'd like to apply this to and we're going to give this a name. I'm going to call this Exclude Staging Traffic. Let's say for example, that we have our site set up in a staging environment where we make all of our tests and then we deploy it. And perhaps we use the same Google Analytics tag on the staging site, and so we're getting erroneous traffic in our reports. We could exclude that. We'll start by selecting custom from the filter type and from the filter field, we're going to select host name from the dropdown. Now we need to create our filter pattern, using a regular expression. Let's say that we have two sites, one at dev.oursite.com and one at stage.oursite.com. We'll start by creating the first, I'll use the carrot and dev and the carrot indicates that dev will be at the start of the string. We then…

Contents