Перейти к содержанию

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 to

To create a tag-based segment, do the following:

  1. In the Create Segment page, click Add filter by.

Add filter by dropdown menu showing tag selection option in segment creation interface

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

Setting segment filter by Tags showing tag selection and value assignment

  1. Choose the appropriate operator for your condition. Learn more

Set operators for multiple conditions

Anchor link to

Logical operators

Anchor link to

When 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 to

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

  1. Click on the current operator (AND/OR) in the filter group header.
  2. Select the new operator from the dropdown.

Changing Filters operator between AND and OR logic

Include all user devices

Anchor link to

Enable 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.

Include all user devices option toggle for cross-platform targeting

Tag operators by type

Anchor link to

The available operators depend on the tag type you’re working with. Below are the operators for each tag type.

String tag operators

Anchor link to

String 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
isTag value equals the specified valueFavoriteColor is "Blue"
is notTag value does not equal the specified valueCountry is not "Canada"
inTag value matches any value in a provided listCategory in ["Sports", "News"]
not inTag value does not match any value in a provided listStatus not in ["Banned", "Suspended"]
not setTag has no value assignedNickname not set
anyTag has any valueUsername any

Integer tag operators

Anchor link to

Integer 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
isTag value equals the specified numberAge is 30
is notTag value does not equal the specified numberLevel is not 1
greater or equalsTag value is greater than or equal to the specified numberScore greater or equals 100
less or equalsTag value is less than or equal to the specified numberPurchaseCount less or equals 5
betweenTag value is within the specified range (inclusive)Age between 18 and 65
inTag value matches any value in the listLevel in [5, 10, 15]
not inTag value does not match any value in the listStreak not in [0, 1]
not setTag has no value assignedScore not set
anyTag has any assigned valueLevel any

List tag operators

Anchor link to

List 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
inTag contains at least one of the specified valuesInterests in ["Sports", "Technology"]
not inTag does not contain any of the specified valuesCategories not in ["Spam", "Promotions"]
not setTag has no value assignedPreferences not set
anyTag has any assigned valueSubscriptions any

Boolean tag operators

Anchor link to

Boolean tags store only true or false values. Use them for binary states like email verification, subscription status, or feature flags.

Operator
Description
Example
is trueTag value is trueEmailVerified is true
is falseTag value is falsePushEnabled is false
not setTag was never assigned a valueSMSConsent not set
anyTag has any assigned value (true or false)AccountActive any

Date tag operators

Anchor link to

Date 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 to

These operators compare dates relative to today, allowing dynamic time-based segmentation that automatically updates each day.

Operator
Description
Example
during the last N daysDate is within the last N daysLastOpen during the last 30 days
exactly N days agoDate matches exactly N days agoLastLogin exactly 7 days ago
N or more days agoDate is older than or equal to N daysLastPurchase 90 or more days ago
between N and M days agoDate is between two day offsetsSignup between 7 and 30 days ago
Anniversary
Anchor link to

These operators match recurring calendar dates (same month and day each year), ignoring the year. Perfect for birthdays and anniversary campaigns.

Operator
Description
Example
is todayAnniversary occurs todayBirthday is today
is in N daysAnniversary is in N daysBirthday is in 3 days
is N days pastAnniversary was N days agoBirthday is 5 days past
Specific dates
Anchor link to

These operators compare against fixed calendar dates. Use them for one-time campaigns or historical date analysis.

Operator
Description
Example
on a specific dateMatches exact dateLastLogin on "2023-01-15"
on or after a specific dateDate is on or after the specified dateLastPurchase on or after "2023-01-01"
on or before a specific dateDate is on or before the specified dateAccountCreated on or before "2022-12-31"
between datesBetween two calendar datesLastOpen between "2022-02-28" and "2022-03-02"

These operators check only whether a date tag has been assigned, without evaluating the actual date value.

Operator
Description
Example
not setTag has no valueTrialEndDate not set
anyTag has any valueLastLogin any

Price tag operators

Anchor link to

Price 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
isPrice equals the specified valueInAppPurchase is 9.99
is notPrice does not equal the specified valueLastPurchase is not 0
greater or equalsPrice is greater than or equal to a valueTotalSpent greater or equals 100
less or equalsPrice is less than or equal to a valueCartValue less or equals 50
betweenPrice falls within the specified range (inclusive)OrderValue between 25 and 100
inPrice matches any value in a listSubscriptionPrice in [9.99, 14.99, 19.99]
not inPrice does not match any value in a listRefundAmount not in [0, 5]
not setTag has no value assignedLastPurchaseAmount not set
anyTag has any assigned valuePurchaseHistory any

Version tag operators

Anchor link to

Version 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
isVersion equals the specified valueAppVersion is "2.5.0"
is notVersion does not equal the specified valueAppVersion is not "1.0.0"
greater or equalsVersion is greater than or equal to the specified versionAppVersion greater or equals "2.0.0"
less or equalsVersion is less than or equal to the specified versionAppVersion less or equals "3.0.0"
betweenVersion falls within a version rangeAppVersion between "2.0.0" and "3.0.0"
inVersion equals any of the listed valuesAppVersion in ["2.1.0", "2.2.0", "2.3.0"]
not inVersion does not equal any of the listed valuesOSVersion not in ["10.0", "11.0"]
not setTag has no version assignedSDKVersion not set
anyTag has any version assignedAppVersion any

Tag-based segmentation examples

Anchor link to

Below are practical scenarios showing how to use tag filters to create targeted audience segments.

Premium subscribers
Anchor link to

Goal: 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 to

Goal: 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 to

Goal: 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 to

Goal: 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 to

Goal: 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 to

Goal: 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 to

Goal: 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.