--- title: "Segments" slug: "segments" updated: 2026-11-23T12:30:11Z published: 2026-11-23T12:30:11Z canonical: "support.gainsight.com/segments" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Segments This article explains how to leverage the Segments feature in Gainsight PX. ## Overview Segments in Gainsight PX are subsets of users grouped together based on shared attributes, behaviors, or characteristics. These could be demographic details, product usage patterns, subscription levels, or any custom-defined criteria. This feature helps you define user cohorts for engagements or analytics, to create different audience groups. Segments can be used in multiple business actions such as engagements, NPS®, CES, Multi-Question surveys, Analytics, and Dashboards. **Example Business Use Cases:** - Define a segment with URLs to avoid redefining URLs in each engagement. This approach is suitable when defining data constant values where you want to refer to a list of elements such as Account Names/IDs and URLs or define a subset of your customers based on their lifecycle stage or based on the URLs. - Create a segment for internal users, test users, or customers who attended training on a certain date. This segment can be used to launch specific engagements. - When you want to define common engagement triggering rules from a single rule set. Modifications to this rule set are applied to all the engagements that use this segment rule as reference. - Consider a scenario where you have a list of users you want to target for an engagement, or filter analytics for those users. You can create a segment by importing the list of users, and use it across PX as per your requirement. - Re-use a segment that was previously created in an external platform, in the PX application. To view the segments to which a user is tagged, navigate to the user profile page in Audience Explorer. For more information on how to view the full user profile, refer to the *Audience Explorer* section in the [*Accounts and Audience Explorer*](/v1/docs/audience-explorer#audience-explorer) article. ## Prerequisites Ensure that you have *Viewer* access to view segments, and *Manager* access to create, edit, or manage segments in PX. ## Segments Segments allow you to establish repeatable audience criteria, enabling the formation of distinct user groups. They are used to deliver targeted messages, analyze specific user groups, personalize product experiences, and measure the impact of product changes or marketing campaigns on different types of users. In PX, Segments are of the following types: - **Real-Time segments**: Segments that are created using audience rules, and are evaluated in real time. - **Segments**: Segments that are evaluated only when they are created, edited, or refreshed. - **CSV segments**: Segments that are created by importing a CSV file containing a specific list of users. - **External segments**: Segments that are created in external systems (for instance, Adobe Experience Platform) and brought into PX using APIs. ![Segments_RN.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Segments_RN.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A03%3A37Z&se=2026-11-24T19%3A03%3A37Z&sr=b&sp=r&sig=7PKW5SOJtMS%2B4x8yWDTcZBJkildXi45WeioVvnHcJ%2Fk%3D) ## Create Segments Creating segments involves grouping users together based on their actions or traits, giving you the ability to send personalized engagements, or analyze data in Analytics or Dashboards. To create segments: 1. Navigate to **Segments** and click the **Create** button on the upper right-hand corner. 2. Select the preferred mode of segment creation from one of the following: - [Define Rules](/v1/docs/segments#create-segments-using-audience-rules) - [Import CSV](/v1/docs/segments#create-segments-using-csv-files) ![Create Segment.jpg](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Create_Segment.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A03%3A37Z&se=2026-11-24T19%3A03%3A37Z&sr=b&sp=r&sig=Xk04yYtuUfmnfBjwVkzjanBhAhPcSDgkJzTW0UWRsGc%3D) ### Create Segments using Audience Rules Rules allow you to create a user cohort based on qualifying conditions. These rules when combined together create useful segmentations. Segments can be used to identify various cohorts such as user/account's demographics, feature usage, platform, custom events, and/or combined in-app behaviors, and more. To create a segment using rules: 1. In the **Create Segment** dialog box, select **Define Rules**. 2. Click **Next**. 3. Enter a name for the segment. 4. Select a rule from the **Rules** list. For each rule, enter the specific criteria that must be matched. For instance, in the following example, a segment is created based on the user *Admin* role within *Enterprise* account plans. ![Create Segments-Rules.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Create_Segments-Rules.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A03%3A37Z&se=2026-11-24T19%3A03%3A37Z&sr=b&sp=r&sig=AGmA%2FZmC6CXlcVgtyp6bRLEf3d4maSSESoHITqBFWG4%3D) 5. Select the **Rule Logic** for each added rule, and **Segment Logic** for the overall segment. For more information, refer to the [Segment and Rule Logic](/v1/docs/segments#segment-and-rule-logic) section. 6. **Rule Logic** 7. Click **Create**. #### Segment and Rule Logic When adding rules to your segment, you can decide the qualifying conditions as follows: - **AND**: All selected criteria must be true to trigger the segment. - **OR**: Any of the selected criteria must be true to trigger the segment. These conditions can be applied to the following types of logic: - **Segment Logi**c: The Segment Logic options defines the condition that must be applied to all rules added in the segment. - **Rule Logic**: The Rule Logic options define the conditions that must be applied to individual conditions set within a rule. This option can be used to create multiple criteria within a single rule. ![Rule Logic.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Rule_Logic.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A03%3A37Z&se=2026-11-24T19%3A03%3A37Z&sr=b&sp=r&sig=5%2BoAZKawtRU%2FULf2czwMgJ%2Fe2bzaQs4Uzlws4GEvuIM%3D) #### Segments with Advanced Rules When creating segments using audience rules, you can combine rules and logic to create an advanced set of criteria to target users. The following example displays a segment that is configured to target an audience of *Admin* users who have visited the product more than *10* times, belong to a *Premium* account, and have used the *People Maps -> People Maps - View Influence* feature more than *14 days ago*: ![advanced audience.jpeg](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/advanced_audience.jpeg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A03%3A37Z&se=2026-11-24T19%3A03%3A37Z&sr=b&sp=r&sig=XmYZKmBaP0YYekcY0WcU0l%2FU3ffZPAkqkKa%2BOfJHNSo%3D) ### Create Segments using CSV Files The CSV options allows you to create segments by importing a list of specific users or accounts that must be targeted as part of the segment. To import users or accounts and create a segment: 1. In the **Create Segment** dialog box, select **Import** **CSV**. 2. Click **Next**. 3. Enter a name for the segment. 4. (*Optional*) If you wish to get familiar with the sample format of the upload file, click **Download Sample File**. ![CSV import configuration panel with encoding, separator, and escape character settings, and sample file download options for user and account formats.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Downlaod_Sample_File.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A03%3A37Z&se=2026-11-24T19%3A03%3A37Z&sr=b&sp=r&sig=5UY4NngziljyBRHoE5%2FZB7s48t1MehmvR2teEQrGC2g%3D) 5. (*Optional*) In the **Configure** section, select the options based on the file being uploaded. **Click to view information on individual Configure fields.** - **Char Encoding**: Select the type of encoding to ensure that the data in the CSV file is interpreted correctly by PX. Default value: UTF-8 - **Quote Character**: Quote Character is used to import a value (along with special characters) specified in the Quotation while importing data. Default value: Double Quotes. Available values: Single Quotes. - **Field Separator**: Select the separator used to separate the values of different fields in the CSV. Default value: Comma. Available values: Tab, Semicolon, Pipe. - **Header Line**: Header line indicates the row number in the CSV that must be considered as the header for field mappings. Default value: 1 - **Escape Character**: Escape character is used to include a special character in the value.It is recommended to use Backslash in CSV file to avoid any discrepancy in the data after loading. Default value: Backslash - **Multi Select Separator**: Select the separator used to separate multiple values of a field of data type multi select dropdown list. Default value: Semicolon. 6. In the **Upload File** section, drag-and-drop or click **browse** to select the file containing the list of users or accounts. **Note**: - The CSV file must have a *unique identifier* column such as an ID or email, so that it can be mapped to the right PX users or accounts effectively. - The maximum file size allowed is 15 MB. 1. In the **Select CSV Mapping** section, select the CSV header field that serves as a unique identifier. 2. Depending on the type of segment being imported, perform the following: - **User**: 1. In the **What would you like to map** field, select **User**. 2. In the **PX User Attribute** field, select the PX attribute that matches the CSV header field to ensure a successful association. ![User CSV mapping interface showing uploaded file and selected mapping fields: header set to email, mapped to user, with PX user attribute as email.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/User_ImportNEW.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A03%3A37Z&se=2026-11-24T19%3A03%3A37Z&sr=b&sp=r&sig=0HvaNbX82irp3A1NgEHEXjbzdPuEG9QyFqjtWG4ehYQ%3D) - **Account**: 1. In the **What would you like to map** field, select **Account**. 2. In the **PX Account Attribute** field, select the PX attribute that matches the CSV header field to ensure a successful association. ![Account CSV mapping interface showing uploaded file and selected mapping fields: header set to name, mapped to account, with PX attribute as country name.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Account_Import.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A03%3A37Z&se=2026-11-24T19%3A03%3A37Z&sr=b&sp=r&sig=IiQaRyURQ20EGjuqSFVxYvNaly9o7COfSi6Q2Mju0Gk%3D) 3. Click **Create**. **IMPORTANT** - Once a segment is created, any further modifications by uploading another CSV file while editing the segment replaces the segment entirely, and does not append or make partial changes. For instance, if you create a segment with 100 users or accounts and later want to add 20 more, you need to include all 120 users or accounts (as applicable) in the updated CSV file while editing the segment. Uploading a CSV with just the 20 new users or accounts will replace the original 100 users or accounts, not add to them. - Creating a CSV segment may take up to three hours for the full list of users or accounts to be available for engagements, analytics, or dashboards - Similarly, it may take up to three hours before you can edit or delete a CSV segment, after the CSV upload while creating or editing. However, renaming the segment is permitted at any time. ## Create External Segments External segments allow you to leverage segments created outside Gainsight PX in Gainsight PX. Using the APIs for the External Segments, you can import the segment users, and then use them for engagements and analytics. For more information on how to create external segments, refer to the [Gainsight PX connection](https://experienceleague.adobe.com/docs/experience-platform/destinations/catalog/analytics/gainsight-px.html) article from Adobe. **Note** - The External Segment API currently only supports Adobe Experience Platform. - External Segment users are visible in Audience Explorer when the segment is used as a filter. - The create, update, and delete operations for external segments can only be performed using APIs, and not through the PX UI. ## Use Segments in PX After you create a segment, you can use it in engagements to reach specific user groups or to refine who should not receive the engagement. You can also use segments in Analytics and Dashboards to filter data. When applying segments as filters, choose *in* to include users or *not in* to exclude them. ![Active Users filter configuration panel with segment-based filtering logic, allowing users to include or exclude segments using 'in' or 'not in' match types.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/RN-Segments.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A03%3A37Z&se=2026-11-24T19%3A03%3A37Z&sr=b&sp=r&sig=FFHFe%2BBbLWz0OOyXZvTa9CATaYSgTSHzV41rXKFlf3s%3D) ### Engagements While creating an engagement, use the Segments rule to target the engagement to the applicable users: ![creating an engagement, use the Segments rule to target the engagement](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Segment_Audience_2.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A03%3A37Z&se=2026-11-24T19%3A03%3A37Z&sr=b&sp=r&sig=I9WeMgirhiEdMvrYI83zOVOHU28nYOCikqOosbTvl10%3D) You can choose to include or exclude users/accounts as follows: - **MATCH ANY**: Qualifies users or accounts that belong to at least one segment. - **MATCH ALL**: Qualifies users or accounts that belong to all segments. - **NOT MATCH ANY**: Excludes users or accounts that belong to any segment. - **NOT MATCH ALL**: Excludes users or accounts that belong to all segments. ![Segment filter configuration showing logic options including MATCH ANY, MATCH ALL, NOT MATCH ANY, and NOT MATCH ALL, used to define segment matching criteria.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/segments_-_engagements.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A03%3A37Z&se=2026-11-24T19%3A03%3A37Z&sr=b&sp=r&sig=kGQ1Oed9FEBZ6Awxota5TYrI2JLjiz%2FBLXWRgYqq7fc%3D) ### Dashboard When using Dashboard, use the widget’s filter to analyze data for a certain set of audience: ![using Dashboard, use the widget’s filter to analyze data](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/use_segments_in_dashboard.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A03%3A37Z&se=2026-11-24T19%3A03%3A37Z&sr=b&sp=r&sig=5JTiUFoZEbaGIKxAqSGm5g%2B%2FARg3UqyFdticEv1PDjg%3D) ### Analytics When creating a report in Analytics, for instance Funnel, create custom filters using the Segment to filter data specific to the applicable users: ![creating a report in Analytics](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/use_segments_in_analytics1.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A03%3A37Z&se=2026-11-24T19%3A03%3A37Z&sr=b&sp=r&sig=lf4RW9QPAnxWTRwvkfYFGDbivdEARVMYg36rbcufXz4%3D) ### Audience Explorer When using Audience Explorer, create custom filters using the segment, to view the list of users that belong to a segment: ![ using Audience Explorer, create custom filters using the segment,](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/segments_in_audience_exporer.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A03%3A37Z&se=2026-11-24T19%3A03%3A37Z&sr=b&sp=r&sig=yTmtdaF69siV40h8DBOYBWHf3W14c7wlu4FVgKmO6Nc%3D) ## Manage Segments The Segments section allows you to view users that belong to a segment, as well as create, edit, or delete segments in PX. **Note**: Ensure that you have *Manager* access to Segments in order to edit or delete segments. To manage segments: 1. Navigate to **Segments** from the main menu. 2. On the Segments page, you can perform the following actions: - **View segment users**: Click a segment to preview all users part of it, based on the type, in the following manner: - **Real-time segments**: All users matching the segment criteria in the last seven days. - **CSV and external segments**: All latest users that have been added to the segments using CSV upload or External Segments API. - **Search segment users**: Search users of a segment using their first name, last name, email address, or user identifier - **Export segment users**: Download a CSV file containing the details of all users in the segment. ![Preview slide-out panel of a segment displaying list of users belonging to the segment with Search and CSV download options highlighted.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Preview_segment_users.jpeg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A03%3A37Z&se=2026-11-24T19%3A03%3A37Z&sr=b&sp=r&sig=I0IBTG4uSjZKv1YfjO5dWQzx5g8DwpzXlzTwzVOBozQ%3D) - **Filter segments**: Filter and view segments based on the way they are evaluated. - **Manage segments**: Edit or delete segments. This option is not available for external segments as they are managed in the external systems such as Adobe Experience Platform (AEP). ![manage segments.jpg](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/manage_segments.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A03%3A37Z&se=2026-11-24T19%3A03%3A37Z&sr=b&sp=r&sig=xHNMPm7LQtoJutv4P8gGXiwZEDCLacAKlkBpFGkw4w4%3D) ## Additional Resources - [*In-App Engagements FAQs*](/v1/docs/in-app-engagements-faqs) - [*Audience Selection (Engagements)*](/v1/docs/audience-selection-engagements) - [*Accounts and Audience Explorer*](/v1/docs/audience-explorer#audience-explorer) | *Net Promoter®, NPS®, NPS Prism®, and the NPS-related emoticons are registered trademarks of Bain & Company, Inc., NICE Systems, Inc., and Fred Reichheld. Net Promoter ScoreSM and Net Promoter SystemSM are service marks of Bain & Company, Inc., NICE Systems, Inc., and Fred Reichheld.* | | --- |