Segment
An audience defined by rules on attributes of end users and accounts, on events and on experiences done, which an experience targets.
A segment has a code, a name, a description and a rule. The rule is a tree of groups, in which all or any of the parts must hold or a part must not hold, and of conditions on an attribute of the end user or account, on an event or on an experience, compared with operators such as equals, contains, exists, within a number of days or completed. An experience aimed at a segment is shown only to its members; an experience without a segment is for everyone. Each time a segment is written, Waypoint counts the end users it selects and keeps that count with the moment of counting (table Tenant.Segments).