Routing Rules: One Link, the Right Destination for Everyone
Attach conditional rules to any short link and send each visitor to a different destination based on their country, device type, operating system, or browser — no code, no developer needed.
Try smart routing freeOne Link, Different Destinations
What Are Routing Rules?
Routing Rules let you attach conditional rules to any trimy short link. When someone clicks the link, trimy evaluates their request against your rules in priority order and redirects them to the matching destination. If no rule matches, they go to the default destination.
This solves a persistent problem in global marketing: you want a US visitor to see a US pricing page, a UK visitor to see a UK page, and an iOS user to be sent to the App Store — all from the same link you put in a single email. Routing Rules handle this automatically at the redirect layer, with zero latency added.
Routing Rule Types
Country Routing
Redirect based on where your visitor is. Send US visitors to your US pricing page, UK visitors to your UK site, or give each region its own localized landing page — all from the same link, automatically.
Device Routing
Route based on device type: Mobile, Tablet, or Desktop. Send mobile users to your app download page, desktop users to your full web experience, and tablet users to a tablet-optimized view — all from one link.
Operating System Routing
Route based on the visitor's operating system: iOS, Android, Windows, macOS, or Linux. The classic use case is app store routing: iOS users go to the App Store link, Android users go to Google Play — from one short link.
Browser Routing
Route based on which browser the visitor uses: Chrome, Firefox, Safari, Edge, and more. Useful for browser compatibility testing, directing users to browser-specific downloads, or tracking browser-specific campaigns.
Priority-Based Rule Evaluation
When multiple rules are attached to a link, trimy evaluates them in priority order and uses the first matching rule. You control the priority of each rule. If no rule matches, the visitor goes to the link's default destination.
Example: App Download Link
Real-World Use Cases
App Store Routing
A mobile app puts one link in their email newsletter. iOS users land on the App Store, Android users go to Google Play, desktop users see the app's web page. One link in the email, three perfectly targeted destinations — no developer involvement needed.
Global Campaign Localization
An e-commerce brand runs a global Black Friday campaign with one link. US visitors see USD pricing, UK visitors see GBP pricing, EU visitors see the EUR storefront, and everyone else gets the global site. Country routing handles this automatically — no separate links per region needed.
Mobile-First Landing Pages
A travel company runs social ads where 80% of traffic is mobile. Device routing sends mobile users to a mobile-optimized booking flow with larger buttons and fewer fields. Desktop users get the full-featured booking page. Conversion rates improve without building a separate URL.
Browser-Specific Downloads
A browser extension developer shares one install link. Chrome users get the Chrome Web Store URL, Firefox users get the Mozilla Add-ons page, Edge users get the Microsoft Edge Add-ons store. Each user lands exactly where they can install the extension without any friction.
How to Set Up Smart Routing
-
1
Create your short link
Create or select a trimy short link with a default destination — the fallback URL for visitors who don't match any routing rule.
-
2
Open the Routing Rules editor
Navigate to the link's settings and open the Smart Routing tab. This is where you define, order, and manage your routing rules.
-
3
Add rules and set priority
Add rules by choosing a rule type (Country, Device, OS, Browser), entering the condition value, and the destination URL. Drag rules to reorder their priority.
-
4
Test and go live
Routing takes effect immediately with no deployment needed. Share your link and analytics will track clicks across all routing destinations — including which rules were matched.
Routing Rules by Plan
| Plan | Smart Routing | Rules / URL | Rule Types |
|---|---|---|---|
| Free | — | — | — |
| Starter | — | — | — |
| Professional | ✓ Included | Up to 10 rules | Country, Device, OS, Browser |
| Business | ✓ Included | Up to 25 rules | Country, Device, OS, Browser |
Smart Routing is available on Professional and Business plans. Rules are evaluated in real-time at the redirect layer with zero additional latency.
Frequently Asked Questions
Does Smart Routing add latency to the redirect?
No. Routing rules are evaluated at the infrastructure level during the same redirect operation. The visitor's country, device, and browser are all determined from the request headers in microseconds — there is no additional round-trip or delay compared to a standard redirect.
How accurate is country detection?
Country detection is powered by Cloudflare's global network and is accurate for 99.9%+ of visitors. VPNs can occasionally affect results, but this is true for any location-based system. Device, OS, and browser detection is reliable for all modern phones, tablets, and computers.
What happens if no routing rule matches?
The visitor is redirected to the link's default destination URL — the same URL the link used before any routing rules were added. The default destination is your safety net and is always required.
Can I combine different rule types on one link?
Yes. You can mix Country, Device, OS, and Browser rules on the same link, evaluated in your chosen priority order. For example: Rule 1 (iOS → App Store), Rule 2 (Android → Google Play), Rule 3 (Country = DE → German landing page), Default → Global page.
Are routed destinations tracked in analytics separately?
Yes. trimy's analytics track all the request dimensions (country, device, OS, browser) independently of routing. So you can see exactly how many visitors matched each rule, what countries they came from, and all other standard analytics dimensions — even after routing them to different pages.
Does Smart Routing work with custom domains?
Yes. Smart Routing works identically whether the link is on trimy.io or a custom domain. The routing happens at the redirect layer before the visitor reaches any destination — domain configuration doesn't affect routing behavior.
One link. The right page for everyone.
Set routing rules by country, device, OS, or browser — with zero code and no latency added to redirects.
Related Features
Deep Linking
Complement Smart Routing with deep links that open directly inside your mobile app on iOS and Android.
Learn moreAdvanced Analytics
Track which countries, devices, and platforms drive clicks across each of your routing rules — with full click-level detail.
Learn moreSmart A/B Testing
Use A/B testing alongside routing to optimize the destination within each routed segment.
Learn more