LogoLogo
IxkioLogin
  • Welcome
  • The Basics
    • Organisation / Structure
      • Folders
        • Organisational Folders
        • Active Folders
        • Active Folder Settings
      • Tag Groups
        • Tag Group Settings
      • Batches
        • Batch Settings
      • Tag Codes
        • Tag Code Settings
        • QR Codes
        • Using Authentication (NTAG424) NFC Tags
      • Moving Tag Codes
  • Response Modes
    • Response Modes Explained
    • API
      • Using the API Mode
      • API Mode for Authentication
    • Direct Response
    • Redirect
      • Using Redirect Mode
  • features
    • Rules
      • Creating a Rule
      • Rule Example
      • Rule Types
      • Rule Layering
    • Dynamic Response
      • Subtags
        • Subtags in API Extended Data
      • Datamerge
    • Data
      • Core Data
      • Extended Data
      • System Data
      • Action Data
    • Stats
    • Associate Data
    • Assignment
      • Scan Assignment
        • Scan Assignment with Ixkio Mobile App
        • Assignment Manager
      • Manual Assignment
  • Advanced Features
    • CodeLink
      • Using CodeLink
      • CodeLink Integration
      • Testing CodeLink
      • Integration Guides
        • Using CodeLink with Shopify
          • Shopify with Standard NFC Tags
          • Shopify with Standard Tags (Video)
        • Using CodeLink with Wix
    • Multiuser
    • Management API
    • Custom Domain
    • Clusters
    • SmartAccess
  • Mobile App
    • Ixkio Mobile Apps
    • Mobile App Functions
      • Check
      • Encode
        • API Response Mode Encoding
  • Account Management
    • Allowances & Usage
    • Additional Modules
    • Add-ons
    • Billing & Invoices
    • Account Information
    • User Settings
    • Cookies and Privacy
  • Explainers
    • Chip Count vs Scan Count
Powered by GitBook
On this page
  • Overview
  • Redirect Rule Example
  • How the Ruleset works
  • QR Code Scenario
Export as PDF
  1. features
  2. Rules

Rule Example

PreviousCreating a RuleNextRule Types

Last updated 2 years ago

Overview

For this example, we will create a Rule within a Redirect Response Mode configuration.

Redirect Rule Example

How the Ruleset works

In this example, we have created two Rule Groups. The Rule Groups are processed in order.

User scans an NFC tag for the first time

The user scans a tag for the first time and therefore the scan count is 1. As the scan count is less than 5, then the first Rule Group will be matched and the Rule Group URL : https://seritag.com will be the response. Therefore, the user scanning the tag will be redirected to our seritag website.

User scans an NFC tag for the 5th time

In this instance, the scan count is now 5. The first Rule Group no longer matches so ixkio will proceed to the second Rule Group.

This has two Rules. The scan must be from an NFC tag and the scan count is less than 10.

In this instance, the scan would match the second Rule Group and the Rule Group URL : https://seritag.com/learn/ would be returned.

User scans an NFC tag for the 11th time

Now, neither the first or second Rule Groups would match and the response would default to the 'Rule Set Default URL'. In this example, the response returned would be https://ixkio.com. Therefore, the user scanning the tag would be redirected to our ixkio website.

QR Code Scenario

If the first four scans were from an NFC tag and the fifth scan was from a QR code, then the scan count would still be five (as ixkio's scan count is for both NFC and QR).

However, while the scan count is less than 10, the fifth scan was not from an NFC tag and therefore the second Rule Group would not match.

The response would therefore default to the Rule Set Default URL.

Ruleset Example