Smart Rules QR Codes are condition-controlled QR Codes that can trigger different actions based on specific conditions when scanned.
For example, a Smart Rule QR Code with a time-based condition (called a Rule on the dashboard) can automatically change what it shows to a scanner, depending on the time of day. So, a restaurant could use a Smart Rule QR Code to direct its customers to its breakfast menu in the morning, lunch menu in the afternoon, and dinner menu in the evening. After closing hours, the Smart Rule QR Code could display a message saying the restaurant is closed. This way, the restaurant’s customers can always see the most relevant information, no matter when they scan the same QR Code.
Note: Smart Rule QR Codes are available starting from the PRO plan.
Prerequisites
Uniqode Starter plan or above*.
*Smart Rules is a beta version release.
Begin creating a Smart Rule QR Code
Sign in to your Uniqode account.
Click + CREATE on the right of the Overview page.
Or,
Click QR Codes in the left menu.
Select QR Codes from the dropdown menu.
Click + CREATE QR CODE on the right corner.
Select Smart Rules as the QR Code type.
Here are the basic steps to set up a Smart Rule QR Code :
Identify the conditions to trigger your Smart Rule. This could be anything from the time of day to the person's device.
Set up a series of rules that specify the action when each condition is met. For example, you can have one rule that redirects people to your website during the day and another rule to redirect them to your social media pages at night.
If you set up multiple smart rules, the listed rule will be triggered first. Use the order of the rules to determine which rule is triggered when multiple conditions are met. For example, if you have a rule that redirects people to your website and another rule that redirects people to your social media pages, the rule for the website will be triggered first if the person scans your QR Code during the day.
If you want the rule for your social media pages to be triggered first, move it to the top of the list.
Test your smart rules carefully to ensure that they are working as expected. You can scan your QR Code at different devices and times.
Note: Always set a fallback URL under If above conditions are not met, redirect users to. This will be your backup URL that will execute when the URLs set in the rules don’t work for any reason. This is a great way to ensure your users always have a positive experience, even if something goes wrong.
Create a time-based Smart Rule QR Code
Let’s say you are a restaurant owner and you want to create a QR Code that helps your customers order online during specific hours. You can use a time-based Smart Rule QR Code to do this.
Click + Add new rule.
Select Time.
Click the edit icon next to New rule and name it “Online order hours”.
SetIf condition to is between and enter your business’s start and end times.
Click on + Add time and set timezone to US/Pacific and enter the Start time and End time as 6:00 and 18:00, respectively. Click Save.
Enter the link of the webpage where your users can order online under Redirect users to.
Enter a fallback URL under If above conditions are not met, redirect users to. This could be a link to your restaurant's website or a landing page with a message that says the QR Code is unavailable.
Click Next
Design your QR Code as per your branding. Learn more about how to design custom QR Codes.
Click Next.
Name your QR Code, save it as a template, or add (or remove) a label to your QR Code.
Click Finish.
Customers who scan the QR Code between 6 AM to 6 PM can book online orders with your business. Those who scan the code outside the specified time frame will be redirected to your business’s website.
Create a date-based Smart Rule QR Code
Let’s say you are running a marketing campaign with a coupon code valid only on Black Friday. You want to create a QR Code that will redirect users to a landing page where they can claim the coupon, so you will need a date rule. Other days, the scanners will be redirected to your online marketplace as usual.
Click + Add new rule.
Select Date.
Click the edit icon next to New rule and name it Black Friday coupon code.
In the If condition, set up the rule for the date the QR Code can be accessed.
Specify when the QR Code can be scanned under If. In this case, select is and click + Add date.
Set the timezone as US/Pacific date to October 28th, 2023.
Enter the link (for eg, www.your-business.com/blackfridaysale) to the landing page where users can claim the coupon when they scan the QR Code under Redirect users to.
Enter the link to your marketplace (for eg: or eg: www.your-business.com/marketplace) under If above conditions are not met, redirect users to.
Click Next
Design your QR Code as per your branding. Learn more about how to design custom QR Codes.
Click Next.
Name your QR Code, save it as a template, or add (or remove) a label to your QR Code.
Click Finish.
Your Black Friday coupon will now be accessible only on Black Friday. When users scan the QR Code any other day, they will be redirected to your online marketplace.
Create a day-based Smart Rule QR Code
Let’s say you are an HR manager who wants to post a program of daily activities in PDF form. You want a QR Code that employees can scan to access the activities lined up for a specific day without manually updating the QR Code every day.
Click + Add new rule.
Select Day.
Click the edit icon next to New rule and name it “Monday”.
Set the If condition to Day is, set the time zone to US/Pacific and select Mon.
In the Redirect users to the field, enter the link of the PDF file containing the list of Monday’s activities.
Click + Add new rule.
Select Day.
Click the edit icon next to New rule and name it “Wednesday”.
Set the Else if condition to is, set the time zone to US/Pacific, and select Wed.
Enter the PDF file link containing the list of Wednesday’s activities under Redirect users to.
Enter the link to your website or a landing page with activities for all days under If above conditions are not met, redirect users to.
Click Next
Design your QR Code as per your branding. Learn more about how to design custom QR Codes.
Click Next.
Name your QR Code, save it as a template, or add (or remove) a label to your QR Code.
Click Finish.
Employees who scan the QR Code on Monday or Wednesday will see activities lined up for the specific day. Employees who scan the QR Code on any other day of the week can see a complete list of all activities.
Create a country-based Smart Rule QR Code
Let’s say you’re a pharmaceutical company launching a new drug. You want to create a country-based smart rule QR Code that can show different information to users based on the countries they are scanning from.
Click + Add new rule.
Select Country.
Name the condition as “US form”
Set If condition to is and the country to United States.
Enter the link to a landing page announcing the drug’s release and a list of distributors under Redirect users to.
Click + Add new rule.
Select Country.
Name the condition as “Brazil form”
Set Else if condition to is and the country to Brazil.
Enter the link to a Form to sign up for trial below Redirect users to.
Enter the link to the company’s website under If above conditions are not met, redirect users to.
Click Next
Design your QR Code as per your branding. Learn more about how to design custom QR Codes.
Click Next.
Name your QR Code, save it as a template, or add (or remove) a label to your QR Code.
Click Finish.
This QR Code will redirect scanners in America to a landing page with information on the drug’s distributors, scanners from Brazil to sign up for trial, and scanners from the rest of the world to the company’s website.
Create a Smart Rule QR Code with unique user scans
Let’s say you are a retail store running a promotion where the first 25 customers to scan a QR Code will receive a 20% discount coupon on Christmas, and the next 175 customers will receive a 10% discount. You can create a Smart Rule QR Code to automate the coupon distribution process.
Note: Total user scan counts include repetitive scans.
Click + Add new rule.
Select Unique user scans.
Name your rule “Christmas 20% discount coupon” by clicking the edit icon.
Set the If condition to is between and enter 0 as minimum value and 25 as maximum value.
Enter the landing page link with the discount coupon under Redirect users to.
Click + Add new rule.
Select Unique user scans.
Name your rule “Christmas 10% discount coupon” by clicking the edit icon.
Set the If condition to is between and enter 26 as minimum value and 175 as maximum value.
Enter the landing page link with the discount coupon under Redirect users to.
Click + Add new rule.
Select Unique user scans
Name your rule “End Christmas campaign” by clicking the edit icon.
Set the If else condition to is and enter 200.
Enter the link of a landing page that says “the Christmas discount has ended” under Redirect users to.
Enter the link to the business’s home page under If above conditions are not met, redirect users to.
Click Next
Design your QR Code as per your branding. Learn more about how to design custom QR Codes.
Click Next.
Name your QR Code, save it as a template, or add (or remove) a label to your QR Code.
Click Finish.
The first 25 customers who scan the Smart Rule QR Code will be redirected to the page where they can download their coupons. The campaign will end after 200 unique users have scanned the QR Code and will redirect scanners to a page where the discount campaign has ended.
Create a device language and OS-based Smart Rule QR Code
Let’s say you are launching a new app in Japan and want to make it easy for users to download the correct app version for their devices. You can use a Smart Rule QR Code to redirect users to the appropriate landing page to download the app based on their device language and OS.
Click + Add new rule.
Select Country.
Set If to is and choose Japan.
Click + Add Condition (and)
Select Device OS.
Set If to is and choose iOS.
Enter the link to the app’s App Store link to redirect iPhone users to under Redirect users to.
Click + Add new rule.
Select Country.
Set Else If to is and choose Japan.
Click + Add Condition (and)
Select Device OS.
Set Else if to is and choose Android.
Enter the link to the app’s Play Store link to redirect Android users to under Redirect users to.
Enter the link to the app’s general landing page with links to both the app stores under If above conditions are not met, redirect users to.
Click Next
Design your QR Code as per your branding. Learn more about how to design custom QR Codes.
Click Next.
Name your QR Code, save it as a template, or add (or remove) a label to your QR Code.
Click Finish.
This Smart Rule QR Code will redirect any iPhone user with Japanese as a default device language to the App Store link of your app. Similarly, Android phone users with Japanese as a default device language will be redirected to your app’s Play Store link.
Everyone else will be redirected to your app’s webpage.
Create a location-based Smart Rule QR Code
Let’s say you are a real estate agent who wants to target anyone who scans your QR Code within 10 miles of your property in Washington.
Note: This rule will only apply to the people who have enabled their location settings while scanning the QR Code.
Click + Add new rule.
Select Location.
Select is and enter Washington DC in the Search location field or provide the Latitude and Longitude of the location. Alternatively, you can set the location using the interactive map as well. Specify the range within which the QR Code can be accessed, in this case, 10 miles. Click Save.
Enter the link to the property’s landing page with images and sale information under Redirect users to.
Enter your Card URL under If above conditions are not met, redirect users to.
Click Next
Design your QR Code as per your branding. Learn more about how to design custom QR Codes.
Click Next.
Name your QR Code, save it as a template, or add (or remove) a label to your QR Code.
Click Finish.
This location-based Smart Rule QR Code will redirect scanners within the specified location range to a landing page with property images and sale information. Scans outside the range will be shown your digital business card so they can reach out to you.
Create a passcode-based Smart Rule QR Code
Let’s say you work for a doctor's office that wants to create a QR Code to redirect patients to a landing page with information about a new drug the doctor prescribes. However, only the patients who have already been prescribed the drug should be able to access the information.
Note: The passcode should at least have six characters and is case-sensitive.
Click + Add new rule.
Select Passcode.
Set If to is and enter the passcode as NEWDRUG.
Enter the URL of the landing page with information about the new drug under Redirect users to.
Enter the link to the doctor’s Linkpage with contact information under If above conditions are not met, redirect users to.
Click Next
Design your QR Code as per your branding. Learn more about how to design custom QR Codes.
Click Next.
Name your QR Code, save it as a template, or add (or remove) a label to your QR Code.
Click Finish.
This passcode-based Smart Rule QR Code will only provide access to scanners who enter a pre-defined passcode NEWDRUG after scanning the QR Code.
Create a user age-based Smart Rule QR Code
Let’s say you are a brewery that wants to create a QR Code to redirect users to a landing page with information about their new beer. But, the brewery only wants users over 18 to be able to access the information.
Click + Add new rule.
Select User age.
Name your rule by clicking the edit icon.
Set If to is between and enter the 18 and 40 as Minimum value and Maximum value, respectively.
In the Redirect users to the field, enter the link to information on the new beer.
Enter the link to the doctor’s Linkpage with contact information under If above conditions are not met, redirect users to.
Click Next
Design your QR Code as per your branding. Learn more about how to design custom QR Codes.
Click Next.
Name your QR Code, save it as a template, or add (or remove) a label to your QR Code.
Click Finish.
This age-based Smart Rule QR Code will prompt scanners to enter their date of birth. If the scanner enters an age within the specified range, they will be redirected to information on the newly launched beer.
Adding multiple conditions and rules
You can add multiple conditions to a rule to create QR Codes governed by nested logic. Nested logic in Smart Rules QR Codes helps create QR Codes with multiple rules and conditions. (refer Create a device language and OS-based Smart Rule QR Code above). This means that your QR Code can only be scanned if all of the conditions of a rule are met.
To set another condition to a rule:
Click + Add condition.
Select And/Or, then select the type of condition and enter the specifications accordingly.
To add another rule:
Click + Add new rule.
Select the condition and enter the specifications accordingly. You can also add another condition within this rule as well.
Let’s say a business owner wants to create a QR Code that will redirect customers to a different resource depending on the time of day. She wants to receive customer requests via an online form during business hours. However, she needs customers to contact her via her digital business card when closed for business. The logic to set up this Smart Rule QR Code would be:
Rule 1:
If the time is between 9 AM and 5 PM,
then redirect the scanner to the business's contact form.
Rule 2:
If the time is outside of 9 AM to 5 PM,
then redirect the scanner to the business's digital business card.
To set this Smart Rule QR Code:
Click + Add new rule.
Select Time.
For Rule 1:
Under If, select is between.
Set the Start time and End time as 9 AM and 5 PM respectively.
Enter the link of the business's contact form under Redirect users to.
For Rule 2:
Click + Add new rule.
Under If, select is not between.
Set the Start time and End time as 9 AM and 5 PM respectively.
Enter the link of the business's digital business card under Redirect users to.
Click Next.
Setting up a default URL
If the users who scan the QR Code don’t meet the conditions specified in the rules, you can redirect them to a default URL. To do so, enter the URL that you want such users to be redirected to in the Enter default URL field.