AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
2K members online now
2K members online now
Ask questions about filter set-up and issues with using filters in Google Analytics reports
 
Guide Me
star_border
Reply

Filter by order id

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi, everyone!
I have URL www.website.com/sometest2/0b0074fc-c4de-4b28/sometest3
so I need to set up a filter for this part of URL /0b0074fc-c4de-4b28/ for have a report's with just www.website.com/sometest2/sometest3

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Anatoliy S
June 2017

Re: Filter by order id

Explorer ✭ ✭ ☆
# 2
Explorer ✭ ✭ ☆

Hi Anatoliy,

Here's a way:

  • Filter A: Request URI: (/sometest2)(/[^/]+)(.*)
  • Output To: Request URI: A1A2

This will look for links with /sometest2 and remove the part of the link until next /

Note that if you have a link like /sometest2/usefulstuff/somethingelse, it will be replaced too and become /sometest2/somethingelse... If you have cases like this, let me know and I can provide you a more robust regex.

 

As always, you should have a 3 views:

  1. a raw, unfiltered one
  2. a test view
  3. a production view

Enable this filter on the test view and make sure it works as you expect before applying it to your production Smiley Wink

 

 

 

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Anatoliy S
June 2017

Re: Filter by order id

Explorer ✭ ✭ ☆
# 2
Explorer ✭ ✭ ☆

Hi Anatoliy,

Here's a way:

  • Filter A: Request URI: (/sometest2)(/[^/]+)(.*)
  • Output To: Request URI: A1A2

This will look for links with /sometest2 and remove the part of the link until next /

Note that if you have a link like /sometest2/usefulstuff/somethingelse, it will be replaced too and become /sometest2/somethingelse... If you have cases like this, let me know and I can provide you a more robust regex.

 

As always, you should have a 3 views:

  1. a raw, unfiltered one
  2. a test view
  3. a production view

Enable this filter on the test view and make sure it works as you expect before applying it to your production Smiley Wink

 

 

 

Filter by order id

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

i will test it