We need to see the online behaviors of visitors from USA and Canada using Google Analytics. In other words we need a profile which only has traffic from USA and Canada.
- Create a profile in Google Analytics in which you would like to capture visits from USA and Canada.
- Create a filter that includes visits from USA and Canada only (described below).
- Apply the filter to the profile that you would like to show the data in. (The filter is automatically applied to the profile that you use to create the filter).
Creating the filter to include US and Canada Traffic Only
- Filter Name: Give a Name to your Filter.
- Filter Type: Select “Custom Filter” and select “Include” in the radio button. We are creating a custom filter to include US and Canada Traffic Only.
- Filter Field: Select “Visitor Country” as the filter field. Visitor country is populated based on the IP address of the visitors.
- Filter Pattern: This is where you enter the country names. The small trick is with the format and finding out what to enter as the country names. In this case where I needed the visitor behavior from US and Canada, I used United States and Canada as the countries and my filter was
(Canada|United States). () is required to group all the values together and | is used as on OR.
So what this filter patter is telling is to match either one of the 2 values (Canada and United States) in the Filter Field (Visitor Country).
Here is the final view
Now the question is why did I enter United Sates and Not United States of America of USA or US?
You need to enter what Google Analytics captures the country name as. To find out what you should enter in the country name, go to a profile that does not have any country filters. Go to Visitors --> Map Overlay and scroll down to see the names of the countries. Use the name exactly as it shows in this list.
More Google Analytics Tips.