Guides/Geo-Targeting Setup

Geo-Targeting Setup Guide

Route visitors to different destinations based on their geographic location. This guide covers country targeting, regional rules, priority ordering, and common patterns.

8 min read

How Geo-Targeting Works

When someone clicks your smart link, GeoRedir detects their country using Cloudflare's edge network. This happens at the network level — no JavaScript, no IP lookups, no delays. The visitor's country is known before the redirect even starts.

GeoRedir then evaluates your redirect rules in priority order. The first rule that matches the visitor's country wins, and they're redirected to that destination in under 200ms.

Country-Based Rules

The most common geo-targeting pattern is routing by country. Each rule specifies one or more countries and a destination URL.

Rule Type: Geo
Countries: US, CA
Destination: https://offer-na.com/?ref=123

Rule Type: Geo
Countries: GB, IE
Destination: https://offer-uk.com/?ref=456

Rule Type: Geo
Countries: DE, AT, CH
Destination: https://offer-dach.com/?ref=789

Country Codes

Use standard ISO 3166-1 alpha-2 country codes (US, GB, DE, FR, etc.). You can add multiple countries to a single rule by separating them with commas.

Region-Based Rules

For more granular targeting, you can route by region (state/province) within a country. This is useful for US state-specific regulations or regional offers.

Rule Type: Geo
Countries: US
Regions: CA, NY, TX
Destination: https://offer-big-states.com/?ref=123

Priority Order

Rules are evaluated from lowest priority number to highest. The first matching rule determines the redirect destination. This matters when rules overlap.

Priority 1: Geo → US (California only)
  → redirect to ca-specific-offer.com

Priority 2: Geo → US (all states)
  → redirect to us-general-offer.com

Priority 3: Fallback
  → redirect to global-offer.com

In this example, Californian visitors match Priority 1 and go to the California-specific offer. Other US visitors match Priority 2. Everyone else hits the fallback.

Common Patterns

iGaming Compliance

Route to licensed operators by jurisdiction:

GB → UKGC-licensed operator
DE → German-licensed operator
SE → Swedish-licensed operator
Fallback → General review page

Amazon Regional Stores

Route product links to local Amazon storefronts:

US → amazon.com/dp/XXX?tag=us-tag
GB → amazon.co.uk/dp/XXX?tag=uk-tag
DE → amazon.de/dp/XXX?tag=de-tag
JP → amazon.co.jp/dp/XXX?tag=jp-tag
Fallback → amazon.com/dp/XXX?tag=us-tag

Best Practices

  • Always add a fallback rule. Without one, visitors from unmatched countries get no redirect.
  • Group similar countries. Put US and CA in the same rule if they share an offer. Fewer rules means easier management.
  • Test with a VPN. Use a VPN to verify rules work for each target country before sending paid traffic.
  • Monitor analytics by country. Check which countries generate the most clicks and conversions to prioritize your geo rules.
  • Start broad, then refine. Begin with continent-level rules, then create country-specific rules as you learn which markets perform best.

Ready to get started?

Create your first geo-targeted smart link in under 2 minutes. Free plan available, no credit card required.

Free plan included • No credit card required • Upgrade anytime