How to exclude specific country or region from Google Analytics
Here are the quick and easy steps to implement, if you want a report of website traffic, excluding a specific country or territory.
However,it should be noted that, it is among the best practices to create new test profiles when you are testing our filters or otheradvanced analytics setups. The reason is that it is not unusual that some of your experiments might turn out to be wrong or do not meet your specific requirements, if you have multiple profiles, then you can safely delete the newly created one without loss of critical data. You should have one untouched raw analytics profile, always.
Having said that, lets move towards our setup, I have already created a new profile for the same website and name it “Filtered Traffic”
As soon as you create the new profile, click the edit button and scroll down to see the “Add New Filter” option.
Kindly note that Google Analytics have 2 types of Filter Setups,i.e. Predefined and Custom, we will select the Custom Filter.
Now select the Visitor Country option to mention the excluded region.
Now in the “Filter Pattern” box, enter your desired value or values.e.g. Filter Pattern: brazil|Argentina
Note:The pipe symbol | allows for multiples within the same pattern. Thus, you can mention one or many countries in the same pattern.
Another way is to put country names you want to exclude separated with | sign, and enclose it with ( ) in Filter Pattern field. For example if you want to exclude traffic stats from China, Australia and India the filter pattern will be(China|Australia|India) . And that’s all, now save this filter by clicking “Save Changes” button.
Kindly note that | and () are regular expressions, they have many uses, read about them at: Google’s Help Page
Original Source: blog.khmohsin.com