How to target by location
Show a popup only to shoppers in certain countries, regions or cities, or browsing a certain Shopify market, and know how accurate each one is.
A free-delivery offer you can only honour in one country should only show in that country. Location conditions keep each offer in front of the shoppers it's meant for.
TL;DR
In your campaign's Rules tab, choose I'll choose the moment. In Show to shoppers who match all of these, click Add condition and pick Country, Region, City, Continent or Is EU Visitor. Choose the places and save. Country is the most reliable; city the least.
What you can target
Popups can target the visitor's continent, country, region and city, worked out from their connection, and the store country they are browsing, for stores selling in several markets. Region and city are only known when the visitor can be located that precisely.
| Condition | How it works |
|---|---|
| Country | is any of the countries you pick |
| Region | is or is any of a US state or Canadian province |
| City | is any of the cities you pick |
| Continent | is any of or is none of |
| Is EU Visitor | True or False |
| Store country (what they are browsing) | The Shopify market the shopper is browsing, not where they are |
Step 1 · Switch to your own rules
Open your campaign and go to the Rules tab. In When should it show?, choose I'll choose the moment.
Step 2 · Add a location condition
In the Show to shoppers who match all of these card, click Add condition and choose Country, Region, City, Continent or Is EU Visitor.
Step 3 · Pick the places
Choose one or more places, then save the campaign.
For City, type at least two letters to search. If the campaign also has a Country condition, the city search looks in the first country you chose.
How location is worked out
Location comes from the shopper's internet connection. No one is asked to share their location.
- Country is known for most shoppers.
- Region and City are filled in only when they can be confirmed. Otherwise only the country is known, and a region or city condition doesn't match.
- VPNs and privacy relays can show only the country, or a different place entirely.
So use Country for anything that matters, like shipping offers or prices, and keep city-level popups for nice-to-have touches.
Location versus the customer's address
These are different conditions:
- Country, Region and City are where the shopper is browsing from, for every visitor.
- Customer Country, Customer Region and Customer City come from the address saved on a customer account, so they only match signed-in customers.
- Store country (what they are browsing) is the Shopify market they're shopping in, such as your UK store, whatever their location.
Ideas
- A shipping offer for one country. Country is any of United Kingdom: "Free UK delivery over £40".
- A holiday popup per country. One popup per country, each with its own dates. See How to schedule a popup for holidays or date ranges.
- A local store event. City is any of the city your shop is in.
Common pitfalls
- A region rule never matches. Region only offers US states and Canadian provinces. For other countries, use Country.
- A shopper in the right city didn't see it. City is only known when it can be confirmed. Widen the rule to the country, or the region.
- The popup shows in the wrong country for me. Turn off any VPN and test again in a private window.
What to read next
How to target by traffic source (UTM)
Show a popup only to shoppers who came from a certain ad, email or social post, using the UTM tags on the link they clicked, this visit or on their very first visit.
How to target by weather
Show a popup when it's raining, snowing, hot or cold where the shopper is, using the current local weather.