Device-based redirect links: send iPhones, Android phones and computers to different places

November 28, 2026 · Hoplytic team · 5 min read

The short version: this guide in 57 seconds.
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

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.

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:

DetailFrom the exampleTypical use
Device typemobileMobile vs desktop landing pages or offers
Operating systemiOSApp Store vs Google Play, iOS-only offers
OS version17.4Apps that need iOS 16 or Android 10 and up
Browser or in-app browserSafariHandling 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

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

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:

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

  1. Open the link on a real iPhone, a real Android phone and a computer.
  2. Open it inside the in-app browser of the platform you advertise on, by sending yourself the link in a message there.
  3. 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.
  4. 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.

Add another offer, set its share and countries, add it to the rotation.

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