Skip to main content

Advanced Segmentation

In addition to the Basic segmentation, the Advanced Segmentation option allows you to filter with multiple nested queries and JSON code segmentation.

You can use this option to create more refined criteria as compared to Basic Segmentation. For example, in addition to adding multiple nested queries, you can apply multiple logical operators and can create groups (either from the screen or using the JSON code).

For example, if a tea company with an eCommerce site wants to understand their older, working professional customers in Canada and France. They could filter customers from:

  • Canada above the age of 35 but younger than 65
  • America above the age of 35 but younger than 62

Considering that the retirement age in Canada and America is 65 and 62 respectively.

The following explains how you can create the Advanced Segmentation:

Step 1: Log in to your Admin Console account, navigate to Profile Management > Customer Segmentation and select Advanced Segmentation from the left navigation panel.

The following screen will appear:

Step 2: Select the Designer tab to design a query using the logical operators and conditions options available on the screen, or select the Code tab to write the login in the JSON code.

The following screen displays the query built for the example explained at the beginning of this section in the Designer tab:

Similarly, in the Code tab, you can write the logic or view the JSON code for the above-designed query.

Step 3: To add a new condition, click the + icon, and add a new group, click the **Add Group ** button. You can add multiple conditions and groups using these options.

Step 4: Once you are done with adding the conditions and groups, click the filter button to view the results. The following screen displays the created conditions and groups, and their result:

To get the data of resultant customers, click the Export button from the above screen. The following pop-up will appear with the filter query as already applied in the advanced segment section:

Configure the data export as explained in this document and get the resultant customer data in CSV or JSON format.

Save Segmentation: To save the created segment for future, click the Save Segment button as highlighted in the below screen:

Save Segmentation

The following pop-up will appear:

Save Segmentation

Enter the Segment Name in the textbox and click the Save button. You can view the saved segment, as explained in the Save Segment section.

Example :

Use-Case 1: If you want to get the email profiles that do not contain the registration source, then you can use the below query:

Use-case 2: If you want get the latest updated profiles, then you can use the segmentation query as below: