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

RegEx for City Include Custom Filter

Follower ✭ ✭ ☆
# 1
Follower ✭ ✭ ☆

 

 

 

I am setting up a new view in GA and trying to configure a filter that ONLY includes data from specific cities.

 

My set up is:

Custom  

Include

Filter Field = City

Filter Pattern = Baton Rouge, LA|Lafayette, LA|Denham Springs, LA

 

I am testing in GA real-time but do not see it fire at all.

 

I am thinking my filter pattern is wrong but need to confirm.

 

Thanks!

RegEx for City Include Custom Filter

Participant ✭ ✭ ✭
# 2
Participant ✭ ✭ ✭

Hi Jeff,

 

You should first figure out if you have any users in your reports from those cities. Go to Audience -> Geo -> Location -> (Secondary dimension) City -> Your specific cities.

 

I guess you should use this kind of regex in your filter pattern field: Baton Rouge|Lafayette|Denham Springs

 

First of all, figure out if you have any visitors from those cities and then apply this filter.

 

Hope this helps.

Taavi

 

RegEx for City Include Custom Filter

Follower ✭ ✭ ☆
# 3
Follower ✭ ✭ ☆

Thanks. No visitors as of yet from those areas as I just created the view but i will set up the filter pattern and confirm. thanks!