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
(@bachstelze)
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).
I’ll take a look shortly and let you know what I find.
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.