• Resolved Rookie

    (@alriksson)


    Visitor location – detect visitor’s Country

    Can it hide based on regions in a country as well, let’s say states in the US? Does it load any js and API for this feature? I assume so please tell me more, since I want it as lightweight as possible.

    It uses condition and does not output the link in the HTML code. basically it does not only hide with CSS and display:none;

    • This topic was modified 6 years, 8 months ago by Rookie.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrei

    (@andreiigna)

    Hi,

    Thanks for the interest in using our plugins!

    At the moment the location visibility rule supports only countries, and not states or cities.
    Location is detect by visitor IP, and this is not always accurate for levels below a country https://geotargetly.com/ip-geolocation-databases

    There’s no extra JavaScript added on website, location check is done through WordPress hooks for menus. Location data for a visitor is retrieved once periodically, and then cached in WordPress to make page views load as fast as possible.

    By using Cloudflare for a website, the location check is even faster. The external API is not used and location info is retrieved directly by headers returned by Cloudflare https://support.cloudflare.com/hc/en-us/articles/200168236-What-does-Cloudflare-IP-Geolocation-do-

    Hope this helps

    • This reply was modified 6 years, 8 months ago by Andrei.
    Thread Starter Rookie

    (@alriksson)

    Thanks for the replies.

    The state and city level is pretty critical. 2019 I think this should be possible but maybe not with the database you use. Some things can be used for the country but some are critical for me to be state/city level.

    Maybe something you would look into in the future?

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

The topic ‘Pre questions’ is closed to new replies.