Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Create a WordPress Popup Based on Location (Step by Step)

Do you want to create a WordPress popup based on the location of your visitors?

Creating WordPress popups based on location helps you deliver the right marketing message, to the right people, at the right time. This means a better user experience and more revenue for your WordPress site.

In this tutorial, we’ll show you how to create popups based on a user’s location and add them to WordPress.

 How to create a WordPress popup based on location

What Are Location Based Popups?

Location based popups are similar to standard popups, but they only display for visitors from specific locations.

For example, visitors from the US will be shown different popups than visitors located in the UK or in Spain.

You can narrow down your location targeting even further, and target specific states and cities. This way visitors in Florida can be shown a different popup than visitors in California.

This process is known as geotargeting, and it lets you encourage your visitors to take specific actions on your site based on where they live.

Why Add WordPress Popups Based on Location?

Using location-based popups in WordPress gives your visitors a highly relevant experience. It shows your visitors that you understand their needs and can lead to better conversions.

This level of personalization can help you reach your website goals, like growing your email list or making money online.

Using geolocation popups can help your business website in a lot of ways, like:

  • Boost website credibility by showing visitors you’re aware of their location
  • Run eCommerce coupons and specials for visitors in certain areas
  • Promote local events and conferences to your visitors
  • Highlight products that are relevant to visitors in different locations

How to Create a WordPress Location-Based Popup

The easiest way to add popups to your WordPress website is by using a plugin.

We recommend using OptinMonster. It’s the best WordPress popup plugin in the market that lets you generate leads, grow your email list, and boost conversions.

You can use the OptinMonster drag-and-drop editor to simply create a popup campaign in minutes. Plus, you can easily personalize your popups based on what page they’re viewing, actions they’ve taken on your site, and more.

First, you’ll need to visit the OptinMonster website and sign up for an account. You will need the Growth plan because it includes Geolocation targeting.

OptinMonster

Next, you’ll need to do is install and activate the plugin. For more details, see our guide on how to install a plugin in WordPress.

The OptinMonster plugin acts as a link between your WordPress site and the OptinMonster software.

Once the plugin is activated, you’ll see the OptinMonster setup wizard. Go ahead and click the ‘Connect Your Existing Account’ button. You can also create a new free account if you haven’t signed up yet.

OptinMonster launch setup wizard

After you’re done going through the setup wizard, your site will now be connected to OptinMonster.

To create your location based popup navigate to OptinMonster » Campaigns.

Then, click ‘Add New’ to create a new popup campaign.

Add new OptinMonster popup campaign

OptinMonster will show you different campaign types to choose from.

Go ahead and select the ‘Popup’ campaign type.

Choose campaign type and template

Next, you’ll select the campaign template. Your template forms the foundation for the design of your popup. So, choose a template that closely resembles the design you want.

For this tutorial, we’ll select the Checkout template. Once you find a template you like, hover over it and click ‘Use Template’.

Select OptinMonster template

Then, you’ll need to name your campaign.

This name won’t appear in your design. Instead, it’s to help you remember what kind of campaign you created.

Start building popup

Next, click ‘Start Building’.

This will bring you to the OptinMonster app, where you can customize the appearance of your popup.

Customize location based popup

You can totally customize your popup by adding new blocks, text, headings, and more. Just click on the element you want to edit and the options menu will appear on the left.

Once you’re satisfied with how your location based popup looks, click ‘Save’, then click on the ‘Display Rules’ tab at the top of the screen.

Set popup display rules

This is where you’ll set your location triggers.

The default rule is your popup will appear on any page after a visitor is on the site for 5 seconds.

You’ll need to change the first rule to the visitor’s physical location. To do this, click on the ‘time on page’ display rule, then select ‘Physical Location’.

Set physical location rule

Now you can set the popup to display for visitors who are in a specific location.

You also have the option to include or exclude visitors who are in an EU country.

Popup visitor location settings

We’re going to set the rule so the popup will show when a visitor is in Las Vegas, NV.

Next, click ‘Validate’.

Set visitor location

Now, a popup will appear that lists available locations based on what you entered. Simply select the location you want and then click ‘Next Step’.

OptinMonster also gives you the option to add an animated effect or sound on the next screen, but we’ll leave the default settings.

Once you’ve done that, click ‘Next Step’ again, and you’ll be taken to the summary page where you can review your location popup settings.

Location popup display rules summary

If your settings are correct, then navigate to the ‘Publish’ tab and switch the ‘Publish Status’ from Draft to Publish.

Next, click ‘Save’ and exit the screen.

Publish location popup

Your popup based on your user’s location will now be live on your site.

If you want to create multiple popups based on location, then follow the same process above and change the ‘Display’ rules to the new user location.

With OptinMonster, you can have multiple popup campaigns running at once and provide a targeted experience for all your visitors.

We hope this article helped you add a WordPress popup based on location to WordPress. You may also want to see our list of the best email marketing services and best live chat software to boost your sales.

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

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit – a collection of WordPress related products and resources that every professional should have!

Reader Interactions

Comments

  1. Congratulations, you have the opportunity to be the first commenter on this article.
    Have a question or suggestion? Please leave a comment to start the discussion.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.