How To Exclude Country In Google Analytics?

Want to get an accurate and precise picture of how an SEO campaign is working?

If so, you need to measure the amount of traffic coming into your web properties in an accurate manner.

Now, if you are running a business serving a local community in a country, then there could be chances of web traffic coming into your website from a different country.

At times, it could be from a hostile or enemy country. The web traffic could be spam traffic that can ALTER your Analytics results in a bad light. You might not be aware of the same or that the spam traffic is coming from an enemy or hostile nation. This can be dangerous and can harm your data and results in a bad way which will affect your business.

Hence, it is important to remove this spam traffic data. Once you remove the data, next you should exclude the country from where it is coming from in Google Analytics.


Country in Google Analytics refers to a Dimension under the Geo Network Section; or Audience > Geo Section.

There are two aspects that you must know. They include:

  • Total number of countries in Google Analytics is around 230 while in Google Search Console, it is 197.
  • Country Code is derived from the ISO-3166-1 alpha-2 code defined by the International Organization for Standardization. Likewise, a user’s country is derived from their IP addresses or Geographical IDs.


Just follow the below mentioned steps.

  • Go to the ADMIN section. Then create VIEW.
  • Next go to ADMIN Settings > VIEW Settings > Filters.
  • Select CUSTOM under Filter Button.
  • Select ‘EXCLUDE’.
  • Select ‘COUNTRY’ in the FILTER field; OR drop-down menu FILTER field.
  • Mention the name of the COUNTRY in the FILTER Pattern field.
  • Click on Verification Button TO check if the filter is applied properly or not. If done properly, then SAVE it.

The above steps if followed properly will allow you to filter out OR exclude specific countries from your Google Analytics account data.

It is important to

  • Include only data from a specific COUNTRY in your Google Analytics data.
  • Create a Reporting Segment to filter out specific countries.
  • Create a Reporting Segment to show only one COUNTRY in the Google Analytics Reporting Data.

Please note that if you

  • Create Filters only. It will work for future data.
  • Create Segments in the Reporting Tab. For this you will need to choose and apply a SEGMENT from the SEGMENT list area in the Reporting Tab. This will allow you to see past recorded data sans bad data.


To exclude a COUNTRY from your report in Google Analytics 4, YOU need to use the EDIT comparisons’ feature of Google Analytics 4.

Just follow the following steps for that:

  • Click on EDIT COMPARISIONS option in the Report Section available on top right section of the system dashboard.
  • Click on the 3 Dots. Then select EDIT COMPARISIONS.
  • Select your Dimension as EXCLUDE.
  • Select your Dimension as COUNTRY.
  • Select your Dimension Value (that is the COUNTRY you want to exclude).
  • Click OK button.
  • Click APPLY button.

If the above steps are executed properly, your DATA from thereon for a specific COUNTRY will be excluded from your Google Analytics 4 Report.

Related Posts

How Going Digital Can Help Start-up Healthcare Companies?

How Going Digital Can Help Start-up Healthcare Companies?

For healthcare startups, success is never easy, for there are already established players in the marketplace with a strong presence. However, ever since digital marketing has come…

Enable Google Analytics Demo Account - Rank On SEO

How To Enable Google Analytics Demo Account?

A Google Analytics Demo Account is very useful. It comes in handy for a variety of reasons. Like testing how to implement a new feature; OR showing…

What are the options for filtering data in google analytics

What are the options for filtering data in google analytics?

Filters are a powerful weapon. By using them, you can control the data included in your reports. What makes them different from segments is that unlike segments…

Which Tags Are Standard Google Analytics Campaign Parameters

Which Tags Are Standard Google Analytics Campaign Parameters?

Google Analytics tracks, reports, and measures activities that occur on your website. To do it, is anything required to be done? Yes, you need to place some…

When Creating A Goal In Google Analytics Which Are Required

When Creating A Goal In Google Analytics Which Are Required?

You may wonder why Goals in Google Analytics is important. That’s because when you invest your money in your website, you would want to get the most…

how to install google analytics on godaddy website - Rank on SEO

How To Install Google Analytics On Go Daddy Website?

GoDaddy is a popular hosting and domain products provider. Additionally, it also provides a website builder which contains everything that is required to create a beautiful website….

Leave a Reply