Excluding traffic stats from specific countries in Google Analytics

Google Analytics (GA) provides comprehensive web traffic stats and being used by a huge number of websites. For many small and medium size sites traffic other then specific countries is not very useful. For example while calculating conversion ratio you may not want to include traffic from all parts of the world if you are only targeting one or few countries. It is a tough ask to manually exclude non targeted traffic stats from such reports.

Google Analytics provide option to exclude traffic stats based on the region or country of visitor. In this post I will show how to exclude traffic stats using this feature.

To start login to your GA account and click “Edit” link on profile in which you want to exclude traffic stats. You will see a section “Filters Applied to Profile” on next page. This will show any existing filter you already have setup on website profile. Click on “+ Add Filter” link to add exclude filter for countries. On this screen choose “Custom filter” in filter type field,the screen should look like image below.

google_analytics-01

Here you can provide name of the filter as you like, i have used “Exclude Countries” for this example filter. Now you all have to do 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. The screen should look similar to screen below. If you only want to exclude specific county then the pattern will be simply the name of the country.

google_analytics-02

Note: This will only exclude stats from all GA reports, it will not block any visitors to visit your website.