Skip to main content
Dynamic Traffic Routing lets a single link resolve to different destinations depending on who clicked it — country, device, language — with a default for everyone else. One link on a poster can send iOS users to the App Store, Android users to Play, and everyone else to your website.
destination_url on the link itself is the fallback when no rule matches. It is required, and it is what most of your visitors will get — set it deliberately rather than treating it as a leftover.

Rule shape

Order decides the outcome

Rules are evaluated top to bottom and the first match wins. A broad rule above a narrow one means the narrow one never runs:
The India-specific rule here is dead — the regional rule above it already matched. Put specific rules first.

Grouping several countries

Countries are ISO 3166-1 alpha-2 codes.

Checking it works

get_shortlink_routing_analytics shows which rules actually fired:
A rule with zero matches is usually one of three things: it is shadowed by a broader rule above it, the value is wrong (UK instead of GB), or nobody in that segment has clicked yet.
Check this a day after launching a routed link. A shadowed rule is invisible until you look, and every visitor it should have caught went to the fallback instead.

Keep the set small

Every rule is evaluated on every click. Two or three broad rules plus a good fallback is almost always better than twenty narrow ones — easier to reason about, easier to debug, and the long tail of rules usually catches nobody.