Link rules and A/B test
Send a short link to different targets depending on device, operating system, browser language, time of day or country, and compare targets with an A/B test.
A short link doesn't always have to lead to the same target. With rules you can send iPhone users to a different shop than Android users, English-speaking visitors to an English page, or evening visitors to a promotion. With an A/B test you split the remaining visitors across several targets and compare them.
Set up rules
- Open the link under "Links".
- In the section "Rules and A/B test", click "Set up rules".
- Click "Add rule" and choose the conditions: device (smartphone, tablet, computer), operating system (iOS/iPadOS, Android, Windows, macOS, Linux), countries (e.g. DE, AT, CH), browser language (e.g. de, en), weekdays and time of day from–to.
- Choose the target: a fixed address, a specific offer of the product (with your website's tracking ID), for geo links also the overview page – or the link's default target.
- Click "Save rules".
If a rule has several conditions, all of them must apply; within one condition a single value is enough (e.g. "iOS or Android"). Rules are checked from top to bottom – **the first matching rule wins**. Use "Move up" and "Move down" to change the order. If no rule matches, the A/B test or the link's default target applies.
Time of day and weekday follow the time zone under "Links" → "Settings" (default: Europe/Berlin). If "to" is earlier than "from" (e.g. 22:00–06:00), the rule applies across midnight.
iPads often identify themselves in the browser as a Mac. For iPads it is therefore better to check "Tablet" and "macOS" together, or to build the rule by operating system.
A/B test
- In the rules, switch on "A/B test for everyone no rule matches".
- For each variant, choose a target and a share in percent (100 % in total). A variant can be the link's default target.
- Save – the test starts.
The assignment needs neither a cookie nor an IP address: the same browser always lands on the same variant on the same day. In the A/B test table you see how many visitors each variant has received since the start.
Apply the winner
If you have seen in your affiliate programs which variant brings more sales, click "Apply winner" on it. From then on, all visitors without a matching rule go to that variant. "Restart test" distributes by the shares again and counts afresh from today.
With Awin and eBay, sales come back with the short link's attribution, but not with the variant. Compare the sales per target (shop or address) in the affiliate program instead.
Statistics
In the link's click statistics, "Rule or variant" shows which rule or variant determined the target. Bots and link previews (WhatsApp, Facebook …) are redirected but not counted.
Amazon
Amazon doesn't allow redirection via third-party short links. You therefore can't choose Amazon addresses and Amazon offers as the target of a rule, and links that lead directly to Amazon have no rules. For geo links it stays the same: if Amazon wins, the link shows the overview page with the Amazon button.
Plan
Rules and A/B test are part of the "Geo short links" feature. Without it, rules already saved keep working; you can only change them again with a suitable plan, but you can remove them at any time.