Smart routing
One short link can send different visitors to different pages. A visitor in Germany can get the German store, an iPhone user the App Store, and half your traffic a new landing page.
PlanPro and above
Set up routing
- Open the link editor and go to Routing.
- Under Smart routing, pick a kind.
- Fill in the URLs, then save.
Each link has one routing rule. To stop routing, pick Off.
Kinds
| Kind in the app | kind | Sends each visitor to |
|---|---|---|
| Rotator | rotator | The next URL in the list, in turn. |
| A/B Test | ab | A URL picked at random, by weight. 70/30 sends about 70% to the first. |
| Geo | geo | The URL for the visitor's country. |
| Device | device | The URL for iOS, Android or desktop. |
| Time | time | The URL for the current day and time, in a time zone you pick. |
| Visitor | cookie | One URL on the first visit, another on later visits. |
| App Store | appstore | The App Store on iPhone and iPad, Google Play on Android. Growth and above. See Mobile deep links. |
All routing URLs must start with http:// or https://.
When no rule matches
Geo, Device, Time and App Store rules have a fallback URL. A visitor who matches no rule goes there, for example a visitor from a country you didn't list. Without a fallback URL, they go to the link's main destination.
This is not the same as the link's Fallback panel. That one is a backup for when the destination is down. See Links.
Compare results
Every click records which URL it got, as the variant. The link's analytics page shows clicks per variant, so you can see which page of an A/B test does better. Variants are named by their label, or v0, v1 and so on. Geo clicks use the country code. Device and App Store clicks use ios, android or desktop. A visitor who matched no rule shows as fallback.
To compare sales, not just clicks, turn on conversion tracking.
Rule format
With the API, send the rule as the link's routing field. See Create a link. To remove it, send "clear_routing": true.
Rotator and A/B test
2 to 10 variants. Each has a url, a weight from 1 to 100 (default 1), and an optional label of up to 32 characters. A rotator ignores weights.
{
"kind": "ab",
"variants": [
{ "url": "https://example.com/landing-a", "weight": 70, "label": "control" },
{ "url": "https://example.com/landing-b", "weight": 30, "label": "new-hero" }
]
}
Geo
geo maps two-letter country codes (ISO 3166-1) to URLs. At least one is required.
{
"kind": "geo",
"geo": {
"US": "https://shop.example.com/us",
"DE": "https://shop.example.com/de"
},
"fallback_url": "https://shop.example.com"
}
Device
device maps ios, android and desktop to URLs. iPads count as ios. Any device that isn't iOS or Android counts as desktop.
{
"kind": "device",
"device": {
"ios": "https://example.com/iphone",
"android": "https://example.com/android"
},
"fallback_url": "https://example.com"
}
Time
tz is an IANA time zone such as Europe/London (default UTC). Up to 12 windows, checked in order; the first match wins.
| Window field | Description |
|---|---|
url | Where to send visitors in this window. Required. |
days | Days it applies to, 0 (Sunday) to 6 (Saturday). Empty means every day. |
start, end | HH:MM, 24-hour. Default 00:00 to 23:59. A window can cross midnight, such as 22:00 to 06:00. |
label | Optional name, up to 32 characters. Shown as the variant. |
{
"kind": "time",
"tz": "America/New_York",
"windows": [
{
"url": "https://example.com/call-us",
"days": [1, 2, 3, 4, 5],
"start": "09:00",
"end": "17:00",
"label": "Business hours"
}
],
"fallback_url": "https://example.com/leave-a-message"
}
Visitor (new or returning)
LinkLane sets a cookie for this link on the first visit. A visitor who still has it goes to returning_url. days is how long the cookie lasts, from 1 to 365 (default 30).
{
"kind": "cookie",
"new_url": "https://example.com/welcome",
"returning_url": "https://example.com/whats-new",
"days": 30
}
App Store
At least one of ios_url and android_url. Growth and above.
{
"kind": "appstore",
"ios_url": "https://apps.apple.com/app/id000000000",
"android_url": "https://play.google.com/store/apps/details?id=com.example.app",
"fallback_url": "https://example.com/app"
}