14

When generating reports in Google Analytics, a useful feature is the advanced filtering. I'm trying to include two criteria/dimensions for the filter, where they are joined by OR.

In other words I would like to filter on Criteria A OR Criteria B. The default and only option in Analytics is AND, and there seems to be no way to change this.

Am I missing something? Is there no way to filter with or? This seems like a terrible feature flaw in Analytics if so.

enter image description here

migrated from superuser.com Jun 6 '12 at 1:10

This question came from our site for computer enthusiasts and power users.

20

I also couldn't find how to use OR. I can offer you a workaround however. Use the powerful Matching RegExp filter instead of Containing.

Google Analytis filter OR clause

  • 2
    Thanks for this. It works perfectly. While I'd prefer Google support it out of the box with multiple contains, using the RegEx does work. +1 and answer. – KP. Jun 14 '12 at 14:53
  • 2
    For me, it only works without a forward slash, i.e. (blog|recent). – timofey.com Jan 27 '13 at 8:10
1

One of the simplest to understand concepts in RegEx is the pipe. It looks like this: |

It’s essentially the word “or” and lets you tell Google Analytics that you want results matching this or that.

Better example: Mario|Luigi

http://www.6dglobal.com/blogs/8-simple-yet-powerful-regex-concepts-google-analytics-2012-08-21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.