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.
What Are Location Based Popups?
Location based popups are similar to standard popups, but they only display for visitors from specific locations.
So, 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.
- 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 using a plugin.
We recommend using OptinMonster. Itβs the best WordPress popup plugin in the market with over 1.2 million users.
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 their viewing, actions theyβve taken on your site, and more.
The first thing 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 have a new menu item called βOptinMonsterβ in your WordPress admin dashboard.

Click βOptinMonsterβ to open your OptinMonster dashboard.
Then, click βLaunch Setup Wizardβ to connect your site to OptinMonster. If itβs your first time, then you can create a new account for free.

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.

Once youβve done that, select the βPopupβ campaign type.
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β.

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.

Next, click βStart Buildingβ.
This will bring you to the OptinMonster app, where you can customize the appearance of your 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.

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β.

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.

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

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.

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.

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.