• The plugin works great, except the GeoIP Detection is not working, so it is not excluding continents, like North and South America that do not have to comply with GDPR. I have installed/activated the GeoIP Detection plugin and downloaded the GeoLite2-City database. I selected all continents other than Europe for exclusion; however I am based in the United States and I still get the consent message every time I visit my site.

    Am I missing anything in order to get the geo detection working?

Viewing 8 replies - 46 through 53 (of 53 total)
  • OK I understand a putting it in a child theme will work for now. However, there might be a clash when the plugin updates next time since this added PHP code is not directly part of the plugin.

    I agree this is only a temporary fix. But small plugin updates will not affect this. I hope they will fix the space issue soon.

    Hey Rahul, I am not as much concerned about the theme update as the plugin update. Will the update in the plugin require the code to be removed or …?

    If the plugin fixes the issue in an update, you can remove that code from functions.php.

    The information about version 2.3.11 says “Fixed: removed additional body margin for hidden bar”. However, it is not yet fixed. I still see a large empty space above my web site (and it looks even worse on a mobile device). The plugin works perfect otherwise. Please fix this (within the plugin).

    Rahul I tried your second version of the PHP code. Added it at the end of functions.php and it worked fine. Thanks Rahul! As far as I understand your code overrules the “Exclude zones” setting in the Cocckie consent plugin. I assume you can change the area selection in your code. Obvious that “EU” is Europe but what would the others be? In your code can you add more than one zone?

    Hi AlwaysEnthusiast,
    You can find the list of continent code here.

    You can add multiple continents like this.
    if($countryCode!="EU" || $countryCode!="AS")

    You can also change the continent code to country code, but you need to replace this code:

    $countryCode = $userInfo->continent->code;

    to

    $countryCode = $userInfo->country->isoCode;

    Thanks!

Viewing 8 replies - 46 through 53 (of 53 total)
  • The topic ‘GeoIP Detection Not Working’ is closed to new replies.