Geo-Targeting
Geo-targeting lets you send visitors to different destination URLs depending on where they’re located. This is useful for localized landing pages, region-specific promotions, or compliance requirements. We’ve seen teams use it for everything from language routing to region-locked offers.
How it works
Section titled “How it works”When a visitor clicks your shortlink, Attri detects their country using their IP address at the edge (via Cloudflare). If a geo-target rule matches, the visitor is redirected to the country-specific URL. If no rule matches, they go to the default destination URL. No extra latency. The lookup happens at the edge before the redirect fires.
Setting up geo-targets
Section titled “Setting up geo-targets”- Open the link builder (create or edit a shortlink)
- Click the Geo tab
- Select a country from the dropdown
- Enter the destination URL for visitors from that country
- Add more country rules as needed
- Click Create or Save
You can add as many country rules as you need. Each rule maps one country to one URL (keeping it straightforward means fewer surprises in your analytics).
Example
Section titled “Example”| Country | Destination URL |
|---|---|
| Default | https://example.com/promo |
| United States | https://example.com/us/promo |
| Germany | https://example.de/aktion |
| Japan | https://example.jp/campaign |
A visitor from Germany clicking your shortlink lands on https://example.de/aktion. A visitor from Canada, where there’s no rule, lands on the default URL.
- Geo-detection happens at the edge, so there’s no added latency
- UTM parameters are appended to the country-specific URL just as they are for the default URL
- Geo-targeting is available on all paid plans
- We’ve confirmed sub-50ms redirects even with multiple geo rules active