Displaying a visitor’s city name on websites is a widely used technique to show that your business is local and located near your visitors. Providing a local touch by showing the city the visitor is from is a great way to boost conversion rates and trust of your website. You might have already come across numerous dating advertisments around the internet showing ads such as ‘find singles in [your city]‘. How do they show such ads? It is a technique called geo targeting.
Below is a step by step guide on how you can use Geolify to display a visitor’s city on your website
Step 1 : Sign up for Geolify
Sign up for Geolify, it is completely free to start a trial account with a 1000 impressions to get going. Once you are happy with the implementation you can purchase more impressions which can be used on all our services and for multiple domains making Geolify an excellent tool for web developers.
Step 3: Click the ‘Add New’ button
Follow the instructions on the Javscript setup page and complete all fields correctly. If you need help, you can always click on the ‘instructions’ link next to each field to see how to complete it. There is also an overall instruction page which can be seen by clicking on the blue ‘Instructions’ button on the top right corner of the screen.
Don’t forget to fill in the ‘Default City’ field. This is used as a fall back incase for some reason Geolify cannot determine the visitor’s city. The fall back text will be displayed instead so that your web page text does not look blank.
Step 5: Add ‘Website Code’ to your HTML HEAD
To obtain visitor city information throughout your website, paste the ‘Website Code’ in between your HTML HEAD tags. An example is shown below:
Step 6: Add ‘geolify_city_name()’ to your HTML BODY
Displaying a visitor’s city in your website for example in a headline or as a title is a great way to get attention. Website visitors are generally more attracted to something that is local or ‘around them’ as they feel it has some value to add. Geolify is an excellent easy to use tool to display a visitor’s city in any part of your website whether it is in a paragraph of text or a popup. Unlike other geo location services, you don’t need to download and install any complex IP to location database. Everything is handled by Geolify itself. Geolify is a fully managed service which makes it great to use if you are a web developer and need to provide location data to a number of client websites.