In this article, we will explain a number of methods to geo target your WordPress website using Geolify and our WordPress plugins. We will also discuss the benefits and uses of each method as we go.
- What is geo targeting?
- The WordPress platform
- How does Geolify work?
- Redirecting your WordPress blog by IP geolocation
- Displaying geo targeted content & images in WordPress
- Displaying geo targeted popups & notification bars WordPress
- Blocking your WordPress site by IP geolocation
- Displaying visitor location in your WordPress blog
Plugin download links
- Geo Redirect
- Geo Content
- Geo Image
- Geo Popup
- Geo Bar
- Geo Block
What is Geo Targeting and IP geolocation?
Geo targeting is the process of targeting visitor’s based on their IP geolocation. Targeted visitor’s are usually displayed particular content that is relevant to the visitor’s IP geolocation thus making the visitor feel more engaged. IP geolocation is another term for the visitor’s coordinates (latitude and longitude) on the Earth’s surface. By obtaining the IP geolocation of a visitor, you can retrieve the visitor’s country, state and city.
The WordPress platform
WordPress is an extremely powerful website builder used by millions of people and businesses to create simple blogs all the way to complex community based websites. With WordPress comes a multitude of user developed plugins built over the years. Wordpress out of the box does not contain any geo targeting or IP geolocation features. However a number of free geo targeting plugins exists that allow WordPress developers to geo targeted content as well as display the location of a visitor.
Free plugins are great, however there are a number of issues experienced free WordPress geo targeting plugins. They are:
Local IP location database required
Requirement to download and install a particular IP to location database to your server. The installation process is often complex and requires skill. Some databases also require you to pay and most of the free database require you to leave a back link to their service.
If there is no requirement to install an IP to location database, the plugin will request IP geolocation information from a stored database on the plugin’s server which being free is probably not maintained and monitored which in turn will drastically slow down your WordPress website especially if you have many visitors.
Free IP to location databases usually have inaccurate IP geolocation information which can be detrimental to your visitors if it detects their location incorrectly.
How does Geolify work?
Steps to use Geolify with WordPress
- Sign up for an account with Geolify
- Choose a service (Geo Redirects,Geo Content, Geo Images, Geo Popups, Geo Notification Bar, Geo Block)
- Setup the service in Geolify
- Download the relevant WordPress plugin
- Enter the ID of the service into the WordPress plugin setup
Advantages of using Geolify to geo target your WordPress website
- Powerful location segment (target by including/excluding countries, states, cities, lat/lng/radius and IP address)
- No requirement to modify or write any php code
- WordPress plugins available for easy Geolify script addition
- Visual dashboard in Geolify for easy setup and editing
- Ability to handle a high request rate for geo data
- One account can be used in multiple websites (perfect for marketers and web designers)
Geolify’s geo redirect setup example
WordPress redirection by IP geolocation
One of Geolify’s most used services is geo redirection. In other words, redirecting your website visitors to another page or website by their country, state, city, latitude/longitude/radius or IP address. Geo redirection is a an excellent method for sending visitors from your WordPress website to another country specific website or a country specific page. For example you may have multiple WordPress websites for each country (example.com, example.ca, example.com.au, example.co.uk). Using Geolify and Geolify’s Geo Redirect plugin, you can easily perform both simple and complex redirection.
Features of Geolify’s Geo Redirect service and WordPress plugin
- Redirect entire website or only selected pages
- Redirect by including or excluding countries, states and cities
- Redirect by including or excluding boundaries defined by latitude, longitude and a radius
- Redirect by including or excluding IP addresses
- White list referral domains to prevent redirect for visitors coming from particular domains
- Redirect visitors who come from external sources only
- Pass query strings or sub directory paths onto the redirected url
- Unlimited location-redirect pairs
Displaying geo targeted content in WordPress
Geolify provides a Geo Content service that can allow you to create ‘dynamic’ content that can change based on visitor IP geolocation i.e. country, state and city. Using this service you can easily opt to show or hide specific content which can include rich text, images, videos or any HTML based on the visitor’s location. A perfect example of geo targeted content is displaying phone numbers based on a visitor’s location. Often a single WordPress website is used to cater to a global audience however you may have offices in different countries. Instead of showing all phone numbers at once on your landing page which is tight in real estate, you can only show the phone number that is most relevant to the visitor’s location.
Features of Geolify’s Geo Content service and WordPress plugin
- Create content using a WYSIWYG editor that supports HTML (rich text, images, videos or any html code)
- Display content by including or excluding countries, states and cities
- Unlimited location-content pairs
- Place shortcode in your WordPress page or post where the Geo Content should appear
Displaying geo targeted images in WordPress
Sometimes it may be nesessary to quickly create a dynamic image that can change based on visitor location. A great example is if you are running promotion banners on your website and you would like to show different promotions to people in different states or cities. This is where Geolify’s Geo Image service can be used in a WordPress website to easily change images based on country, state and city. Setting up Geo Images are easy with Geolify. You just need to specify an image url for a particular location segement. There is no limit to how many images you can specify. A simple shortcode is then used in your page or post to display the Geo Image.
Features of Geolify’s Geo Image service and WordPress plugin
- Use your own hosted images by specifiying the image url
- Display images by including or excluding countries, states and cities
- Unlimited location-image pairs
- Place shortcode in your WordPress page or post where the Geo Image should appear
Showing popups based on visitor IP geolocation
Popups are a great way of attracting attention of visitors and are widely used in almost every website around. Popups can be used for lead capture or for showing promotions, the uses cases are endless. However the conversion rate of the popup is highly dependent on how relevant the popup information is to the visitor. An excellent method for ensuring relevancy is to display information in the popup that is applicable to the visitors IP geolocation. Geolify’s Geo Popup service can easily allow you to display various popups to visitors from certain countries, states and cities. For example you may want to offer a free shipping code to only customers in your city. Displaying a geo targeted popup only to these visitors is a great way to avoid annoying those outside your city who cannot use the free shipping code.
Features of Geolify’s Geo Popup service and WordPress plugin
- Create popups using a WYSIWYG editor that supports HTML (rich text, images, videos or any html code)
- Change popup dimensions, background color and background image
- Display popups by including or excluding countries, states and cities
- Unlimited location-popup pairs
Showing notification bars based on IP geolocation
Geolify’s Geo Bar service allows you to display a sleek notification bar on the top of your WordPress website based on visitor IP geolocation. The bar can be styles to suit your color preferences and also include a button link. Geo Bars are a great way to attract attention or lead capture without being ‘in your face’. Geo notification bars are useful for display location specific alerts to visitors. For example you may want to display the EU cookie law to only EU visitors. The Geo Bar can be used to display a notification bar only to visitors in countries from the EU region.
Features of Geolify’s Geo Bar service and WordPress plugin
- Block by country, state, city or IP address
- Unlimited location-block pairs
Blocking your wordpress website by IP geolocation
Sometimes it may be necessary to quickly block visitors from certain countries from visiting your website. This is known as geo targeted block and can be easily achieved using Geolifys Geo Block service. This service works by redirecting unwanted visitors away from your website by their IP geolocation. This is great for chasing away spammers or people from certain countries who continually spam your contact forms.
Features of Geolify’s Geo Bar service and WordPress plugin
- Change notification bar text and include an optional button link
- Change background color, text color and button color
- Float or let the notificaiton bar scroll
- Allow the bar to be closed using a close symbol
- Unlimited location-notification bar pairs
Getting visitor IP geolocation data in WordPress
- Get visitor country, state and city
- Get visitor latitude and longitude
- Display information in a post or page using short codes