Segments
A segment is a saved audience filter. It determines who exactly will receive a notification. Segments are built from rules based on tags, activity, platform, and other user characteristics.
How segments work
When a message is sent, Notirix computes the audience in real time: it takes all active users, applies include rules, and subtracts exclude rules. A segment is a "recipe" for a selection, not a static list. New users who match the conditions will automatically be included in the next mailing for that segment.
Segment rules
Rules are combined with logical operators AND (all conditions met) or OR (at least one). Rules can be grouped into blocks with different logic to create complex selections.
Available filters
User tag
The most flexible filter. Allows filtering by any tag you set via SDK or API.
existsTag with this key exists (any value)tag "plan" existsnot_existsTag with this key does not existtag "promo" not existseqExact value matchplan = "premium"inValue is in the listplan in ["premium", "trial"]gt / gteGreater than / greater than or equal (numeric)total_orders > 5lt / lteLess than / less than or equal (numeric)days_inactive < 90Last activity
Filters users by the time of their last site visit. Units: minutes, hours, days, weeks.
lt_days 7 — visited the site less than 7 days ago (active)gt_days 30 — has not visited the site in more than 30 days (dormant)Platform
Filter by user device:
androidAndroid mobile devices (FCM)
iosiOS mobile devices (FCM + APNs)
webBrowser web push subscriptions
User status
Filter by status: active, unsubscribed, blocked. Typically, only active users are included in mailings — this happens automatically, but you can set this rule explicitly.
Channel presence
User has (or does not have) a registered mobile FCM token.
User has (or does not have) an active web push subscription.
Country and language
Filter by country (country, ISO 3166-1 alpha-2 code, e.g. US) and browser language (language, e.g. en, ru). Automatically determined from browser data at the time of subscription.
Include and Exclude
When creating a message, you can specify multiple segments:
Union (UNION) of users from all specified segments. A user is added to the audience if they appear in at least one include segment.
Subtracts users from exclude segments from the resulting audience. The same segment cannot be added to both include and exclude at the same time.
Audience preview
In the segments table, a preliminary audience count is displayed next to each segment. In the editor — the counter updates in real time as you add rules. This helps estimate reach before sending.
Related sections
Segments filter users by their tags. Tags must be set in advance via SDK or API.
When creating a message, select "By segments" mode and specify the necessary segments in the Include / Exclude fields.