Admin Guide

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.

ℹ️
The segment editor shows a real-time audience counter: Users (unique users) and Active Subscriptions (the number of push endpoints that will receive the notification — one user with two browsers counts as 2 subscriptions).

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.

Example: active premium users from Moscow
AND
Tag plan = premium
Last activity less than 30 days ago
Tag city = Moscow

Available filters

User tag

The most flexible filter. Allows filtering by any tag you set via SDK or API.

OperatorDescriptionExample
existsTag with this key exists (any value)tag "plan" exists
not_existsTag with this key does not existtag "promo" not exists
eqExact value matchplan = "premium"
inValue is in the listplan in ["premium", "trial"]
gt / gteGreater than / greater than or equal (numeric)total_orders > 5
lt / lteLess than / less than or equal (numeric)days_inactive < 90
💡
Numeric operators (gt, gte, lt, lte) work with strings that can be cast to numbers. For example, the tag total_orders = "14" will be correctly compared with a number.

Last 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:

android

Android mobile devices (FCM)

ios

iOS mobile devices (FCM + APNs)

web

Browser 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

has_mobile_device = true/false

User has (or does not have) a registered mobile FCM token.

has_web_subscription = true/false

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:

Include

Union (UNION) of users from all specified segments. A user is added to the audience if they appear in at least one include segment.

Exclude

Subtracts users from exclude segments from the resulting audience. The same segment cannot be added to both include and exclude at the same time.

Example: all users except those who have already purchased
Include
Segment "All active"
Exclude
Segment "Buyers"

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

← Users

Segments filter users by their tags. Tags must be set in advance via SDK or API.

→ Messages

When creating a message, select "By segments" mode and specify the necessary segments in the Include / Exclude fields.