Geotargeting WordPress Blog

Important news, plugin updates and articles from WordPress community.

How To Geo-Target Affiliate Links On WordPress: Easy Guide

Looking for an easy way to geo-target affiliate links on your WordPress site?

Most sites have global traffic, but not all of your affiliate offers are built to handle traffic from around the world. For example, some affiliate offers…

  • Have different domains for different regions. Amazon is the best example of this - you have,,, etc. Amazon affiliate geo-targeting is a very common strategy to address this and boost commissions.
  • Don't accept traffic from all regions. In this case, sending traffic from a restricted location is just a waste. Using geo-targeted affiliate links, you can send that traffic somewhere else.

By learning how to geo-target affiliate links, you're able to always send traffic to the best-converting offer for their region. That means higher conversion rates and more commissions for you.

If you want to create geo-targeted affiliate links on your WordPress site, you'll need a plugin, though.

In this post, you'll learn how to use the Geo Links addon from Geotargeting WP to geo-target any type of affiliate link from any platform. We'll use Amazon affiliate geo-targeting for our example, but you can send traffic to literally any URL.

The Geotargeting WP service offers a 14-day free trial, so you'll be able to follow this entire tutorial without needing to pay anything.

Let's dive in…

Ok, here's how Geo Links works at a high level…

When you go to create a new affiliate link, you can choose one destination URL to act as the default destination. For example, if you want to geo-target Amazon affiliate links, you could make your default link go to

Then, you can add as many geo-targeting rules as you want to handle specific regions, countries, states, or cities.

For example, you could:

Make the default destination URL except if a visitor is from….

  • The UK - send them to instead.
  • Germany - send them to instead.
  • Japan - send them to instead.

You get the idea - you can create as many geo-targeting rules as needed.

You can also build unlimited affiliate links, each with their own unique sets of geotargeting rules.

Ready to learn how to geo-target affiliate links on WordPress? Keep reading for the step-by-step tutorial…

To get started, you'll need to sign up for a Geotargeting WP account and activate the Geo Links addon. Again, you get a 14-day free trial, so you won't need to pay anything to follow this guide.

Once you download the plugin, install and activate it at your WordPress site.

Then, go to the Api Keys section of your Geotargeting WP account. Add your WordPress site to the Allowed domains section:

Then, copy your API Key and API Secret and add them to the plugin's interface by going to GeoTargetingWP → Settings in your WordPress site's dashboard:

Step 2: Configure Your Base Redirection Slug

Your base redirection slug is the generic portion of a link that appears immediately after your site's URL. For example, it could be:

  • Etc.

For each individual affiliate link that you add, you'll further be able to add a slug after the base slug. For example:

  • Etc.

To set your redirection slug, go to GeoTargetingWP → Settings. Then, choose the Geo Links tab and enter your slug in the box:

You can also choose whether or not to enable the stats functionality for your links (you'll learn how stats work at the end).

Now, you're ready to create your first geo-targeted affiliate link.

To create a new geo-targeted affiliate link, go to GeoTargetingWP → Geo Links → Add New:

First, give your link a descriptive title. This is purely internal - it just makes it easy to remember which affiliate link is which once you've added a lot of different links.

Then, enter the:

  • Link Slug - this is the portion of the URL that appears after the base redirection slug that you set in the previous step. For example,
  • Redirection code - the default 302 is a good option most of the time. But you can change it if needed.
  • Default URL - this is the default affiliate link that you want to send people to. Any visitor who is not in one of the locations that you specify in the next step will be sent to the default URL. For example, if you're an Amazon affiliate, you would probably want to make the default

Step 4: Create Destination Rules For Specific Locations

Next, you can use the Destinations area to add different destination URLs for users that match specific criteria.

Beyond being able to target by locations like:

  • Country
  • Region
  • City
  • State

You can also target by specific devices or referring URLs.

For example, here's what it would look like to send German visitors to instead of

You can also use that ADD button to create multiple rules for different locations.

For example, you could send German visitors to AND also send Japanese visitors to but only if they're using a mobile device:

There's no limit on the number of destination rules that you can have - so feel free to add as many as you desire.

Additionally, the different destination URLs do not have to share the same domain name.

For example, you could send:

  • German visitors to
  • Vietnamese visitors to (an unaffiliated Vietnamese eCommerce site because Amazon doesn't operate in Vietnam)

Get as creative as you need to maximize your conversion rates and revenue!

When you're finished, make sure to Publish your link.

And that's it! All you need to do is repeat the process for the different geo-targeted affiliate links that you need to add.

Viewing Statistics For Individual Affiliate Links

Before we finish this article out, we'll show you one more thing.

If you have the stats feature enabled (which it is by default), you can view total clicks for an affiliate link in the main Geo Links list:

And if you edit an individual link, the Stats section at the bottom will show you which individual destination rules have been visited:

Start Geo-Targeting Affiliate Links On WordPress

By using geo-targeted affiliate links at your WordPress site, you're able to make sure that visitors always get sent to the affiliate offer that's most relevant to their location.

Ready to get started? Head to the Geo Links addon page to learn more and start your free trial.

Powered by Froala Editor

Check out our WordPress geolocation solutions
to find out everything you can do!

Start your free trial