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

How can i create a filter that shows traffic from canada and the us using regex

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

thanks for the help

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Alejandra Paola G
March 2017

Re: How can i create a filter that shows traffic from canada and the us using regex

[ Edited ]
Participant ✭ ✭ ✭
# 2
Participant ✭ ✭ ✭

Hi,

 

You can create a segment or filter and use this kind of regex: Canada|United States

 

Segment:

 

CA or US segment.png

 

Filter:

 

CA or US filter.png

 

Here you can read more about segments: https://support.google.com/analytics/answer/3124493?hl=en

Here you can read more about filters: https://support.google.com/analytics/answer/1034823?hl=en&ref_topic=1032939

 

Hope this helps. Let me know if you have any further questions.

Taavi

 

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Alejandra Paola G
March 2017

Re: How can i create a filter that shows traffic from canada and the us using regex

[ Edited ]
Participant ✭ ✭ ✭
# 2
Participant ✭ ✭ ✭

Hi,

 

You can create a segment or filter and use this kind of regex: Canada|United States

 

Segment:

 

CA or US segment.png

 

Filter:

 

CA or US filter.png

 

Here you can read more about segments: https://support.google.com/analytics/answer/3124493?hl=en

Here you can read more about filters: https://support.google.com/analytics/answer/1034823?hl=en&ref_topic=1032939

 

Hope this helps. Let me know if you have any further questions.

Taavi

 

Re: How can i create a filter that shows traffic from canada and the us using regex

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Thank you is that canada or the united states or is that canada and the united states

 

i need traffic from both countries at the same time thanks

How can i create a filter that shows traffic from canada and the us using regex

[ Edited ]
Participant ✭ ✭ ✭
# 4
Participant ✭ ✭ ✭

Yes, if you apply this segment or configure this filter, you'll see traffic from both countries.

 

Hope this helps. Let me know if you have any further question @Alejandra Paola GSmiley Happy

 

Cheers,

Taavi

Re: How can i create a filter that shows traffic from canada and the us using regex

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

ok thank you =)