Segment conditions
Segment conditions
This is for:
DeveloperThis article lists all the available conditions for common verticals, including input types, and operators. You will also find information about the associated QProtocol field that each condition maps to.
Conditions are always AND-ed together but condition strings are OR-d together.
Timeouts
Associated with each condition listed below is an attribute called the condition’s timeout. A timeout refers to how long a condition will remain true.
Each condition has a default timeout. For example, the Products Purchased condition has a default timeout of never. This means that the condition never expires; it will remain true for the entirety of the user’s lifetime.
In practice, this means that a segment defined as Visitors who bought Shoes
, that uses the default timeout, will hold visitors who bought shoes at any point in their lifetime.
For more information on timeouts and how to modify default timeouts, see Advanced Mode Segment Builder.
The time of an event
Qubit offers several conditions that you can use to specify the relative or absolute time of events. For example, you might use the condition Time of page view to create a segment for visitors who viewed a page in the last 30 days:
Conditions available for all verticals
There are a number of conditions that are available and identical for all verticals as they use QProtocol events that are common to all sites. These are ordered into the following groups:
-
Browsing behavior
-
Data import
-
Experiences
-
External segment
-
Integrations
-
Location
-
Pages viewed
-
Purchase history
-
Referrer
-
Technology
-
Visitor pulse responses
-
Products purchased
-
Products viewed
In the following tables, we provide details of each of the conditions in these groups, including the relevant QProtocol event, default timeout, and example.
Browsing behavior
The conditions in this group check for engagement signals such as pageviews, sessions, and time of last session as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Sessions |
Integer |
|
Session |
Is Less than 3 |
Page views |
Integer |
Depends on vertical, e.g. |
View |
Is more than 5 |
Time of last session |
Integer |
|
relative |
Was in the last 1 day |
The above conditions expire with every new session. |
Data import
The conditions in this group check batch data imported into the Qubit platform as the basis for segment membership. For those customers that have been migrated to Qubit’s Import feature, use Integrations > Datasets.
For details on importing data for use in the Qubit platform, see Importing Your Data.
For details of how to create a segment from imported data, see Using Imported Data to Create Segments.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Dataset |
String |
|
never |
Is one of 'CRM Customer Tiers' |
Value |
String |
|
never |
Is not one of Gold Tier |
Experiences
The conditions in this group check which experiences have been seen and when it was seen as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Experiences seen |
Integer |
|
never |
Is one of Recommendation Basket Page Experience |
Time of experience |
Integer |
|
relative |
Was in the last 1 day |
External segment
The conditions in this group check segment membership defined in an external system, such as another segmentation tool or a data science process that passes data to Qubit via the externalSegmentMemmbershipChanged
QProtocol event.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Segment Id |
String |
|
never |
Is GA-Seg-12 |
Integrations > Visitor pulse
The condition in this group checks a user’s response to a Visitor pulse survey question as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Time of response |
Integer |
|
relative |
Was in the last 1 day |
Name of survey question |
Depends on the selected survey question and the question type, for example, multiple choice, or score |
|
never |
Is 6 |
Integrations > Datasets
The condition in this group checks batch data ingested into the Qubit platform via datasets as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Name of dataset |
String |
Depends on vertical, e.g. |
n/a |
Balance is less than 3000 |
Location
This condition group checks a user’s geolocation as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Country |
String |
|
session |
Is one of United Kingdom |
Region |
String |
|
session |
Is one of Norfolk |
Area |
String |
|
session |
Is one of Anglia |
City |
String |
|
session |
Is not one of Norwich |
Note
For details of how to target individual nations in the United Kingdom, refer to our FAQ. |
Pages viewed
This condition group checks which pages the visitor has viewed as the basis for segment membership. This might be a specific URL, a page type, or page subtype.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Page URL |
String |
Depends on vertical (for example, |
never |
Contains one of |
Page type |
String |
Depends on vertical (for example, |
never |
Is not one of Product |
Page subtype |
String |
Depends on vertical (for example, |
never |
Contains one of Dresses |
Page country |
String |
Depends on vertical (for example, |
never |
Is one of United States |
Page language |
String |
Depends on vertical (for example, |
never |
Does not contain one of English |
Time of page view |
Integer |
Depends on vertical (for example, |
relative |
Was in the last 1 day |
Purchase history
This condition group checks each user’s lifetime purchase history as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Total spend |
Money |
|
view |
Is more than $100 |
Total purchases |
Integer |
|
view |
Is less than 3 |
Tier |
String |
Depends on vertical (for example, |
view |
Is one of Gold |
Tier points |
Integer |
Depends on vertical (for example, |
view |
Is less than 4000 |
Time of last purchase |
Integer |
Depends on vertical (for example, |
relative |
Was in the last 1 day |
Note
The lifetime value is shown in the base currency defined during onboarding. |
Referrer
This condition group checks where the visitor was referred from and details about their entrance, for example landing page, as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Landing page URL |
URL |
|
never |
Contains one of |
Referrer URL |
URL |
|
never |
Does not contain one google.com |
Time of referral |
Integer |
|
relative |
Was in the last 1 day |
Technology
This condition group checks the technology that the visitor is using as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Device |
String |
|
never |
Is one of Mobile |
Browser |
String |
|
session |
Is not one of IE9 |
Operating system |
String |
|
never |
Is one of Mac OS |
Retail conditions
Products purchased
This condition group checks which products visitors have purchased as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Category |
String |
|
never |
Does not contain one of red socks |
Manufacturer |
String |
|
never |
Is one of XYZ Socks |
Name |
String |
|
never |
Contains one of Uncle Bob’s party socks |
Price |
Money |
|
never |
Is more than £50 |
Time of purchase |
Integer |
|
relative |
Was in the last 1 month |
Products viewed
This condition group checks which products visitors have seen as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Category |
String |
|
never |
Is one of Costume accessories |
Manufacturer |
String |
|
never |
Is one of XYZ Fashion Company |
Name |
String |
|
never |
Is one of Cleopatra Headpiece |
Price |
Money |
|
never |
Is more than £50 |
Time of product view |
LocalDate |
|
never |
Was on Tue, Jun 27 2017 |
Publishing conditions
Products viewed
This condition group checks which products visitors have seen as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Name |
String |
|
Never |
Is one of Kids Bedtime Stories |
Category |
String |
|
Never |
Is one of Kids books |
Manufacturer |
String |
|
Never |
Is one of XYZ Publisher |
Price |
Money |
|
Never |
< £50 |
Products purchased
This condition group checks which products visitors have purchased, with the same attributes as the Products viewed condition group.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Name |
String |
|
Never |
Is one of Kids Summer Holiday Stories |
Category |
String |
|
Never |
Is one of Kids books |
Manufacturer |
String |
|
Never |
Is one of ABC Publisher |
Price |
Money |
|
Never |
< £50 |
Travel conditions
Accommodations purchased
This condition group checks which accommodations have been purchased by the visitor as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Accommodation Id |
String |
|
Never |
Is one of ac123 |
Accommodation name |
String |
|
Never |
Contains one of Sandy Beach House |
Board basis |
String |
|
Never |
Is not one of All inclusive |
Country |
String |
|
Never |
Is one of Mexico |
Number of nights |
Integer |
|
Never |
Is more than 10 |
Region |
String |
|
Never |
Is one of Baja California |
Star rating |
Integer |
|
Never |
5 |
Time of purchase |
Day |
|
Relative |
Was in the last 5 days |
Accommodations viewed
This condition checks which accommodations have been viewed by the visitor as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Accommodation ID |
String |
|
Never |
Is one of ac123 |
Accommodation name |
String |
|
Never |
Contains one of Sandy Beach House |
Board basis |
String |
|
Never |
Is one of All inclusive |
Country |
String |
|
Never |
Is one of Mexico |
Number of nights |
Integer |
|
Never |
Is less than 3 |
Region |
String |
|
Never |
Is one of Baja California |
Star rating |
Integer |
|
Never |
Is one of 5 |
Time of view |
Day |
|
Relative |
Was more than 10 days ago |
Journeys purchased
This condition group checks which journeys have purchased by the visitor as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Departure date |
Integer |
|
Never |
Is between Tue, Jun 27 2017 12:00 AM Wed, Jun 28 2017 12:00AM |
Destination code |
String |
|
Never |
Is one of LAX |
Destination country |
String |
|
Never |
Is one of United States |
Destination Name |
String |
|
Never |
Is one of Los Angeles International |
Direction of travel |
String |
|
Never |
Is one of outbound |
Fare class |
String |
|
Never |
Is one of Premium Cabin |
Journey Id |
String |
|
Never |
Is one of 12345 |
Journey time (minutes) |
Integer |
|
Never |
Is more than 360 |
Number of stops |
Integer |
|
Never |
Is 1 |
Operator |
String |
|
Never |
Contains one of Sun Travel |
Origin code |
String |
|
Never |
Is one of JFK |
Origin country |
String |
|
Never |
Is one of United States |
Origin Name |
String |
|
Never |
Is one of John F. Kennedy International |
Stopover codes |
String |
|
Never |
Contains one of ORD |
Time of purchase |
Day |
|
Relative |
Was in the last 5 days |
Journeys viewed
This condition group checks which journeys the visitor has viewed as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Departure date |
Integer |
|
Never |
Is between Tue, Jun 27 2017 12:00 AM Fri, Jun 30 2017 12:00 AM |
Destination code |
String |
|
Never |
Is one of LAX |
Destination country |
String |
|
Never |
Is one of United States |
Destination name |
String |
|
Never |
Is one of Los Angeles International |
Direction of travel |
String |
|
Never |
Is one of outbound |
Fare class |
String |
|
Never |
Is one of Premium Cabin |
Journey ID |
String |
|
Never |
Is one of 12345 |
Journey time (minutes) |
Integer |
|
Never |
Is 360 |
Number of stops |
Integer |
|
Never |
Is more than 2 |
Operator |
String |
|
Never |
Contains one of Sun Travel |
Origin code |
String |
|
Never |
Is one of JFK |
Origin country |
String |
|
Never |
Is one of United States |
Origin name |
String |
|
Never |
Is one of John F. Kennedy International |
Stopover codes |
String |
|
Never |
Contains one of ORD |
Time of view |
Day |
|
Relative |
Was in the last 5 days |
Journeys added to basket
This condition group checks which journeys have been added to the user’s basket as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Departure date |
Integer |
|
Never |
Is between Tue, Jun 27 2017 12:00 AM Fri, Jun 30 2017 12:00 AM |
Destination code |
String |
|
Never |
Is one of LAX |
Destination country |
String |
|
Never |
Is one of United States |
Destination name |
String |
|
Never |
Is one of Los Angeles International |
Direction of travel |
String |
|
Never |
Is one of outbound |
Fare class |
String |
|
Never |
Is one of Premium Cabin |
Journey ID |
String |
|
Never |
Is one of 12343 |
Journey time (minutes) |
Integer |
|
Never |
Is 360 |
Number of stops |
Integer |
|
Never |
Is 1 |
Operator |
String |
|
Never |
Contains one of Sun Travel |
Origin code |
String |
|
Never |
Is one of JFK |
Origin country |
String |
|
Never |
Is one of United States |
Origin name |
String |
|
Never |
Is one of John F. Kennedy International |
Stopover codes |
String |
|
Never |
Contains one of ORD |
Time added to basket |
Day |
|
Relative |
Was in the last 5 days |
Packages purchased
This condition group checks which packages have been purchased by a visitor as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
End date |
Integer |
|
Never |
Is between Tue, Jun 27 2017 12:00 AM Fri, Jun 30 2017 12:00 AM |
Number of adults |
Integer |
|
Never |
Is 2 |
Number of children |
Integer |
|
Never |
Is 2 |
Number of infants |
Integer |
|
Never |
Is 1 |
Package provider |
String |
|
Never |
Is one of Sun Travel |
Package type |
String |
|
Never |
Is one of Cruise |
Total price |
Money |
|
Never |
Is 560.95 |
Start date |
Integer |
|
Never |
Is after Tue, June 27 2017 12:00 AM |
Time of purchase |
Day |
|
Relative |
Was in the last 5 days |
Total price |
Money |
|
Never |
Is $300 |
Packages viewed
This condition group checks which packages have been viewed by a visitor as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
End date |
String |
|
Never |
Is between Tue, Jun 27 2017 12:00 AM Fri, Jun 30 2017 12:00 AM |
Number of adults |
Integer |
|
Never |
Is 2 |
Number of children |
Integer |
|
Never |
Is 2 |
Number of infants |
Integer |
|
Never |
Is 1 |
Package provider |
String |
|
Never |
Is one of Sun Travel |
Package type |
String |
|
Never |
Is one of Cruise |
Start date |
Integer |
|
Never |
Is after Tue, June 27 2017 12:00 AM |
Time of view |
Day |
|
Relative |
Was in the last 1 day |
Total price |
Money |
|
Never |
Is $560.95 |
Packages added to basket
This condition group checks which packages have been added to a user’s basket as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
End date |
String |
|
Never |
Is between Tue, Jun 27 2017 12:00 AM Fri, Jun 30 2017 12:00 AM |
Number of adults |
Integer |
|
Never |
Is 2 |
Number of children |
Integer |
|
Never |
Is 2 |
Number of infants |
Integer |
|
Never |
Is 1 |
Package provider |
String |
|
Never |
Is not one of Sun Travel |
Package type |
String |
|
Never |
Cruise |
Start date |
Integer |
|
Never |
Is after Tue, June 27 2017 12:00 AM |
Time added to basket |
Day |
|
Relative |
Was in the last 3 days |
Total Price |
Money |
|
Never |
Is less than $100 |
Searches
This condition group checks how and what the visitors searched for as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Destination code |
String |
|
Never |
Is one of LAX |
Destination country |
String |
|
Never |
Is not one of United States |
Destination country code |
String |
|
Never |
Is one of US |
Destination locality |
String |
|
Never |
Is one of East side |
Destination name |
String |
|
Never |
Is one of Manhattan |
Destination region |
String |
|
Never |
Is one of New York City |
End date |
Integer |
|
Never |
Is between Tue, Jun 27 2017 12:00 AM Fri, Jun 30 2017 12:00 AM |
Exact date |
Integer |
|
Never |
Is 10 |
Exact price |
Money |
|
Never |
Is $300 |
Exact rating |
Integer |
|
Never |
Is more than 10 |
Flexible dates |
Boolean |
|
Never |
True |
Inbound fares |
String |
|
Never |
Contains one of economy |
Lead time |
Integer |
|
Never |
Is less than 10 |
Max duration |
Integer |
|
Never |
Is more than 6 |
Max price |
Money |
|
Never |
Is $500 |
Max rating |
Integer |
|
Never |
Is more than 3 |
Min price |
Money |
|
Never |
Is between $300 and $500 |
Min rating |
Integer |
|
Never |
Is less than 2 |
Number of adults |
Integer |
|
Never |
Is between 2 and 4 |
Number of children |
Integer |
|
Never |
Is not 2 |
Number of infants |
Integer |
|
Never |
Is 1 |
Number of students |
Integer |
|
Never |
Is not between 6 and 9 |
Number of teenagers |
Integer |
|
Never |
Is not between 4 and 5 |
Number of rooms |
Integer |
|
Never |
Is more than 3 |
Origin code |
String |
|
Never |
Is one of LAX |
Origin country |
String |
|
Never |
Is not one of United States |
Origin country code |
String |
|
Never |
Is one of US |
Origin locality |
String |
|
Never |
Is one of East side |
Origin name |
String |
|
Never |
Is one of Manhattan |
Origin region |
String |
|
Never |
Is one of New York City |
Outbound fares |
String |
|
Never |
Is one of Business |
Room facilities |
String |
|
Never |
Is one of en-suite |
Room types |
String |
|
Never |
Is one of double |
Search type |
String |
trSearch.searchType |
Never |
One-way flight |
Start date |
Integer |
|
Never |
Is between Tue, Jun 27 2017 12:00 AM Fri, Jun 30 2017 12:00 AM |
Time of search |
Day |
|
Relative |
Was in the last 2 days |
Total passengers |
Integer |
|
Never |
Is 5 |
Gaming conditions
Bet added
These conditions checks the details of the bet that was added as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Bet type |
String |
|
Never |
Is one of Single |
Competition |
String |
|
Never |
Is one of Barclays Premier League |
Event |
String |
|
Never |
Tottehham v Liverpool |
Market |
String |
|
Never |
Is Match Betting |
Multi bet |
Boolean |
|
Never |
Part of multi bet |
Odds |
Integer |
|
Never |
Is 3 |
Selection |
String |
|
Never |
Is one of Tottenham |
Sport |
String |
|
Never |
Is one of Football |
Start time |
Integer |
|
Never |
Is between Sun, Oct 1 2017 12:00 AM Sun, Oct 8 2017 12:00 AM |
Time added |
Day |
|
Never |
Was in the last 5 days |
Timing of bet |
Boolean |
|
Never |
In Play |
Bet placed
These conditions checks the details of the bet that was placed as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Bet type |
String |
|
Never |
Is one of Single |
Competition |
String |
|
Never |
Is one of Barclays Premier League |
Event |
String |
|
Never |
Tottehham v Liverpool |
Market |
String |
|
Never |
Is Match Betting |
Multi bet |
Boolean |
|
Never |
Part of multi bet |
Odds |
Integer |
|
Never |
Is 3 |
Potential return |
Money |
|
Never |
Is £100 |
Selection |
String |
|
Never |
Is one of Tottenham |
Sport |
String |
|
Never |
Is one of Football |
Stake |
Money |
|
Never |
Is £20 |
Start time |
Integer |
|
Never |
Is between Sun, Oct 1 2017 12:00 AM Sun, Oct 8 2017 12:00 AM |
Time added |
Day |
|
Never |
Was in the last 5 days |
Timing of bet |
Boolean |
|
Never |
In Play |
Funds
These conditions checks the fund amount, fund type, and the timing of the add to fund as conditions for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Amount |
Money |
|
Never |
Is £100 |
Method |
String |
|
Never |
Is one of Paypal |
Time funds were added |
Day |
|
Relative |
Was in the last 3 days |
Type |
String |
|
Never |
Is one of deposit |
Multiple bet added
These conditions checks the details of the multiple bet that was added as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Bet type |
String |
|
Never |
Is one of Single |
Competition |
String |
|
Never |
Is one of Barclays Premier League |
Event |
String |
|
Never |
Tottehham v Liverpool |
Market |
String |
|
Never |
Is Match Betting |
Odds |
Integer |
|
Never |
Is 3 |
Selection |
String |
|
Never |
Is one of Tottenham |
Sport |
String |
|
Never |
Is one of Football |
Start time |
Integer |
|
Never |
Is between Sun, Oct 1 2017 12:00 AM Sun, Oct 8 2017 12:00 AM |
Time added |
Day |
|
Never |
Was in the last 5 days |
Timing of bet |
Boolean |
|
Never |
In Play |
Multiple bet placed
These conditions checks the details of the multiple bet that was placed as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Bet type |
String |
|
Never |
Is one of Single |
Competition |
String |
|
Never |
Is one of Barclays Premier League |
Event |
String |
|
Never |
Tottehham v Liverpool |
Market |
String |
|
Never |
Is Match Betting |
Odds |
Integer |
|
Never |
Is 3 |
Potential return |
Money |
|
Never |
Is £100 |
Selection |
String |
|
Never |
Is one of Tottenham |
Sport |
String |
|
Never |
Is one of Football |
Stake |
Money |
|
Never |
Is £200 |
Start time |
Integer |
|
Never |
Is between Sun, Oct 1 2017 12:00 AM Sun, Oct 8 2017 12:00 AM |
Time added |
Day |
|
Never |
Was in the last 5 days |
Timing of bet |
Boolean |
|
Never |
In Play |
Single bet added
These conditions checks the details of the single bet that was added as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Action |
String |
|
Never |
Is one of betslip-add |
Competition |
String |
|
Never |
Is one of Barclays Premier League |
Event |
String |
|
Never |
Tottehham v Liverpool |
Market |
String |
|
Never |
Is Match Betting |
Odds |
Integer |
|
Never |
Is 3 |
Selection |
String |
|
Never |
Is one of Tottenham |
Sport |
String |
|
Never |
Is one of Football |
Start time |
Integer |
|
Never |
Is between Sun, Oct 1 2017 12:00 AM Sun, Oct 8 2017 12:00 AM |
Time added |
Day |
|
Never |
Was in the last 5 days |
Timing of bet |
Boolean |
|
Never |
In Play |
Single bet placed
These conditions check the details of the single bet that was placed as the basis for segment membership.
Condition | QP Data Type | QProtocol Event | Default Timeout | Example |
---|---|---|---|---|
Competition |
String |
|
Never |
Is one of Barclays Premier League |
Event |
String |
|
Never |
Tottehham v Liverpool |
Market |
String |
|
Never |
Is Match Betting |
Odds |
Integer |
|
Never |
Is 3 |
Potential return |
Money |
|
Never |
Is £100 |
Selection |
String |
|
Never |
Is one of Tottenham |
Sport |
String |
|
Never |
Is one of Football |
Stake |
Money |
|
Never |
Is £20 |
Start time |
Integer |
|
Never |
Is between Sun, Oct 1 2017 12:00 AM Sun, Oct 8 2017 12:00 AM |
Time added |
Day |
|
Never |
Was in the last 5 days |
Timing of bet |
Boolean |
|
Never |
In Play |