Welcome to WebmasterWorld Guest from 54.145.222.231

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

Google Analytics basic filtering

google analytics filters

   
8:16 pm on Jan 20, 2012 (gmt 0)

10+ Year Member



I need to filter some results from my stats but cannot quite seem to get the regular expression right.

I need to filter out, eg: /dir/a,b or c but not /dir/x

The a/b/c directories have various characters after the initial character.

I tried the following but it did not work.

^/dir/[a.|b.|c.]


Any helps appreciated.
Thank in advance.
12:31 pm on Jan 27, 2012 (gmt 0)

10+ Year Member



Can anyone help with this please?
Thank you
1:41 pm on Jan 27, 2012 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Possibly...

^/dir[abc].


By "filter out" do you need a NOT operator...

!^/dir[abc].
11:10 pm on Jan 27, 2012 (gmt 0)

10+ Year Member



Unfortunately that did not work, but I have a feeling I'm asking too much of the filter system. I think the filters are there to filter out data [u]prior[/u] to logging it. I was hoping they would filter already-logged data, but I guess there wouldn't be a secondary manual 'advanced' filter if that were the case.

I do intend to keep trying the above though to save a huge amount of unnecessary data being logged.

Thanks again g1smd
11:18 pm on Jan 27, 2012 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Yes it filters the stuff as it is logged.

It doesn't apply to already stored data.