Title: Exclude countries not working
Last modified: August 22, 2016

---

# Exclude countries not working

 *  Resolved [firas](https://wordpress.org/support/users/bachstelze/)
 * (@bachstelze)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/exclude-countries-not-working/)
 * When I enter some country codes in “Excluded countries list” and then click “
   Update”, the page reloads and the “Excluded countries list” field is empty. The
   countries I entered are not excluded.
 * By the way, I upgraded to 4.1, but the same thing happened on 4.0.1.
 * [https://wordpress.org/plugins/wp-statistics/](https://wordpress.org/plugins/wp-statistics/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [Greg Ross](https://wordpress.org/support/users/gregross/)
 * (@gregross)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/exclude-countries-not-working/#post-5592948)
 * There’s a typo in the settings page, edit the file wp-content/plugins/wp-statistics/
   includes/settings/tabs/wp-access-level.php. Line 176 is currently:
 *     ```
       <textarea id="wps_exclude_countries" name="wps_exclude_countries" rows="5" cols="10" class="code" dir="ltr"><?php echo $WP_Statistics->get_option('exclude_countires');?></text
       ```
   
 * it should be:
 *     ```
       <textarea id="wps_excluded_countries" name="wps_excluded_countries" rows="5" cols="10" class="code" dir="ltr"><?php echo $WP_Statistics->get_option('excluded_countries');?></textarea>
       ```
   
 * Next release will have a fix as well.
 *  Thread Starter [firas](https://wordpress.org/support/users/bachstelze/)
 * (@bachstelze)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/exclude-countries-not-working/#post-5593093)
 * This works but it seems to have no effect, the countries are still not excluded
   from statistics. I enter the country codes as e.g. US, RU, CN (each on one line
   as indicated).
 *  Plugin Contributor [Greg Ross](https://wordpress.org/support/users/gregross/)
 * (@gregross)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/exclude-countries-not-working/#post-5593101)
 * I’ll take a look shortly and let you know what I find.
 *  Plugin Contributor [Greg Ross](https://wordpress.org/support/users/gregross/)
 * (@gregross)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/exclude-countries-not-working/#post-5593102)
 * I found another bug in the logic, this is more complex to resolve so you’ll have
   to wait for the next release for a fix.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Exclude countries not working’ is closed to new replies.

 * ![](https://ps.w.org/wp-statistics/assets/icon.svg?rev=3081064)
 * [WP Statistics – Simple, privacy-friendly Google Analytics alternative](https://wordpress.org/plugins/wp-statistics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-statistics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-statistics/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-statistics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-statistics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-statistics/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Greg Ross](https://wordpress.org/support/users/gregross/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/exclude-countries-not-working/#post-5593102)
 * Status: resolved