• Resolved stoykom

    (@stoykom)


    Hi,
    I’m using your plugin along with geoIP in order to get it working only in Europe but it never stops popping up.
    And instead of checking it true VPN I just made it the other way round, selected Europe as excluded zone expecting that will result in cookie consent banner won’t show up if I’m accessing from an European locations, Spain.
    But it does still appear every time you clean your browser history.
    I don’t think geoIP is the problem, at least it has an option to check its functionality and everything looks OK:
    Key Value Shortcode equivalent
    $record->city->name Alcalá de Henares [geoip_detect2 property=”city”]
    $record->mostSpecificSubdivision->isoCode M [geoip_detect2 property=”mostSpecificSubdivision.isoCode”]
    $record->mostSpecificSubdivision->name Madrid [geoip_detect2 property=”mostSpecificSubdivision”]
    $record->country->isoCode ES [geoip_detect2 property=”country.isoCode”]
    $record->country->name Espa?a [geoip_detect2 property=”country”]
    $record->location->latitude 40.482 [geoip_detect2 property=”location.latitude”]
    $record->location->longitude -3.36 [geoip_detect2 property=”location.longitude”]
    $record->continent->code EU [geoip_detect2 property=”continent.code”]
    $record->location->timeZone [geoip_detect2 property=”location.timeZone”]

    Definitely that option of your plugin is not functioning at least in my case (and as I’ve seen in some others), and it doesn’t seem that neither VPN nor geoIP are the reason.
    Do you have any idea why might this be happening?
    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Gareth

    (@catapult_themes)

    Hi

    Do you have the Geo IP Detect plugin installed and activated? There aren’t any of the expected classes loading from that plugin in the body element.

    Gareth

    Thread Starter stoykom

    (@stoykom)

    Hello,
    yes, its function is returning the geo IP data I’ve attached.

    The function $record = geoip_detect2_get_info_from_ip(‘90.169.224.191’, NULL); returns an object:
    Lookup duration: 0.00534 s

    Key Value Shortcode equivalent
    $record->city->name Alcalá de Henares [geoip_detect2 property=”city”]
    $record->mostSpecificSubdivision->isoCode M [geoip_detect2 property=”mostSpecificSubdivision.isoCode”]
    $record->mostSpecificSubdivision->name Madrid [geoip_detect2 property=”mostSpecificSubdivision”]
    $record->country->isoCode ES [geoip_detect2 property=”country.isoCode”]
    $record->country->name Espa?a [geoip_detect2 property=”country”]
    $record->location->latitude 40.482 [geoip_detect2 property=”location.latitude”]
    $record->location->longitude -3.36 [geoip_detect2 property=”location.longitude”]
    $record->continent->code EU [geoip_detect2 property=”continent.code”]
    $record->location->timeZone [geoip_detect2 property=”location.timeZone”]

    I’ve read something about conflicts between cache plugins and Geo IP and I′m using WP Rocket on my site.
    Do you think in might be the reason?
    Thanks a lot.

    Gareth

    (@catapult_themes)

    It may be returning that data but it is not adding any classes to the body element which is what it should do. I recommend getting in touch with the developer to see why.

    I don’t think it’s WP Rocket – though you could try disabling that temporarily.

    Gareth

    (@catapult_themes)

    Hi – I just thought: do you have the GeoIP setting ‘Add a country-specific CSS class to the <body>-Tag.’ selected?

    Thread Starter stoykom

    (@stoykom)

    Hi, Gareth.
    Thanks again, selecting that option make it working once and depending from where you access this first time you have it cached to show up or not.
    So I just disabled WP Rocket and everything worked fine.
    As that plugin was only, if any, slightly improving my page loading speed I’ve decided to try another cache plugin that appear in the list of geoIP as suitable.
    Thanks for all the help given.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Exclude zone does not work on my site’ is closed to new replies.