Home > Sales and Marketing > Online Marketing > Google Analytics: Filter Order Matters!

Google Analytics: Filter Order Matters!

Google Analytics Filter Order Matters

When you set up new views and add your regular filters, chances are, things usually work exactly as expected. But occasionally, you’ve triple and quadruple checked each individual filter, yet the data is not coming in as expected (or isn’t coming in at all).

Maybe it’s a typo? (Always get a second pair of eyes!) Another frequent culprit is filter order.

What is filter order? Why should I care?

Filter order is simply the order in which your filters are applied. Your data is processed sequentially with the first filter, then the second filter, then the third filter, etc.

Most of the time this doesn’t matter because you’re altering different aspects of your data. Where it does matter is if you’re changing the same type of data more than once.

For example:

Filter 1: Include a single page or section

This alters your data so only pages within the section show up in your data:

/section1
/section1/page1
/section1/page2

Filter 2: Include full URL

This filter rewrites the URI to include the hostname, so instead of:

/section1
/section1/page1
/section1/page2

You now have something like this in your data:
www.domain1.com/section1
www.domain1.com/section1/page1
www.domain1.com/section1/page2
www.domain2.com/section1
www.domain2.com/section1/page1
www.domain2.com/section1/page2

Awesome! So what’s wrong?

Nothing is wrong with the above setup, but if you by chance have those two filters in reverse order, your view would have no data! Why?

The first filter would work, adding the domain as you intended: www.domain1.com/section1

The second filter would not work; the regular expression won’t match anything.

The regex, /section1, will match a URI that begins with /section, but remember the other filter changed the URI to www.domain1.com/section1.

Ok, so how do I change filter order?

Within the Filters list, click Assign Filter Order:

Use the move up & move down buttons to rearrange your filters:

Hit Save, and you’re done!

Go check your data in real-time to make sure everything is coming in.

How will I know if filter order is going to be an issue?

Many times, filter order won’t be an issue, which is why it’s frequently overlooked. But, as a general rule of thumb, anytime you have 2 or more filters the reference the same dimension, pay extra attention to your filter order.

Stay tuned to the Seer blog for more tips and tricks for Analytics practitioners — from beginners to advanced users.

Published: May 2, 2017
1131 Views

Source: Seer Interactive

seer interactive

SEER Interactive

SEER brings a wealth of knowledge that collectively spans decades of Search Marketing, SEO and Analytics experience. Our team likes to win—A LOT, and not in a trip-an-old-lady-down-a-flight-of-stairs-to-win way. Search engines are our scoreboards. We’re able to use our Twitter, Facebook, and YouTube channels to reach every facet of the Search and Business communities. By freely sharing best practices, strategies, and insights, we lift the industry as a whole and call out spammers, scammers and overall snake oil salesmen.

Trending Articles

Stay up to date with