A/B testing with QR codes: splitting printed traffic properly

One printed code can split its scans between landing pages. How to keep visitors in one variant, measure the right thing, and move everyone to the winner after printing.

By The QRtoMany team4 min read

Online, an A/B test is routine: show half the visitors one page and half another, and see which works better. With print it usually isn't done at all, because the medium seems to rule it out. You can't print half the flyers with a different page and still compare them fairly, and you can't change the flyers once the test is over.

A dynamic code removes both problems. The printed code is identical on every flyer, and the split happens at the redirect, on every scan. Once you know the answer, you move every future scan to the winning page, on flyers that are already out there.

How a split works

A split is a routing action: instead of one destination, a rule gets two or more variants, each with a weight. With weights of 50 and 50, about half the scans go to each. With 80 and 20, you can try a risky new page on a fifth of the traffic.

Because a split is attached to a rule, it can be as narrow as you like. Put it on a rule that matches only one country, and only visitors from that country take part, while everyone else keeps going to your usual page.

A weight of zero pauses a variant without deleting it. No new scans are sent to it, and its settings stay in place for later.

Keeping each visitor in one variant

The most important property of a fair test is that a visitor stays in one variant. Someone who scans your poster on Monday and again on Friday should see the same page both times. If they don't, they may report it as a bug, and they end up counted in both variants, which spoils the result.

Two things keep them in place:

  1. Stable assignment. The variant is chosen from a value computed from the phone's network address, its device description and the code, so the same phone on the same network gets the same answer. That value is used only to pick the variant and is never stored.
  2. A cookie that remembers. The first time a browser is assigned, it gets a small cookie on the short link's domain recording which variant it got: the rule and the variant number, nothing about the person. When the same phone scans later from a different network, the cookie keeps it in its variant.

If someone blocks cookies or switches phones, they may be assigned again. For a printed campaign that is a small leak, and the scan still lands where it should.

Measuring the right thing

The dashboard shows, for every rule, how many scans went to each variant. That tells you the split is running as intended, but a scan is not a result. Everyone who scanned was interested enough to point a camera at your poster. The question is what they did next: bought, signed up, booked, came back.

So measure on the landing pages themselves:

  • give each variant's destination its own URL, or a distinct URL parameter such as ?variant=b, so your website's analytics can separate them;
  • choose one success measure before you start;
  • decide in advance how long the test will run.

Printed traffic is slow and uneven. Scans come in bursts around weekends, events and whenever the poster is in the right place. A difference in the first few days is often noise. Wait for the period you planned, and let a full weekly cycle pass at least once.

Declaring the winner

When the test is over, you declare a winner. From that moment every scan goes to the winning variant, including visitors whose cookie remembers the losing one. The losing page is finished, and nobody should keep seeing it just because they scanned early.

Declaring a winner doesn't erase the test. The original weights are kept, so you can see what the experiment ran at, and you can undo the declaration without retyping anything.

This is the part only a dynamic code can do. The flyers in people's bags, the posters on walls and the packaging on shelves all start sending people to the better page the moment you decide, with nothing reprinted.

Split or rotation?

There is a similar-looking action, rotation, for a different job. A rotation shares scans out across destinations, with no memory of who went where — each one gets about an even share over many scans, not a strict back-to-back order. For example, it can share a trade-show badge code's scans out across each salesperson's calendar. Use a split when you want to compare. Use a rotation when you want to share out.

Plans

A/B splits and rotations are available on the Business plan and above. Every dynamic code's dashboard includes a scan simulator, where you can check how a split rule sits among your other rules before you print.

About the author

The QRtoMany team

We build QRtoMany, a dynamic QR code service designed around one fact: a printed code can't be recalled. These posts are written from what we have built, and the numbers in them come from the product itself.

Try the routing on your own codes

Create a free account to get started, then request Pro to route your own codes — or make a static code with no account at all.

All posts
A/B testing with QR codes: splitting printed traffic properly · QRtoMany