Overview
Define audience groups to target campaigns and gate features
Segments
Segments are named audience filters. Define conditions based on user properties, events, or other segments, then use them to target campaigns, run experiments on specific audiences, and gate features.
What is a segment?
A segment is a saved set of conditions that evaluates to true or false for each user. For example, "Free Users" might match users whose subscription_status equals free. "Power Users" might match users who triggered feature_used more than 10 times in the last 30 days.
Segments are scoped to an app and environment (test or live). You create and manage them from the dashboard, and they are delivered to the SDK automatically.
Where segments are used
Segments appear throughout Nuxie:
- Campaign triggers -- Show a paywall only to users in the "Free Users" segment. See Triggers & Goals.
- Experiment scoping -- Run an A/B test only for users in a target audience. See Experiments.
- Feature gating -- Restrict access to features based on segment membership. See Features & Entitlements.
- Analytics filtering -- Break down metrics by audience group. See Dashboard & Metrics.
How evaluation works
Segments are evaluated in two places:
- On the server -- When events are ingested, Nuxie evaluates all relevant segment conditions against the user's profile. Membership results are synced from the server and included in the profile delivered to the SDK.
- On-device -- The SDK receives segment definitions as part of the user profile. Conditions that depend only on user properties can be checked locally for instant results.
This dual evaluation model means segments stay up to date with minimal latency. Server-side evaluation catches event-based conditions, while on-device evaluation provides instant checks for property-based conditions.
Segments and events
Segments can reference event history. For example, you can create a segment for "users who completed onboarding in the last 7 days." When a user tracks an event via the SDK, Nuxie re-evaluates any segments that depend on that event type.
Segments can also reference other segments. If "Premium Eligible" depends on membership in "Completed Onboarding," Nuxie evaluates the dependency first, then the dependent segment. See Using Segments for details on dependencies.
Dashboard
The Segments list in the dashboard shows every segment for the current app and environment. For each segment, you can see:
- Name and optional description
- Member count -- How many users currently match the conditions
- Campaign usage -- How many campaigns reference this segment
Click a segment to open its detail view with three tabs:
- Overview -- Edit the segment conditions using the visual builder.
- Customers -- Browse the list of users currently in the segment.
- Usage -- See which campaigns reference this segment.
Next steps
- Segment Builder -- Create segments with the visual condition editor.
- Using Segments -- Reference segments in campaigns, experiments, and the SDK.