412.381.5500
1.877.220.LUNA

Regular Expressions for Google Analytics: OK, I did it

I was finally inspired by Alan, who reads this blog using his Blackberry on the Paris Metro. (Truly a world wide web.) Also inspiring were the comments of an anonymous poster, who wrote that all the Regular Expressions (RegEx) posts were incredibly helpful, but couldn’t I please make them easier to access? So I did it, they are all beautifully threaded now. I even fixed awful typos in the Summary/Intro post and the ^ post (and you know, typos are the worst when you are a newbie learning a technical topic, you can spend hours trying to understand a topic, only to finally learn that the author was just lazy.)

Backslashes \
Dots .
Carats ^
Dollars signs $
Question marks ?
Pipes |
Parentheses ()
Square brackets []and dashes -
Plus signs +
Stars *
Regular Expressions for Google Analytics: Now let’s Practice
Bad Greed
RegEx and Good Greed
Intro to RegEx
{Braces}
Minimal Matching
Lookahead

Robbin

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • email
  • Facebook
  • Google Bookmarks
  • Reddit
  • Twitter

Related posts:

  1. Regular Expressions for GA, Bonus II: Minimal Matching
  2. Regular Expressions Part VII: (Parenthesis)
  3. Regular Expressions Pt. V: Question Marks ?
  4. Regular Expressions Part XIII: Good Greed
  5. Regular Expressions Part XI: Real Wildcards .*

6 Responses to “Regular Expressions for Google Analytics: OK, I did it”

  1. Anonymous Says:

    Thank you!!!! Your anonymous reader!

  2. Anonymous Says:

    Hey, I’ve got a question, I finished your tutorial, and then set up an advanced filter in GA, and I’m not getting the results i expected.

    Here’s what I’ve got:

    Field A : Request URI : (Donate|Ecommerce|EcommerceCheckout)/(\d+)(.*)

    Field B nothing

    Output to: request URI: $A1$A3

    Override output field, ok.

    But I’m still not removing a string of numbers from my urls. Help!

  3. LunaMetrics Blog Says:

    Send me email, to my last name at lunametrics.com (Actually, I would be happy to have you be anonymous, I just need to ask you more questions to understand better.)

    Robbin

  4. Useful regular expressions in Google Analytics | grits Says:

    [...] everything you could possibly want to know about regular expressions in Google Analytics on this LunaMetrics blog post. Posted in [...]

  5. Google Analytics Regular Expressions | SEO Web Junction Blog Says:

    [...] been very helpful in achieving the desired results. Lunametrics provides a comprehensive guide on Using Regular Expressions in Google Analytics. Rate this: 3.2 Make a [...]

  6. GA Checklist: Setting up goals & funnels | PadiCode Says:

    [...] They just made no sense for me. The best resources for me were the LunaMetrics blog with their RegEX series (old but good stuff) and a RegEX tool (or this one) for trying things out on the [...]

Leave a Reply