Ultimate Guide to Geotargeting in WordPress – Step by Step

Would you like to use geotargeting in WordPress to improve the customer experience?

Geo-targeting enables website owners to present users with personalized content based on their geographic location. It helps improve user experience and conversion rates for businesses.

In this ultimate guide, we are going to show you how to use geolocation in WordPress to increase sales and customer satisfaction.

Why use GeoTargeting in WordPress?

Geotargeting, or geo-location targeting, is a marketing technique that enables companies to offer custom user experiences based on a customer's geographic location.

You can use geolocation to make your content, products, and websites more relevant to the customer. Research shows that it generates user interest, increases engagement, leads to higher conversions, and generates more sales.

A Google study found that 61% of smartphone owners prefer to buy from websites that customize information for their location.

For example, a real estate website can use geolocation to display specific real estate advertisements in a user's region. Likewise, an online shop can offer customers free shipping by first determining their geolocation.

Now let's look at some of the easiest ways to use geotargeting effectively in WordPress. Here is a brief overview of what we'll cover in this guide.

Track users' geographic locations in WordPress

Before you learn how to target users in different geographic locations, you need to collect the data about where your users are from.

The easiest way to keep track of the user's geographic locations is to use MonsterInsights. It's the best Google Analytics plugin for WordPress and it allows you to easily track website visitors.

MonsterInsights

The first thing to do is to install and activate the MonsterInsights plugin. For more information, see our step-by-step guide to installing a WordPress plugin.

After activation, the plugin will automatically lead you to connect your WordPress website to your Google Analytics account. If you need help, check out our step-by-step guide on installing Google Analytics in WordPress.

After that, you can view your website traffic reports by visiting the Insights »Reports Page.

View country report in MonsterInsights

A section of the top 10 countries will be shown to you. You can view more data by clicking the "View Country Report" button. This will take you to the Google Analytics website, which will display a full list of countries.

Google Analytics geolocation report

You can click on any country to see how users from that country used your website, how many pages they viewed, how much time they spent, what they converted, and more.

You can then tailor your strategies to target regions that are not doing well and find more ways to increase revenue in locations that are doing well.

Using geotargeting in WordPress and WooCommerce with OptinMonster

The most common use of geolocation is to show your users personalized content based on their location.

This is where OptinMonster comes in.

It's the best conversion optimization software in the world as it can help you convert abandoned website visitors into customers and subscribers.

It's also packed with incredibly powerful display rules, including geolocation, to display targeted messages on your website.

First, you need to sign up for an OptinMonster account.

Note: You need at least your growth plan to access goetargeting functions.

OptinMonster

After logging in, switch to your WordPress website to install and activate the OptinMonster plugin. For more information, see our step-by-step guide to installing a WordPress plugin.

This plugin acts as a connection between your WordPress website and your OptinMonster account.

After activation you need to visit OptinMonster »Settings Click the "Connect an Existing Account" button.

Connect the OptinMonster account to WordPress

A popup will then appear where you can log in and connect your WordPress site to your OptinMonster account.

Now that your WordPress site is connected, it's time to create your first geolocated campaign. Go to OptinMonster »Campaigns Click the Add New button.

Create campaign

First of all, you need to choose your campaign type. OptinMonster supports lightbox popups, floating bars, inline optins, full screen, slide-in and gamified campaigns.

For this tutorial, we will select a lightbox popup campaign. Below that you can select a campaign template by clicking on it.

Select the campaign type and template

Next, you'll need to enter a name for your campaign. You can enter any name here and then click the "Start building" button.

Enter the campaign name

This will start the campaign creation interface of OptinMonster with a live preview of your campaign in the right area.

Editing the OptinMonster campaign

You can simply point to an item in the preview and click to edit, move, or delete it. You can also add new items from the left column.

Let's add some personalized geolocated messages to this campaign. To do this, we use an OptinMonster function called Smart Tag.

Just click on a text area or add a new block of text and then click the Smart Tag button on the text toolbar.

Detect and display user location in OptinMonster using Smart Tag

It shows you a list of smart dynamic texts to add to your content.

We're going to add the {{city}} smart tag to our campaign. This tag automatically recognizes the user's city and shows it in the campaign content.

Once you have finished editing your campaign, you can switch to the "Display Rules" tab. Here you can configure when your campaign should be displayed.

View rules for setting up geolocation campaigns

Next, you need to create a new rule set and use the physical location as the condition to check.

After that, you will be asked to select the criteria you want to match. For example, we would like to show this campaign when the visitor's location is in Florida.

Show geolocation criteria

Click the Validate button to make sure your condition is set up correctly. Then click the Next Step button to continue.

Next, you'll be asked which campaign view you want to see and if you want to use special effects.

Campaign display settings

Click the Next Step button to continue and save your rule set.

After everything is set up, you can switch to the Publish tab to get your campaign up and running. Just go from draft to publish to publish status by clicking on it.

Publish your geotargeting campaign in WordPress

Don't forget to click the "Save Changes" button to save your campaign settings and then click the "Close" button to exit the builder.

After that, you will be redirected back to your WordPress site where you can configure where and when you want to view the campaign.

Publish your campaign in WordPress

Simply change the status from Pending to Published and hit the Save Changes button to start your campaign.

You can now visit your WordPress website in incognito mode to view your campaign. You need to be in the location you are targeting to view the campaign.

Geotargeted popup in WordPress with a custom message

Note: If you are not in this region, you can check out a VPN service whose servers are in this region. This is a great way to mimic the location you want your geolocation campaigns to target.

Other geotargeting campaign ideas for WordPress with OptinMonster

A header that announces free shipping with a countdown timer to trigger the FOMO effect.

A floating banner with a countdown timer triggered by geo-location targeting

An insert message aimed at local users to request a call back from your sales team.

A geographically targeted Slidein message

Here is an example of an inline campaign that can help users find content relevant to their location.

Inline campaign with locally relevant information for users

Using geolocation data in WordPress forms

You can use forms to generate leads, connect with customers and website visitors, and grow your business. With geolocation data, you can learn more about your customers and offer them more local content.

For this you need WPForms. It's the best WordPress Form Builder plugin out there and it allows you to build any type of form you need.

It also includes a geolocation addon that allows you to capture the geolocation information of users with form submissions.

First, you need to install and activate the WPForms plugin. For more information, see our step-by-step guide to installing a WordPress plugin.

After activation, you need to visit the WPForms »Settings Page to enter your license key. You can find this information under your account on the WPForms website.

Enter the WPForms license key

Next you have to visit WPForms »Addons Page. From here you need to click the "Install Addon" button next to the GeoLocation addon.

Geolocation addon

WPForms will now retrieve the add-on for you, install it and activate it for you.

You can now create your first form by visiting WPForms »Add new Page. First, enter a name for your form and choose a template.

Create a new form

A template is a starting point that you can use to quickly create forms. You can also start with a blank form if you'd like.

Clicking on a template starts the form creation interface. On the right you can see pre-installed form fields based on the template you selected. You can add new fields from the column on the left.

Form creator

You can also just click a field to edit it, drag and drop to move it, or delete a form field.

When you're done, don't forget to hit the save button to publish your form.

Your form is now ready. To collect geolocation data, you need to add the form to your website.

WPForms makes it easy to add your forms anywhere on your website. Just edit the post or page you want to add the form on and hit the (+) Add New Block button.

Find the WPForms block and add it to your post.

WPForms block

Simply select the previously created form in the block settings. WPForms loads a live preview of your form in the content editor. You can now save your post or page and view your form in action.

View geolocation data for your form entries

After adding the form to your website, wait for some form entries to be captured or add some test entries yourself.

After that you can go WPForms »Entries Page and click your form name to view entries. On the Entries page, click the View link next to an entry to view its details.

View form entries in WPForms

On the input details page, you will see a field with the geographic location of the user on the map.

The geolocation pointed to a map

Using geolocation data for your WordPress forms

Geolocation data can be used to grow your business. You can find out which regions are showing more interest in your products, services or your website.

You can compare this data with your Google Analytics reports to see which regions are not doing well. If your company serves a global audience, you can offer forms in local languages.

Using GeoTargeting in WooCommerce

WooCommerce is the largest e-commerce platform in the world running on WordPress. It has built-in geolocation functionality that allows you to locate the user and view tax and shipping information.

In this section we assume that you have already set up your online shop. If you don't, follow our guide to creating an online store for step-by-step instructions.

After that you have to visit WooCommerce »Settings Page and scroll down to the General Options section.

Geolocation settings in WooCommerce

From here you can select the countries or regions you are selling or shipping to. You can also change the Default Customer Location option.

By default, WooCommerce assumes that the customer's location is "no location". You can change this to use your business address or use Geolocate to find the customer's country.

Note: The geolocate feature only searches for the user's country based on their IP address and WooCommerce uses a third-party integration to get this information.

You can also use Geolocate with page cache support. The downside to choosing is that your product urls will display a v = XXXX string.

Don't forget to click the "Save Changes" button to save your settings.

Next, you'll need to go to the Integrations tab and you'll see an option that asks you to provide a MaxMind API key.

MaxMind API key

This third party service looks for GeoLocation information for your WooCommerce store.

Now you need to sign up for a free MaxMind account. When you're done signing in, sign in to your account dashboard.

From here you have to click Services »Manage license keys Menu. On the next page, click the Generate New License Key button.

Generate license key

Then just copy the generated API key and paste it into your WooCommerce settings.

Don't forget to click the "Save Changes" button to save your settings.

WooCommerce now uses geolocate data to calculate taxes and shipping costs. However, you still need to configure shipping zones, shipping costs, and taxes.

We hope this article has helped you learn how to use GeoTargeting in WordPress to increase sales and improve the user experience. You might also want to check out our tried and tested tips for increasing website traffic and our comparison of the best business phone services for small businesses.

If you enjoyed this article, please subscribe to our YouTube channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Comments are closed.