Redirect by device or country: targeting rules
Send one short link to different pages by device, operating system, browser, country, region, or days and hours. Rules run by priority; first match wins.
On this page
To redirect by device or country, you add targeting rules to a short link: phones go to the app store page, visitors in Germany to the German shop, and everyone else to your usual page. A rule can also match an operating system, a browser, a region, or days and hours. Rules are tried in priority order, and the first one that matches decides.
It's one link for every audience. Print a single QR code on a product box sold in five countries, and each shopper still lands on the right page.
Before you start: you need a short link; see how to create a short link. Targeting rules depend on your plan, and days and hours on a rule are a separate feature; see pricing.
How targeting rules work
Each rule says who it's for and where they go. Anything you leave alone means "any":
- Device: Phones, Tablets or Computers.
- Operating system: iOS, Android, Windows or macOS.
- Browser: Chrome, Safari, Firefox, Edge, Samsung Internet, Opera, or the Instagram, Facebook, TikTok and LinkedIn apps' own browsers.
- Country, and a Region of it, such as a state or province.
- Days, and hours From and Until.
Conditions combine, so "Phones in India · Mon–Fri, 09:00–17:00" is one rule. Visitors no rule matches go to the link's own destination, the Everyone else row.
Add a rule to redirect by device or country
- Open Links, choose the link and open its Routing tab.
- In Targeting, choose Add rule.
- Pick the visitors: Device, Operating system, Browser, Country and Region. Choose a country first to search its regions.
- Enter the Destination for those visitors.
- Leave Priority as offered, or set a lower number to try this rule earlier.
- Choose Add rule.
[screenshot: the Add a rule dialog with Device, Operating system, Browser, Country, Region, Destination, Priority, Days, From and Until]
A rule has to narrow something: one for every device, place and hour is just the link's own destination, and the dialog says so. Each rule's destination is checked for safety, and each rule you add uses one destination edit from your plan's allowance.
A browser reports its device and system itself, so a rule picks a better page; it doesn't block anyone.
Redirect by day and time of day
Add Days, From and Until to a rule for pages that depend on the time: a booking form while the sales desk is closed, or a live page during a weekly webinar.
- Your organisation's time zone: the dialog names it. Change it in Settings › General › Time zone.
- Whole hours: Until is the hour the window ends before, so 09:00 to 17:00 ends at 16:59.
- Overnight: an Until earlier than From runs past midnight, and belongs to the day it starts. Friday 22:00 to 02:00 catches the early hours of Saturday.
Rule priority: the first match wins
When a visit comes in, Brevily tries the rules in order and stops at the first that matches:
- Lowest priority number first, from 0 to 1000. A new rule is offered a number after the others.
- At the same priority, the more specific rule first, so "Phones in India" is tried before "India".
- No match: the link's own destination, or its A/B test if it has one.
So put exceptions first: a rule for California at priority 10, the rule for the rest of the United States at 20. A rule can't be edited in place: to change one, remove it and add it again.
Which setting wins: how a click is decided
A link can carry a password, rules, an A/B test, a deep link and pixels at once. The Routing tab opens with How a click is decided, the order every visit follows, highlighting the steps this link uses:
- Stops the visit: Flagged (the safety warning page), Dormant, Parked (an own domain the plan no longer covers), Lifecycle (not live yet, expired or disabled), then Password.
- Chooses where: Rule, the first match by priority, then Variant, the matching rule's A/B split, else the link's own.
- Then: Count the click, open the app for a Deep link, show the one-second Pixels page, and Redirect.
[screenshot: the Routing tab's How a click is decided strip above the Targeting panel with two rules and the Everyone else row]
A scheduled destination change replaces the link's own destination only, so visitors a rule matches keep going to the rule's page.
See where each click went
The link's Clicks tab has a Routed to column that names the rule each click went through, such as "Rule 1 · Phones in India", with the page it was sent to. Filter by it to see one rule's clicks. Click-by-click history depends on your plan.
A link holds up to 20 rules.
Common questions
Do targeting rules apply to QR code scans?
Yes. A scan opens the same short link, so it goes through the same rules.
Can one targeting rule cover several countries?
No. Add a rule per country with the same destination.
Why did an iPad get the computer page from a targeting rule?
Most iPads report themselves as a Mac, so they match Computers and macOS. A visitor whose device can't be read matches only rules set to any device.
What happens to targeting rules if my plan changes?
They stay. The link ignores them until your plan includes targeting again, and a rule with days and hours is skipped on a plan without them.
Next steps
- A/B testing a short link: split a rule's visitors between pages to find the better one.
- Scheduled destination changes: switch everyone else's page on a date.
- Deep links to app screens: open your app on phones instead of a page.
- Link stats: see where your visitors are and what they use.
- Brevily API: do the same from your own code.
On this page