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
3.2K members online now
3.2K members online now
Ask questions about filter set-up and issues with using filters in Google Analytics reports
 
Guide Me
star_border
Reply

Not able to track subdirectory datayts

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hey guys, I want to track data separately for my subdirectory ie www.loginradius.com/resources/ section. But the specific resources of this section are structured as https://www.loginradius.com/resource/customer-identity-preference-trends-q2-2016/. Notice the difference of "resource" and "resources" in the URL? I want to know how i can create filter in Google Analytics that it can track both as google analytics allows only one "Include only" filter. Any h 

1 Expert replyverified_user

Not able to track subdirectory datayts

Rising Star
# 2
Rising Star

Hey Kavita,

 

Easily done.  Filter  >> Custom >> Include >> Request URI  pattern option of ^/resource/|^/resources/

 

there are other more efficient ways to do it in RegEx but this one is the most straightforward i.e. ^ is begins with and the pipe | is or.

 

Best,

 

Theo Bennett

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn