Skip to main content
This feature is only available on Pro plans and above.
Geo Targeting is a powerful feature that lets you redirect your users to different links based on their location. This is useful if you want to do location-based personalization. For example, you can redirect your UK users to a UK-specific landing page, with the rest of the world going to your global landing page. To use this feature, click on the Targeting button in the link builder. This will open a new modal with geo targeting options. You can also quickly access the geo targeting feature by using the keyboard shortcut G while in the link builder. To set up a geo-targeted link, you’ll need to provide the following information:
  1. Country: The country that you want to target.
  2. URL: The URL that you want to redirect your users to if they are from the country that you have selected.
Use Geo Targeting to redirect your users to different links based on their location
You can also add multiple geo-targeted URLs by clicking on the “Add location” button. Once you have added the locations and URLs, click on the “Add targeting” button to create your geo-targeted link. When your users click on the link, they will be redirected to the URL that you have specified based on their location.

Priority when combining with other features

If you enable multiple targeting features on the same link, they are evaluated in the following order:
  1. Device targeting (iOS/Android) – checked first
  2. Geo targeting – checked next if no device rule matches
  3. A/B testing – applied last, only to traffic not already redirected by device or geo targeting
This means device targeting takes priority over geo targeting. If a user matches a device targeting rule, that rule applies even if a geo targeting rule also exists for their location.

Usage with the Dub API

You can also use the Dub API to create geo-targeted links. To do this, you will need to set the geo field in the link creation request. The geo field should be an object with a valid country code as the key and the respective URL as the value.

List of valid country codes

Here’s a list of valid country codes that you can use with the Dub API: