[How-to] Use Geotargeting to Display a Visitors Location on a Page



Show first post

86 replies

Has this stopped working? It was working for me before but now defaults to placeholder text. The sample links in the original post don’t seem to work for me either.

Userlevel 6

Hi Scott! I just had a look and the code will still work. However it looks like Geolocation DB now requires a free signup in order to use their service and make requests via their API.

Signing up for a free account will get you an API key and a new URL to use when making a request to the API. After signing up all you need to do is paste in that new URL with the API key in the code and replace the URL in

url: "https://geoip-db.com/jsonp/"

Once that new URL is added everything should work as before 🙂

Hey Rob!

It appears the signup for https://geolocation-db.com/ doesn’t work anymore.
I tried multiple times and it keeps timing out. Can you recommend any good free alternatives?

Thanks!

Userlevel 4
Badge

Hey @Marketing Mark ,

 

Thanks for your comment. Were you able to complete the signup process in the end? I just tried myself and was able to get my API key and URL first time (I signed up through my Google account if that helps).

Hey @Marketing Mark ,

 

Thanks for your comment. Were you able to complete the signup process in the end? I just tried myself and was able to get my API key and URL first time (I signed up through my Google account if that helps).

Nope, still unable to sign up. It keeps timing out… i also tried using a google account.

Userlevel 4
Badge

Hey @Marketing Mark ,

 

Thanks for your comment. Were you able to complete the signup process in the end? I just tried myself and was able to get my API key and URL first time (I signed up through my Google account if that helps).

Nope, still unable to sign up. It keeps timing out… i also tried using a google account.

Thanks for confirming @Marketing Mark . I am sorry that you are still having this issue. I wish I had some alternatives for you, but this is something I am far from an expert on. My only suggestion would be to try signing up with a different device on a different network, or to turn off your VPN if you are using one.

Userlevel 1
Badge

Thank you for this!

Badge

Wow! I have been looking for something like this forever. Thank you so much for putting this together.  

I have implemented it on my page, but not having any luck with it working. I’m sure i’ve done something wrong. 

Any chance someone can take a quick look? www.trojansteel.com

 

Badge

Wow! I have been looking for something like this forever. Thank you so much for putting this together.  

I have implemented it on my page, but not having any luck with it working. I’m sure i’ve done something wrong. 

Any chance someone can take a quick look? www.trojansteel.com

 

Ok, I have been able to make this work after some tinkering. Only question now- how do I make it where it shows City, State?

For the life of me i cannot get this working, maybe the script is outdated now?

Userlevel 7
Badge +3

Hey @heatfactory

It would be easier for us to troubleshoot this for you if you include a link to your page. 

You can also copy your page and publish to the unbouncepages domain you have available to you if you don’t want to share the actual page.  

Reply