Help · Smart rules

Smart rules: send each scan to the right place

One printed code can open the breakfast menu in the morning and the dinner menu at night, the App Store on an iPhone and Google Play on Android, or a different page for each country. You set the rules; the code stays the same.

Updated

Plan
Starter and up
Works on
Dynamic codes
Per code
Up to 20 rules
No match
The code's main content

What a rule is

A rule has two halves. When holds one or more conditions, such as “Time of day is 07:00 to 11:30”. Scanners get holds what opens when the conditions are true.

What a rule opens does not have to be a link. It can be a link, one of your pages, a contact card, Wi-Fi details, a WhatsApp chat, an SMS, an email, a phone call, a map location, a calendar event or plain text.

The content you typed in the Details step stays as the code's main content. Anyone no rule matches gets that, so a code with rules still works for everybody.

The conditions

ConditionWhat it checks
Operating systemiPhone or iPad, Android, Windows, Mac, Linux or other.
DevicePhone, tablet or desktop.
CountryWhere the scan comes from, by the network the phone is on.
LanguageThe language the scanner's phone is set to.
Time of dayA window such as 11:30 to 16:00, in the time zone you pick. It can run past midnight.
Day of weekThe days you tick, such as Saturday and Sunday.
DateA date range, such as the three days of an event.
Scan countTotal scans or unique scanners so far: fewer than a number, or at least a number.
Near a place (Pro)Within a radius of a spot on the map, from 10 metres to 100 km. The scanner is asked to share their location first.
  • Most conditions have an is / is not switch, so “Country is not Canada” is one condition, not a long list.
  • A rule with several conditions is set to All must match or Any can match. “Saturday or Sunday, and after 18:00” is All must match with a Day of week and a Time of day condition.

Order: the first match wins

Rules are checked from the top of the list to the bottom. The first rule whose conditions are true decides where the scanner goes, and the rules under it are not looked at. If none is true, the code opens its main content.

  • Put the narrowest rule first. “First 100 scans” above “Android” means early Android scanners still get the prize page.
  • Use the arrows on a rule to Move up or Move down.
  • Each rule has its own On / Off switch. Off keeps the rule saved but skips it, which is handy for a seasonal offer.

A quick check for overlaps

Read your list top to bottom and ask of each rule: could a rule above it already have caught this person? If yes, either the order is wrong or the lower rule can go.

Rules choose what a code opens. To decide whether it opens at all (an access code, an end date, a scan limit or a place), use the scan controls. They are checked before any rule.

Add a rule

  1. 1

    Open the code

    Create a new dynamic code, or open one in My QRs and press Edit. The Smart rules card sits under Details.
  2. 2

    Switch Smart rules on

    Then press Add your first rule, or Start from a preset to begin with a ready-made one.
  3. 3

    Name the rule

    A short name such as “Breakfast” or “Android users”. The name is what you see later in the tester and in analytics.
  4. 4

    Set When

    Pick a condition and fill it in. Add another condition if the rule needs two things to be true.
  5. 5

    Set Scanners get

    Choose what opens: a link, one of your pages, a contact card and so on. Fill in its details.
  6. 6

    Pick the time zone

    Only shown when a rule uses a time, a day or a date. Choose the zone of the place where the code is printed, not where you are today.
  7. 7

    Save the code

    Press Create QR Code or Update QR Code. A rule that is not finished is marked, and the code will not save until it is complete or deleted.

Recipes to copy

What you wantHow to set it
Breakfast, lunch and dinner on one table cardRule 1: Time of day 07:00 to 11:30 opens the breakfast menu. Rule 2: Time of day 11:30 to 16:00 opens the lunch menu. Main content: the dinner menu.
One code for both app storesPreset App Store / Play Store. It adds an iPhone rule and an Android rule; paste each store link. Main content: your website, for computers.
A different page when you are closedPreset Business hours. One rule covers your opening days and times and opens today's page. Main content: your opening hours and how to book.
A page per languageOne rule per language: Language is Spanish opens the Spanish page, Language is French opens the French one. Main content: the page most visitors can read.
A page per marketPreset By country. Pick the countries for each rule and the link that market should get. Main content: your international site.
A prize for early scannersPreset First 100 scans. The rule opens the prize page while the code has had fewer than 100 scans. Main content: the normal offer.
Before, during and after an eventRule 1: Date up to the day before opens the invitation. Rule 2: Date on the event days opens the schedule. Main content: the photos and thank-you page.

Showing the same page or menu in several languages? You may not need rules at all: language versions open the right one by themselves and add a switcher.

Test your rules

Once a code has a rule, Test your rules appears under the list. You describe a scanner and it shows which rule they would hit and where they would land. Nothing in the tester is saved or counted as a scan.

  1. Under Who is scanning, set the device, operating system, country and phone language.
  2. For scan-count rules, type how many scans the code has had so far.
  3. Leave the scan time at now, or pick a date and time to check a rule that starts tonight or next month.
  4. Read Where this scanner lands. Under it, each rule is listed in order with the condition that failed, so you can see why a rule was skipped.

For a Near a place rule the tester says the scanner would first be asked to share their location. Check that one on a real phone, standing in and out of the area.

See which rule people got

Open the code in Analytics. Scans by smart rule shows how many scans each rule served and how many fell through to the main content. Scans by device and by country beside it tell you whether a rule is worth keeping.

The scan export has a Smart rule column too, one row per scan. See scan analytics and exporting scans.

Plans, and what happens on Free

  • Smart rules are part of Starter and every plan above it. The Near a place condition needs Pro.
  • Every new account has 7 days of Pro with no card, so you can build and test rules before choosing a plan.
  • On Free, the Smart rules card shows which plan includes it, and switching it on opens an upgrade prompt instead. Codes without rules work as usual.
  • If a trial or paid plan ends while a code has rules, nothing changes for 7 days. After that the rules stop deciding and every scanner gets the main content. The rules stay saved and start again the moment you upgrade.

Printing during a trial?

Set the main content to something that works for everyone, such as the full menu or your home page. Then a printed code is never wrong, with or without its rules.

More on what stays live and what pauses is in When your plan or trial ends. For ideas by business, see smart QR codes.

Questions about smart rules

Do I have to reprint the code when I add or change a rule?

No. Rules live behind a dynamic code, so the printed pattern stays the same. A new or changed rule applies from the next scan.

What does a scanner see when no rule matches?

The code's main content: the link or details you entered in the Details step. Think of it as the “otherwise” of your rules, and make sure it suits everyone.

How many rules can one code have?

Up to 20 rules on a code, each with up to 5 conditions. Most codes need one to three.

Which time zone do time rules use?

The one you pick on the Smart rules card, which starts as your own. Time of day, day of week and date conditions all use it, wherever the scanner is. A window can run past midnight, such as 22:00 to 02:00.

How does a code know the scanner's country and language?

The country comes from the network the phone is on, and the language is the one the phone is set to. Neither asks the scanner for anything. Only a Near a place condition asks the scanner to share their location.

Can a static code have smart rules?

No. A static code opens its content straight from the pattern and never reaches QR Walrus, so there is nothing to decide. Rules need a dynamic code.

What happens to my rules if my plan ends?

They are kept. For 7 days everything works as before. After that, on a plan without smart rules, the code opens its main content for everyone. Upgrade and the same rules start working again, on the same printed code.