Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi is it possible to exclude traffic from a certain country in google analytics?

If yes, how do I do it?

share|improve this question
up vote 5 down vote accepted

You can exclude traffic originating from a specific country via an Advanced Segment.

In the Advanced Segment creation interface you'll add the Dimension "Country", then select "Not containing" in the pulldown menu, then type the country name you wish to exclude in the text field.

share|improve this answer
It works. Thank you for the answer. – Dac Saunders Aug 14 '11 at 18:36

If you want to permanently remove traffic from a specific country you can set up a Custom Filter to exclude it. This can be done via the 'Analytics Settings > Profile Settings > Create New Filter' screen. You need to choose the 'Custom Filter' radio button, leave the 'Exclude' setting as it is then select a 'Filter Field' of 'Visitor Country'. Finally enter the country to remove in the 'Filter Pattern' field.

Remember that this will only take effect going forward after it's applied so the country data will still be included in historical reports. Also, it's not possible to get data back that was excluded so it's best to create a new profile for the filtered data. Just leave what you've got in place and add an additional profile with the filter in place.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.