Geo-targeting content in WordPress

In the context of affiliate marketing, geo-targeting is a process in which content is displayed based on a site visitor’s location. While it is possible to geo-target based on a town or a city, typically geo-targeting is done on a national level.

Geo-target links to increase your income

Imagine you have a website which sells the Parrot AR.Drone, an augmented reality quadricopter for iOS (and now Android) devices. The product is available for sale Worldwide, but a prospective buyer in the US is very unlikely to buy from HMV. Similarly, an individual in the UK isn’t going to be that interested in what Amazon US has to offer.

By increasing the relevance of your adverts you increase the likelihood that a visitor from any given country will buy through your affiliate site. You’ll also perform better in country specific Google searches if you can highlight your content is relevant to any given country.

The GT-geo targeting plugin for WordPress

As you can see from the comments on the developer’s guidance notes, many users of the plug-in are struggling with the short codes, so here’s a little help!

n.b.  usage is with [square] brackets, I’m using {curly} ones so the code doesn’t activate

{geo-in} – show content to users from a particular country; and
{geo-out} – hide content from users in a particular country.

{geo-in country=”A”}CONTENT{/geo-in} will show ‘CONTENT’  to users in country A. Users outside of country A will see a message saying “content not available for your country”. I think this is a little clunky, so I throw in a blank note, as follows:

{geo-in country=”A” note=””}CONTENT{/geo-in}

Now say you wish to show the same advert to users in several countries. This will be useful when you’re using something like the eBay Partner Program which can provide links for more than one country. That’s easy enough:

{geo-in country=”A,B,C” note=””}CONTENT{/geo-in} will display ‘CONTENT’ to users in countries A, B and C. Anyone outside of these areas won’t see anything at all.

This is great, but you also get visitors from country D. You can cater for these visitors using the {geo-out} code. In the following example, users from countries A, B and C will see ‘CONTENT’ whilst the rest of the world will see ‘DIFFERENT CONTENT’:

{geo-in country=”A,B,C” note=””}CONTENT{/geo-in}
{geo-out country=”A,B,C” note=””}DIFFERENT CONTENT{/geo-out}

You may be asking yourself, why don’t I just populate the note feature? You can, however this only works for short text entries, whilst the {geo-} tags can support code.

A full list of the country short codes is available here.

Where are you?

[geo-in country=”uk” note=””]You’re viewing from the UK![/geo-in] [geo-in country=”us” note=””]You’re viewing from the US![/geo-in] [geo-out country=”uk,us” note=””]You’re viewing from somewhere outside the UK & US[/geo-out]

Published by Adam Arnold

Adam Arnold is a 20(ish), father & founder of the Smarter Group; a member of CTVF500; Entrepreneur in Residence @ Wolves Uni; SPEED+ Mentor & an #sbs winner.

Leave a comment

Your email address will not be published. Required fields are marked *