1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help with Regex

Discussion in 'Google Analytics' started by talkshowhost316, Jul 7, 2015.

  1. #1
    I need some help writing regular expressions in google analytics?

    I am trying to write something which will return all webpages in our “/set-a-record/” website section except for:

    - The /set-a-record/ homepage which is either /set-a-record or /set-a-record/index

    - Any of the “individuals” pages e.g. /set-a-record/individual/challengers

    - Any contact-us pages e.g. /set-a-record/corporates/contact-us

    - Any thank-you pages e.g. /set-a-record/non-corporates/thank-you.html


    Below is a screen grab of some example webpages where I have highlighted the pages I want to remove

    upload_2015-7-7_15-32-24.png
    SEMrush

    I tried this but it didn’t work, it still gave me the contact-us page…

    ^/set-a-record/(non\-corporates|corporates|small\-business|school\-or\-university|our\-services).*[^contact-us].*

    Any help is much appreciated

    Andy
     

    Attached Files:

    talkshowhost316, Jul 7, 2015 IP
    SEMrush
  2. digiaads

    digiaads Well-Known Member

    Messages:
    145
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    130
    #2
    Where are you trying to include this filter in Analytics?

    Can you create two conditions? one to include URL containing "/set-a-record/" and another to exclude matchRegX with the one you don't want to include e.g. /set-a-record/corporates/|/set-a-record/non-corporates/|... and so on?

    I hope that will help.

    Cheers
     
    digiaads, Jul 9, 2015 IP