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 name | Description |
|---|---|
| contains |
This condition is met when a given condition value is a substring of a variable value. The variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: |
| doesn’t contain |
This condition is met when a given condition value isn’t a substring of a variable value. The variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: |
| starts with |
This condition is met when a variable value starts with a given condition value. The variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: |
| doesn’t start with |
This condition is met when a variable value doesn’t start with a given condition value. The variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: |
| ends with |
This condition is met when a variable value ends with a given condition value. The variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: |
| doesn’t end with |
This condition is met when a variable value doesn’t end with a given condition value. The variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: |
| equals |
This condition is met when a variable value equals a given condition value. The 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 |
This condition is met when a variable value doesn’t equal a given condition value. The 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 |
This condition is met when a variable value matches a given regular expression (regexp). The variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: |
| regexp doesn’t equal |
This condition is met when a variable value doesn’t match a given regular expression (regexp). The variable value needs to be a string, number or boolean. For other types, this condition is never met. Example: |
| is true |
This condition is met when a variable value is boolean true. If the variable value is a string Example: |
| is false |
This condition is met when a variable value is boolean false. If the variable value is a string Example: |
| is set |
This condition is met when a variable value is defined – it’s neither Example: |
| is not set |
This condition is met when a variable value is Example: |
| is empty |
This condition is met when a variable value is one of: Example: |
| is not empty |
This condition is met when a variable value is none of: Example: |
| matches |
This 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 |
This 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 |
This 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 |
This 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. |