Build segments by tags
เนื้อหานี้ยังไม่มีในภาษาของคุณ
Tags are custom attributes you can assign to users to store additional data about their preferences, behavior, or profile information. Build segments by using tag filters to target users based on specific attributes or data assigned to their devices and user IDs.
How to create a tag-based segment
Anchor link toTo create a tag-based segment, do the following:
- In the Create Segment page, click Add filter by.

- Select a tag from the Tag dropdown list. Start typing to search for specific tags if you have many.
- Click Add value to specify the tag condition and select a value from the dropdown or start typing to search.

- Choose the appropriate operator for your condition. Learn more
Set operators for multiple conditions
Anchor link toLogical operators
Anchor link toWhen you add multiple tag conditions to your segment, you can use logical operators to combine them:
- AND: Includes users who match all specified tag values
- OR: Includes users who match any of the specified tag values
Filter groups
Anchor link toWhen you add multiple filters to a segment, they form a Filter Group. All filters within the same group use the same logical operator (AND or OR).
To change the operator for the entire filter group:
- Click on the current operator (AND/OR) in the filter group header.
- Select the new operator from the dropdown.

Include all user devices
Anchor link toEnable this option to target a user across all their devices, not just the one that matched the segment condition. This ensures they receive your messages on every platform they use.
Enabled: If any of the user’s devices meet the condition (for example, purchase event, tag, behavior), all their devices across platforms are included in the segment.
Disabled: Only the devices that meet the condition are included in the segment.

Tag operators by type
Anchor link toThe available operators depend on the tag type you’re working with. Below are the operators for each tag type.
String tag operators
Anchor link toString tags store text values such as usernames, email addresses, product names, or identifiers. Use them to segment users by categories, preferences, or any custom text-based data.
| Operator | Description | Example |
|---|---|---|
| is | Tag value equals the specified value | FavoriteColor is "Blue" |
| is not | Tag value does not equal the specified value | Country is not "Canada" |
| in | Tag value matches any value in a provided list | Category in ["Sports", "News"] |
| not in | Tag value does not match any value in a provided list | Status not in ["Banned", "Suspended"] |
| not set | Tag has no value assigned | Nickname not set |
| any | Tag has any value | Username any |
Integer tag operators
Anchor link toInteger tags store whole numbers like age, level, score, or purchase count. Perfect for demographic targeting and behavior-based segmentation using numeric comparisons.
| Operator | Description | Example |
|---|---|---|
| is | Tag value equals the specified number | Age is 30 |
| is not | Tag value does not equal the specified number | Level is not 1 |
| greater or equals | Tag value is greater than or equal to the specified number | Score greater or equals 100 |
| less or equals | Tag value is less than or equal to the specified number | PurchaseCount less or equals 5 |
| between | Tag value is within the specified range (inclusive) | Age between 18 and 65 |
| in | Tag value matches any value in the list | Level in [5, 10, 15] |
| not in | Tag value does not match any value in the list | Streak not in [0, 1] |
| not set | Tag has no value assigned | Score not set |
| any | Tag has any assigned value | Level any |
List tag operators
Anchor link toList tags allow multiple values per user simultaneously, ideal for preferences, interests, or subscriptions where users can select multiple options (e.g., news categories, product interests).
| Operator | Description | Example |
|---|---|---|
| in | Tag contains at least one of the specified values | Interests in ["Sports", "Technology"] |
| not in | Tag does not contain any of the specified values | Categories not in ["Spam", "Promotions"] |
| not set | Tag has no value assigned | Preferences not set |
| any | Tag has any assigned value | Subscriptions any |
Boolean tag operators
Anchor link toBoolean tags store only true or false values. Use them for binary states like email verification, subscription status, or feature flags.
| Operator | Description | Example |
|---|---|---|
| is true | Tag value is true | EmailVerified is true |
| is false | Tag value is false | PushEnabled is false |
| not set | Tag was never assigned a value | SMSConsent not set |
| any | Tag has any assigned value (true or false) | AccountActive any |
Date tag operators
Anchor link toDate tags store calendar dates. Use them to segment users based on signup dates, last activity, birthdays, or any time-sensitive events with flexible relative and absolute date comparisons.
Relative dates
Anchor link toThese operators compare dates relative to today, allowing dynamic time-based segmentation that automatically updates each day.
| Operator | Description | Example |
|---|---|---|
| during the last N days | Date is within the last N days | LastOpen during the last 30 days |
| exactly N days ago | Date matches exactly N days ago | LastLogin exactly 7 days ago |
| N or more days ago | Date is older than or equal to N days | LastPurchase 90 or more days ago |
| between N and M days ago | Date is between two day offsets | Signup between 7 and 30 days ago |
Anniversary
Anchor link toThese operators match recurring calendar dates (same month and day each year), ignoring the year. Perfect for birthdays and anniversary campaigns.
| Operator | Description | Example |
|---|---|---|
| is today | Anniversary occurs today | Birthday is today |
| is in N days | Anniversary is in N days | Birthday is in 3 days |
| is N days past | Anniversary was N days ago | Birthday is 5 days past |
Specific dates
Anchor link toThese operators compare against fixed calendar dates. Use them for one-time campaigns or historical date analysis.
| Operator | Description | Example |
|---|---|---|
| on a specific date | Matches exact date | LastLogin on "2023-01-15" |
| on or after a specific date | Date is on or after the specified date | LastPurchase on or after "2023-01-01" |
| on or before a specific date | Date is on or before the specified date | AccountCreated on or before "2022-12-31" |
| between dates | Between two calendar dates | LastOpen between "2022-02-28" and "2022-03-02" |
Existence
Anchor link toThese operators check only whether a date tag has been assigned, without evaluating the actual date value.
| Operator | Description | Example |
|---|---|---|
| not set | Tag has no value | TrialEndDate not set |
| any | Tag has any value | LastLogin any |
Price tag operators
Anchor link toPrice tags store monetary values with decimal precision in currency format (X.XX). Ideal for segmenting users by purchase amounts, subscription tiers, cart values, or spending behavior for revenue-focused campaigns.
| Operator | Description | Example |
|---|---|---|
| is | Price equals the specified value | InAppPurchase is 9.99 |
| is not | Price does not equal the specified value | LastPurchase is not 0 |
| greater or equals | Price is greater than or equal to a value | TotalSpent greater or equals 100 |
| less or equals | Price is less than or equal to a value | CartValue less or equals 50 |
| between | Price falls within the specified range (inclusive) | OrderValue between 25 and 100 |
| in | Price matches any value in a list | SubscriptionPrice in [9.99, 14.99, 19.99] |
| not in | Price does not match any value in a list | RefundAmount not in [0, 5] |
| not set | Tag has no value assigned | LastPurchaseAmount not set |
| any | Tag has any assigned value | PurchaseHistory any |
Version tag operators
Anchor link toVersion tags store version numbers in w.x.y.z format (Major.Minor.Patch.Build) for app, OS, or SDK versions. Perfect for targeting users on specific versions for updates, compatibility messaging, or feature rollouts.
| Operator | Description | Example |
|---|---|---|
| is | Version equals the specified value | AppVersion is "2.5.0" |
| is not | Version does not equal the specified value | AppVersion is not "1.0.0" |
| greater or equals | Version is greater than or equal to the specified version | AppVersion greater or equals "2.0.0" |
| less or equals | Version is less than or equal to the specified version | AppVersion less or equals "3.0.0" |
| between | Version falls within a version range | AppVersion between "2.0.0" and "3.0.0" |
| in | Version equals any of the listed values | AppVersion in ["2.1.0", "2.2.0", "2.3.0"] |
| not in | Version does not equal any of the listed values | OSVersion not in ["10.0", "11.0"] |
| not set | Tag has no version assigned | SDKVersion not set |
| any | Tag has any version assigned | AppVersion any |
Tag-based segmentation examples
Anchor link toBelow are practical scenarios showing how to use tag filters to create targeted audience segments.
Premium subscribers
Anchor link toGoal: Target users with an active premium subscription.
How to set up:
- Tag type: String
- Tag:
subscription_type - Operator: is
- Value:
premium
Use case: Send exclusive content, early access to features, or special premium-only offers to engaged paying users.
Age-targeted campaigns
Anchor link toGoal: Target users within a specific age range.
How to set up:
- Tag type: Integer
- Tag:
Age - Operator: greater or equals
- Value:
25
AND
- Tag:
Age - Operator: less or equals
- Value:
35
Use case: Deliver age-appropriate content, products, or services tailored to specific demographics.
Users by interests
Anchor link toGoal: Target users who have selected specific interests or categories.
How to set up:
- Tag type: List
- Tag:
Interests - Operator: in
- Value:
["Sports", "Technology"]
Use case: Send personalized content based on user interests, recommend relevant products, or create interest-based campaigns.
Email verified users
Anchor link toGoal: Target users who have verified their email addresses.
How to set up:
- Tag type: Boolean
- Tag:
EmailVerified - Operator: is true
- Value:
true
Use case: Send messages only to verified users, improve deliverability for important communications.
Recent signups
Anchor link toGoal: Target users who signed up within the last 30 days.
How to set up:
- Tag type: Date
- Tag:
SignupDate - Operator: during the last N days
- Value:
30
Use case: Onboard new users with welcome messages, tutorials, or special offers for first-time customers.
High-value purchasers
Anchor link toGoal: Target users who have made purchases above a certain amount.
How to set up:
- Tag type: Price
- Tag:
TotalSpent - Operator: greater or equals
- Value:
100.00
Use case: Offer exclusive deals to high spenders, invite to VIP programs, or send premium product recommendations.
App version targeting
Anchor link toGoal: Target users on a specific app version for update campaigns.
How to set up:
- Tag type: Version
- Tag:
AppVersion - Operator: less or equals
- Value:
2.0.0
Use case: Notify users about important updates, promote new features available in newer versions, or address compatibility issues.
Tips for tag-based segmentation
Anchor link to- Create clear and consistent tag naming conventions across your project to make segments easier to build and maintain.
- Use multiple tag conditions with AND/OR operators to create precise audience definitions.
- Combine tag filters with events or existing segments for even more targeted campaigns.
- Regularly review and update tag values to ensure your segments remain accurate as user data changes.