Device-based redirect links: send iPhones, Android phones and computers to different places
November 28, 2026 · Hoplytic team · 5 min read
Read the video transcript
Can one link send iPhones, Android phones and computers to different places? Yes.
The server reads the visitor's user agent. It works out the operating system and device type, and finds the rule they match. Then it sends them on in the same redirect, with no visible delay.
For an app, send iOS to the App Store offer. Send Android to Google Play. And always keep a fallback for everyone else.
Since iPadOS 13, an iPad sends a Mac user agent, so test on a real iPad.
If iPhones match both Offer A and the fallback, half of them go to the fallback. Add a rule to the fallback: OS is not iOS.
Open a link, go to Rotation, and add a destination for each device group. More conditions adds operating system, OS version and browser.
The full guide is right below. Hoplytic: ad tracking made simple.
Key points
- A device redirect reads the browser's user agent on the server and picks a destination in the same redirect, with no visible delay.
- Use operating system rules (iOS, Android) for app stores, and device type (mobile, tablet, desktop) for page layouts or offers.
- iPads on iPadOS usually identify as a Mac, so treat 'tablet' as unreliable for Apple devices and test on a real iPad.
- Always keep a fallback destination for visitors who match no rule, and make sure it doesn't also share traffic with your device-specific offers by accident.
Some offers only pay for iPhones. Some apps have two stores. Some landing pages are built for a thumb, not a mouse. A device-based redirect lets one link send each visitor where they convert, without separate links per device.
Short answer: a device-based redirect link reads the visitor's user agent, works out the operating system and device type, and sends them to the destination whose rule they match, all in one server-side redirect. Use OS rules for app stores and OS-only offers, device type for page layouts, and always add a fallback for everyone else.
What the link can see
Every request carries a user agent, a text string like
Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Mobile/15E148 Safari/604.1
From that one line a tracker can read:
| Detail | From the example | Typical use |
|---|---|---|
| Device type | mobile | Mobile vs desktop landing pages or offers |
| Operating system | iOS | App Store vs Google Play, iOS-only offers |
| OS version | 17.4 | Apps that need iOS 16 or Android 10 and up |
| Browser or in-app browser | Safari | Handling Facebook, Instagram or TikTok in-app browsers |
The decision happens on the server before the redirect, so it adds microseconds, not a visible step. Nothing runs in the visitor's browser and no cookie is needed.
Common setups
App install offers
- OS is iOS → the App Store offer link.
- OS is Android → the Google Play offer link.
- Everyone else → a web page about the app, or a web offer for the same product.
Device-limited CPA offers
A mobile subscription offer that only pays for phones on a mobile network: device is mobile → the offer; everyone else → a general offer that pays for desktop. Without the rule, every desktop click on that offer is wasted.
Mobile and desktop landing pages
Device is mobile → a short page with one big button. Device is desktop → the longer comparison table. Then compare earnings per click per destination to see whether the split pays.
Old OS versions
Apps often need a recent OS. Android 9 and older → a lighter offer or the web version, so those visitors don't land on an app they can't install.
The traps
- iPads pretend to be Macs. Since iPadOS 13, Safari on iPad asks for desktop sites by default and sends a Mac user agent. A server-side redirect sees "macOS, desktop". If an iPad must reach the App Store, test on a real iPad and consider sending Mac visitors to a page that offers both the store and the web version.
- Android tablets vary. Most identify as tablets (Android without "Mobile" in the user agent), but some report as phones. Rules on OS are more dependable than rules on device type here.
- In-app browsers. Clicks from Facebook, Instagram or TikTok open inside the app's own browser. App store links usually work from there; some deep links and logins don't. A browser rule can send in-app visitors to a page that works without leaving the app.
- "Request desktop site". Any phone user can switch their browser to send a desktop user agent. It's rare, but it's why the desktop destination should still work on a phone.
- Bots. Crawlers and link-preview bots have their own user agents and often match no rule. They go to the fallback, which is one more reason the fallback should be a real page.
Rules that don't overlap by accident
In many rotators, Hoplytic's included, a visitor can match more than one destination, and the tracker then splits them by weight. That surprises people. Say you have:
- Offer A: OS is iOS, weight 50.
- Fallback: no conditions, weight 50.
An iPhone visitor matches both, so half of iPhone visitors go to the fallback. If every iPhone must reach offer A, add a rule to the fallback: OS is not iOS. Read your rules as "who can land here", and check each device type in your head before you save.
Measure whether the split pays
A device split is a bet that each group earns more on its own destination. Check it. After a week, compare earnings per click for each destination against what the same device group earned before the split, or keep a small share of each group on the old destination as a control. If iPhones earn $0.21 per click on the iOS offer and $0.19 on the general offer, the extra rule adds complexity for little gain. If they earn $0.21 against $0.06, the rule is doing real work. Also watch for destinations that quietly stop working: an app removed from the store, or an offer paused for one OS. A tracker that checks destinations and falls back keeps those clicks from dying.
Testing
- Open the link on a real iPhone, a real Android phone and a computer.
- Open it inside the in-app browser of the platform you advertise on, by sending yourself the link in a message there.
- For a quick check on a computer, switch your browser's developer tools to a phone profile; it changes the user agent. A real device is still the final test.
- Check the click log: each test should show the device and OS you expected and the destination it got.
Country rules work the same way and combine with device rules: see geo redirect links. Language is covered in redirect by browser language.
How to do this in Hoplytic
Open a link, go to Rotation and add a destination for each device group. Each one can be limited to devices (desktop, mobile, tablet) and countries, and More conditions adds operating system, OS version, browser (including the Facebook, Instagram and TikTok in-app browsers) and more, each with "is" or "is not". Destinations are checked every 30 minutes and dead ones are skipped, with an optional backup link, as described in rotators and backup links. The link page shows people, sales and commission per destination, so you can see whether the device split earns its keep.
Questions people ask
How does a link know which device I'm on?
Every browser sends a user agent string with each request, naming the operating system and browser. The tracking server reads it and chooses the destination before redirecting. No script runs on the visitor's side.
Can I send iPhone users to the App Store and Android users to Google Play with one link?
Yes. Make one destination for iOS, one for Android and a fallback for everyone else, such as a web page that explains the app. Test each one on a real phone.
Is device detection always right?
Phones are detected very reliably. Tablets are harder: newer iPads present themselves as Macs, and some Android tablets look like phones. Build rules that still send those visitors somewhere sensible.
More in Traffic sources and macros
Also: tracking glossary · ad platform macros · Markdown copy