Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Show info based on visitor location

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #165309
    jurotek
    Participant

    I’ve been asked to show a paragraph on one page with some text applicable to visitors from California only. If they are from anywhere else, don’t show that info. It’s the first time I received such a request and have no clue how to go about it. Thanks for your help or pointing me in a right direction.

    #165313
    Alen
    Participant

    I believe the only way to do this is to have user consent to sharing their location, otherwise any other method would not be as efficient. If you try location by IP, you might be getting the location of ISP instead of the actual user.

    https://developer.mozilla.org/en-US/docs/WebAPI/Using_geolocation

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Other’ is closed to new topics and replies.