How to Target Visitors Using Custom Properties
In Qualaroo, you can show a survey to individuals based on your database. It is called Custom Property Targeting.
With custom property targeting:
You can design surveys for users who meet specific conditions.
You can drive highly targeted responses.
For instance, you want to display a survey only to users who made a purchase in the last 30 days and only when the shopping cart contains precisely 2 or more items.
In this case, the “number of items” and “has purchased in the past 30 days” are custom targeting properties, where 2 and “yes” are their respective required targeting values.
Think of this as tagging a visitor with a name/value pair. This step requires your developers to update your page’s code, so you might want to tag visitors with all the possible name/value pairs you are likely to use for targeting surveys in the future.
This way, you will not have to ask your developers whenever you want to use a new property for targeting.
You can set custom properties by following these steps:
In the TARGETING tab,
Scroll down to Target: Advanced
Select “When passed custom property is matched.”
To set custom properties, you can use simple expressions.
Let’s extend our example from the beginning of the article by another condition: We want our customers to have 2 items in the basket or be premium customers and display a nudge only if they purchased in the last 30 days.
The snippet below is how custom properties for such requirements should be built:
(num_items > 2 or premium = "yes") and purch30 = "yes"
Let's break down the expression into smaller pieces:
Brackets are used for group operations. Operations inside brackets have higher precedence.
Variable names can be letters, numbers, and an _ characters.
-, >, and = are examples of operators. =, >, <, != are currently supported.
- and together with or are boolean operators. You can combine them to achieve flexibility.
Strings should be under quotations.
Enabling this option will set each property as null, allowing for proper firing without all properties being present on your site’s particular page or a section.
Continuing with the above example, you can now specify your custom targeting requirements in the Targeting tab of your survey.
You can set the values any number of times during the visit, on page load, or after the page loads. Every time you set a new value, Qualaroo will check again if a survey should be displayed.
Now that your developers have tagged visitors with the actual value of the properties and you have specified the required values in the configuration UI, Qualaroo will compare the actual values with the required values. The survey will show only if the values of all targeting parameters match their respective actual values.
Custom requirements are applied in addition to the standard ones. It allows you to target surveys based on typical conditions and custom properties specific to your business.