Display a visitor’s country on your website can make a visitor feel more at home and improve their browsing experience. As soon as the visitor sees their country name on your website for example in your websites headline or just a simple welcome message, it instantly grabs the visitor’s attention and builds trust. Display visitor country on your website is a great way to improve your website’s conversion rate as it adds a local touch.
Step 1 : Sign up for Geolify
Sign up for Geolify, there is no credit card details required. You will get 1000 impressions for free to trial on sign up. Once you get the service working, you can purchase pre-paid impression packs to keep the service live. To provide accurate IP to location data, Geolify is a paid service. It is the only way we can maintain an accurate service.
Step 3: Click the ‘Add New’ button
In the ‘Settings’ section you need to enter your ‘Usage Website URL’. This is the URL where you will be using this service. If you wan’t to make visitor location available throughout your website, then select the ‘Entire Website’ radio button for the ‘Usage Level’. If you just want to use this service in a specific page of your website, then enter the url for the page and select ‘Specified URL Only’.
You can also enter a ‘Default Country Text’ as a fall back if for some reason our service cannot determine the visitor’s country. It is always good to have a fall back country just so that you don’t get blank text on your website.
Step 5: Add ‘Website Code’ to your HTML HEAD
The ‘Website Code’ as mentioned is what extracts the visitor’s location for you and needs to be pasted in between your website’s HTML HEAD tags. An example is shown below.
Step 6: Add ‘geolify_country_name()’ to your HTML BODY