Regular Expressions for Google Analytics: OK, I did it


regular-expressionsI 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.)

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
Minimal Matching


Our owner and CEO, Robbin Steif, started LunaMetrics twelve years ago. She is a graduate of Harvard College and the Harvard Business School, and has served on the Board of Directors for the Digital Analytics Association. Robbin is a winner of a BusinessWomen First award, as well as a recent Diamond Award for business leadership. You should read her letter before you decide to work with us.

  • Anonymous

    Thank you!!!! Your anonymous reader!

  • Anonymous

    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!

  • LunaMetrics Blog

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


  • Pingback: Useful regular expressions in Google Analytics | grits()

  • Pingback: Google Analytics Regular Expressions | SEO Web Junction Blog()

  • Pingback: GA Checklist: Setting up goals & funnels | PadiCode()

  • tjen penge, tjen penge hjemmefra, betalte undersoegelser, hurtige penge, tjen penge online, arbejd hjemmefra, affiliate marketing, blog

    hello!,I like your writing very much! proportion we keep up a correspondence more approximately your post on AOL? I require a specialist in this house to resolve my problem. May be that is you! Looking forward to look you.

Contact Us.


24 S. 18th Street, Suite 100,
Pittsburgh, PA 15203

Follow Us



We'll get back to you
in ONE business day.