Mobile app version of vmapp.org
Login or Join
Ravi8258870

: Google Analytics traffic filter setup (regex needed?) I need help in setting up a traffic filter on Google Analytics. I want to include traffic from the following URI: www.example.com/cc/ll/store/

@Ravi8258870

Posted in: #GoogleAnalytics #Regex

I need help in setting up a traffic filter on Google Analytics. I want to include traffic from the following URI:

example.com/cc/ll/store/ store.domain.com


Traffic from different URIs must be excluded. As an example, example.com/cc/ll/news should not be in the results, as well as the main example.com home page.

What kind of filter should I use? My idea was to use "Include only" > "URI" and then use a regex to match the above but I need help on this.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Ravi8258870

1 Comments

Sorted by latest first Latest Oldest Best

 

@Heady270

I believe there might be at least a couple ways to do this (and honestly, I haven't tried this myself, so you will def have to test and see).

One way would be to first create a "hostname prepend" filter where you tack on the Hostname to all your URIs, and you would use an Advanced Filter to do this. After you have created this, you would need an Include filter on the Request URI with the following regex:

^(www.example.com/cc/ll/store|store.domain.com)$


Note that this would include ONLY traffic to example.com/cc/ll/store AND store.domain.com, nothing else. This filter MUST come AFTER the hostname prepend filter, since filters are applied IN ORDER, in GA.

And again, test, test, and test. I'm happy to help further, but as I said, I haven't done this before (or at least I don't think I have), so it might be correct, but worth try.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme