For each trigger, you can set specific conditions. In this article, we’ll explain detailed rules of conditioning so that you could work with triggers more comfortably.

Condition | Description |
---|---|
contains |
A condition is met when a given condition value is a substring of a variable value. A variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: |
doesn’t contain |
A condition is met when a given condition value isn’t a substring of a variable value. A variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: |
starts with |
A condition is met when a variable value starts with a given condition value. A variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: |
doesn’t start with |
A condition is met when a variable value doesn’t start with a given condition value. A variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: |
ends with |
A condition is met when a variable value ends with a given condition value. A variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: |
doesn’t end with |
A condition is met when a variable value doesn’t end with a given condition value. A variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: |
equals |
A condition is met when a variable value equals a given condition value. A variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: Note: For a traffic source variable, you can set one of the following condition values: Direct, Referral, Social, Organic search, Campaign. |
doesn’t equal |
A condition is met when a variable value doesn’t equal a given condition value. A variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: Note: For a traffic source variable, you can set one of the following condition values: Direct, Referral, Social, Organic search, Campaign. |
regexp |
A condition is met when a variable value matches a given regular expression (regexp). A variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: |
regexp doesn’t equal |
A condition is met when a variable value doesn’t match a given regular expression (regexp). A variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: |
is true |
A condition is met when a variable value is Boolean true. If a variable value is a string Example: |
is false |
A condition is met when a variable value is Boolean false. If a variable value is a string Example: |
is set |
A condition is met when a variable value is defined – it’s neither Example: |
is not set |
A condition is met when a variable value is Example: |
is empty |
A condition is met when a variable value is one of: Example: |
is not empty |
A condition is met when a variable value is none of: Example: |
matches |
A condition is met when a clicked element matches a given selector (CSS or XPath). Example: Note: Available only for the Click Element variable. |
doesn’t match |
A condition is met when a clicked element doesn’t match a given selector (CSS or XPath). Example: Note: Available only for the Click Element variable. |
is a child of |
A condition is met when a clicked element is a child of an element matched by a given selector (CSS or XPath). A parent element is checked recursively up to 100 elements in the DOM. Example: Note: Available only for the Click Element variable. |
isn’t a child of |
A condition is met when a clicked element isn’t a child of an element matched by a given selector (CSS or XPath). A parent element is checked recursively up to 100 elements in the DOM. Example: Note: Available only for the Click Element variable. |