Removing querystring with filter ga:pagePath

689 views
Skip to first unread message

Joel Bernerman

unread,
Nov 7, 2011, 8:57:59 AM11/7/11
to google-analytics...@googlegroups.com
Hi!
I´m trying to filter som searchqueries from the results in my site.


I tried to filter results with ga:pagePath!~^/?s=* but it still includes "/?s=anything".

Anyone knows how to filter this correctly, i want to exclude any pagePath containing query string?

Regards
/Joel

Nick

unread,
Nov 8, 2011, 12:43:22 AM11/8/11
to google-analytics...@googlegroups.com
? is a meta character: http://en.wikipedia.org/wiki/Regular_expression#POSIX_Extended_Regular_Expressions

So you need to escape it. Also * matches any number of the preceding character . is the wild character in reg ex. What about using:

^/\?s=.*

To match any query which starts with /?s=

-Nick

Joel Bernerman

unread,
Nov 8, 2011, 3:21:10 AM11/8/11
to google-analytics...@googlegroups.com
Ahh.
I really thought it was some bug, but its was my poor regex skills.

Thank you so much for the help.

Regards
/Joel
Reply all
Reply to author
Forward
0 new messages