Country Targeting
Target visitors based on country, choosing one or more countries at the same time.
Country Targeting is an OptiMonk targeting condition — called the Country selector — that lets you show or hide campaigns based on the country a visitor is browsing from. You can target a single country, or select multiple countries simultaneously in a single rule, and you can use the condition in both directions: include a list of countries where the campaign should appear, or exclude specific countries where it should not. Country detection is based on the visitor's IP address and requires no integration or additional setup — it works automatically from the moment the rule is configured. Country Targeting is found under the Visitors category in OptiMonk's targeting conditions and can be combined with any other targeting rule using AND logic, making it a building block for geo-specific campaigns: local language promotions, region-specific pricing messages, country-restricted discount offers, or compliance-driven campaign exclusions.
Key benefits
- Show the right offer to the right market without separate campaigns per language. A single campaign can be restricted to one or more countries in a few clicks — so a German-language promotion only fires for visitors from Germany and Austria, a US-specific free shipping offer only appears for US visitors, and a GDPR-sensitive campaign can be excluded from EU countries. One campaign, cleanly scoped to exactly the geography where it is relevant.
- Exclude markets you do not serve or do not want to address. Country Targeting works equally well in reverse: rather than listing every country you want to include, you can exclude the countries where a campaign should not appear — for example, suppressing a domestic-only discount from international visitors, or hiding a currency-specific offer from markets where it would cause pricing confusion. The include/exclude toggle makes both use cases equally accessible.
- Multi-country selection in a single rule. You do not need to create a separate campaign for each country in a regional promotion. A single Country selector condition accepts multiple countries simultaneously — type the name of each country and select from the dropdown, building up a list within one rule. All selected countries are treated with OR logic: the campaign fires if the visitor is from any country on the list.
How it works
In your OptiMonk dashboard, select the campaign you want to geo-restrict and click Edit settings. Under "Select who should see the popup," click Add new condition. In the condition list, find the Country selector rule under the Visitors category and click the Add sign next to it.
In the Country selector configuration, use the mode toggle to set whether the rule should include (show campaign to) or exclude (hide campaign from) the selected countries. Start typing the name of the first country you want to add — a dropdown will appear with matching options — and click to select it. Repeat for each additional country you want to include in the same rule. All selected countries appear as tags within the single condition.
Click Save and proceed through the remaining campaign settings. OptiMonk detects each visitor's country from their IP address at display time and evaluates it against your rule. If the visitor's country matches your include list, the campaign fires; if it matches your exclude list, the campaign is silently suppressed. No developer work, no geolocation API, and no additional configuration is required.
Frequently asked questions
What is Country Targeting in OptiMonk?+
Country Targeting is a targeting condition in OptiMonk called the Country selector that controls which countries a campaign is shown in. You can add one or more countries to include (the campaign fires only for visitors from those countries) or exclude (the campaign is suppressed for visitors from those countries). Country detection is based on visitor IP address and works automatically without any additional setup. It is found under the Visitors category in OptiMonk's targeting conditions.
Can I target multiple countries in a single rule?+
Yes. The Country selector accepts multiple countries within a single condition. Start typing each country name, select it from the dropdown, and it is added as a tag to the rule. All selected countries are treated with OR logic — the campaign fires if the visitor is from any of the listed countries. There is no limit on how many countries you can add to a single rule.
Can I use Country Targeting to exclude specific countries rather than include them?+
Yes. The Country selector supports both include and exclude modes. In exclude mode, the campaign displays to all visitors except those from the countries you specify. This is useful for campaigns tied to domestic promotions, country-specific pricing, or compliance requirements where you want to suppress a campaign in specific markets without having to enumerate every other country in the world.
How does OptiMonk detect which country a visitor is from?+
OptiMonk determines the visitor's country based on their IP address using geolocation. This happens automatically at display time — no action is required from the visitor, and no additional integration or geolocation service needs to be configured on your end. IP-based geolocation is accurate for the large majority of visitors, though VPN users may appear to be from a different country than their actual location.
Can I combine Country Targeting with other conditions?+
Yes. Country Targeting works with AND logic alongside all other OptiMonk targeting conditions. For example, you can show a campaign only to visitors from Germany (country condition) who are on a specific product page (URL condition) and have a cart value above €50 (cart value condition). Each additional condition narrows the audience further, allowing you to build highly precise geo-segmented campaigns without creating separate campaigns for each combination.
Try OptiMonk for free
Launch your first campaign, learn what works, then scale what converts.