ePrivacy and GPDR Cookie Consent by Cookie Consent Skip to main content

Segment attributes & conditions, parenthesis, exclusion

Conditions needsneed to be defined for each attribute in the segment. They are used to specify attributes and norrownarrow the audience. 

Learn from this article about:

 

How to add attributes, conditions, move and delete them

Go to the Segment Detail tab (either create a segment or edit thean existing one) and click on the button "Add Condition". You can add as many attributes as you wish and specify a condition or various conditions for each of them. 

 

Attributes and compound attributes, data types and available conditions

Various attributes are defined as a specific data type, in most cases those are:

  • string (attributes like "city" with various cities assigned to each customer)
  • numeric (attributes like "number of transactions" with various numbers for each customers)customer)
  • date (or datetime) (attributes like "date of birth" with various dates for each customer)
  • boolean (attributes like "subscribed to the newsletter" with option yes/ no)

Each of the attributes has certain conditions available based on anthe above above-mentioned types.

 

Attribute data type Conditions
String attribute

Equals

Not equals

Contains

Not contains 

Is known

Is unknown

Remember: String conditions are not listed in alphabetical order but the most popular values will be listed on the top of the search box instead.

 

Numeric attribute

Equals

Lower than (for lower than is = and lower than definerdefined number)

Greater than (for greater than is = and greatedgreater than defined number)

Between ( from =< to => ) 

Is known

Is unknown

Remember: Attributes greater than 0 dodoes not include 0.

Date (datetime) attribute

Exactly

Since

Until

Since- until

Matches current day

Matches current week (coming soon)

Matches current month

Matches current year

Learn more: To learn more about the date (datetime) attribute and theirhow useage,to use them, please seerefer to this article.

Bollean attribute

Yes

No

 

 

Compound attributes

Some conditions have more dimensions that are built from compound attributes (like in the example below for the "Current subsriptionsubscription status" attribute, we have various dimensions availalbeavailable "Email", "subsriptionsubscription status", Date of subsriptionsubscription status").

Compound attribute workworks exactly the same as other attribute,attributes, they are there to help you to see that they belong to the same group of attributes logically put together.  

compound attribute example.png

 

And/ Or opetatorsoperators

In between, you can choose the operator "and/ or" to specify the segmentation query further. 

Remember: AND has higher precedence over OR. For example, if defined A and B or C, in fact if will behave in this way: (A and B) or C.

 

 

Exclusion

It is possible to set condition negation by clicking on the "Not" button. In this wayway, it is possible to exclude certain values. 

For example, choose all customers who do not equal email denielscott5523@gmail.com, as we wish to exclude this this partiularparticular customer.   

is-not.png

 

Parentheses

S

Set parentheses () to specify query further.

For example, "(A or B) and (C or D)":  customers from "(A Jakarta or B Singapore) and (C subscribed to an email or D made a transaction)".  

Remember: AND has higher precedence over OR. For example, if defined A and B or C, in fact if will behave in this way: (A and B) or C.

Learn more: To learn more about parentheses, please gorefer to this article

parentheses.png

Learn more: To learn more about how to use segmentation from tutorials.