Creating segmentations


A segmentation is a group of customers who share the same features. You can use it as a target for your marketing activities.

As features, you can use customer attributes (such as name, location, birthdate, marketing agreements), aggregates, expressions, and other segmentations you created in your workspace.

In the process of creating a segmentation, you can define sub-groups known as segments. Each of segments can have their own specific conditions. By using multiple segments, you can categorize your customers based on various factors such as their average order value, the product categories they browse, or how frequently they make purchases.

Additionally, you can use funnels in segmentations to group customers whose activity history (their actions and your actions towards them, such as sending messages) includes specific events. You can then filter those events by their parameters.

Important: Segmentation, expression, and aggregate definitions are cached for 20 minutes after a node with the analysis is activated in a journey.
When another journey in the Automation requests a result of the same analysis in that period, the cached definition is used to calculate the results. This means that if you edit a segmentation, aggregate, or expression used in an Automation, it takes 20 minutes for the new version to start being used in journeys.
This includes definitions of segmentations, expressions, and aggregates nested in other analyses and used in Inserts.

Cloning segmentations

If you use several workspaces and you would like to copy segmentations between them, you can use the cloning feature to do so.

Requirements


You need to have customers in the database. You can:

Creating segmentations


  1. Go to Analytics icon Analytics > Segmentations > Create new.
  2. Enter the name of the segmentation.
  3. If you want your segmentation to be visible in the profile card of the customers who belong to this segmentation, enable the Show in Profiles option on.
  4. Create a segmentation as described further in this article.
  5. To complete the process, click the Save button. When you save the segmentation, you can find it on the list of segmentations under the given name.

Defining conditions

The first step is to define conditions that customers must meet in order to be included in a segment. These conditions can be based on customer attributes (Has property) or events and their parameters (Perfomed action).
If you add multiple conditions, you can specify the relationship between them as AND or OR. Additionally, event-based conditions can be limited to a specific time period.

Selecting an activity

  1. To select a customer activity or an activity towards a customer, click Add condition.
  2. From the Events tab, select an event.
    1. To set additional conditions for the event, click + where and from the dropdown list select an event parameter you want to filter by.
    2. Use the logical operators to set the type of condition.
    3. Define the value that will be used as the filter according to the logical operator.
    4. By default, the system analyzes the last 30 days, but you can define your own time period by clicking the calendar icon in the lower right corner in the condition.
    Including only customers who visited website whose URL contain a specific word
    Segmentation of customers who in last 30 days visited website whose URL contain a a `trousers` word

Selecting a profile attribute

You can use the following attributes of a profile:

  • Tags - You can organize your customers according to the tags you assigned them.
  • Attributes - This group of customer features can be found in the profile card. You can use basic customer information such as first name, email, gender, marketing agreement, size, favorite color, and organize your customers according to values of these attributes.
  • Segmentations - You can use other segmentations in the conditions, for example, you can exclude customers who belong to a particular segmentation.
  • Aggregates - Aggregates are calculated in the context of individual customers, using them in segmentation conditions lets you analyze values of non-standard and dynamic customer attributes (such as the quantity of purchased items or a list of the customer’s last 10 visited product categories), enabling you to categorize customers based on your specific business requirements.
    Tip: You can read Customers’ preferred communication channel to understand how aggregates have been used in a segmentation to organize customers by their preferred communication channel.
  • Expressions - Similarly to aggregates, expressions are calculated in the context of individual customers. Using them in segmentation conditions lets you analyze values of non-standard and dynamic customer attributes. You can also use event expressions for advanced analysis of events (for example, you can create a custom parameter for a product.buy event that contains the total volume of purchased item, so you can use this custom parameter to organize customers according to the volume of items they purchased).
  • Specials - This catalog contain the Client_ID parameter which is a unique customer identifier.
    Tip: You can read Segment creation based on quantiles use case to understand how you can use Client_ID parameter in a segmentation.
  1. To select an attribute to be used as a condition, click Add condition.
  2. Select the Profiles tab.
  3. From the list, select a category of attributes from which you want to select a value.
  4. Use the search box to find the attribute.
  5. Use the logical operators to set the type of condition.
  6. Define the value that will be used as the filter according to the logical operator.
    Including customers who agreed to receive newsletters
    Including customers who agreed to receive newsletters

Combining conditions

You can add more conditions and mix conditions based on attributes and events. The relationship between the conditions can be expressed by AND or OR logical operators. The more conditions you add, the more complicated it gets, read through The logic of segmentation to find out how the conditions are interpreted, especially if there are more than two.

A segmentation of customers who has agreed to receive newsletters and those who in the last 30 days visited your website that contained a word `trousers` in URL
A segmentation of customers who have agreed to receive newsletters and those who in the last 30 days visited your website that contained a word `trousers` in URL

Defining funnels within conditions

While defining a condition or conditions based on an event, instead of that one event, you can define a sequence of steps (events) a customer must go through to meet the conditions. The order of these steps is crucial, with the top event representing the first step in the funnel.
Optionally, you can set a time limit during which these steps must be completed in the specified order.

  1. After adding Performed action condition, add a next step to the condition by clicking and then….
  2. From the dropdown list, select an event. Optionally, you can define additional conditions for the event’s parameters.
  3. To impose the time limit on performing these steps:
    1. Next to the calendar, click the clock icon.
    2. Define the time within which a customer must perform these steps to be included in the segmentation. Time is counted from the occurrence of the first step in the sequence.
Including customers who visited website whose URL contained a word `trousers` and purchased any item in last 30 days
Including customers who visited website whose URL contained a word `trousers` and purchased any item in last 30 days

Excluding

By default, when creating a segmentation, the conditions you define include customers if they have certain attributes or have performed specific actions. However, you can reverse the logic and exclude those customers instead.

You can do it in the following ways:

  • In the Find all profiles matching this condition sentence, click the matching word to change it to not matching.

    A segmentation includes customers whose first name doesn't contain `A` letter
    A segmentation includes customers whose first name doesn't contain `A` letter
  • Click Has in Has property to change it to Does not have property

    A segmentation includes customers whose first name doesn't contain `A` letter
    A segmentation includes customers whose first name doesn't contain `A` letter

Adding segments

When creating a segmentation, you can create sub-groups called segments. Each segment can have its own set of conditions. By using multiple segments, you can divide your customers based on factors such as their average order value, the product categories they have visited, or how frequently they make purchases.

  1. You can create another segment by clicking the Add segment button.
  2. Repeat the steps described in Defining conditions and/or Defining funnels within conditions.
Segments in segmentation
The section marked with a black rectangle contains segments in a segmentation

Multi match

By default, when a segmentation consists of more than one segment, customers are only included in the first segment whose conditions they match. This configuration is changeable by the Multi match option available in the preview of the segmentation results.

Important: Segmentations with multi-match enabled cannot be used for targeting and communication.

Multi match example

Let’s group customers according to the source of page visits to your website in the last 30 days. The following customers visited your website from the following sources:

Source of visit Mobile Desktop
John Doe Green checkmark Green checkmark
Anne Taylor Green checkmark Red checkmark
Sharon Smith Red checkmark Green checkmark

The conditions of the segmentation will contain three segments:

  1. Segment that includes customers who visited website from both mobile and desktop (Mobile and Desktop)
  2. Segment that includes customers who visited website from desktop (Desktop)
  3. Segment that includes who visited website from mobile (Mobile)
Note:

More details about this example are available in Check distribution of sources of traffic on a website.

You can also become familiar with use cases which uses multiple segments, below you can find several examples of many available in the use case library:

The results for the segmentation will be as follows:

  • disabled multi-match option: John Doe who visited your website both from desktop and mobile is included only in the segment which groups customers who visited the website from both device types. However, he is not included in segments that contain customers who visited website from only one device type, although he meets the requirements of the remaining two segments.
    Results for disabled multi-match option
    Results for disabled multi-match option
  • enabled multi-match option: John Doe is also included in segments that contain customers who visited the website from only one type of device.
    Results for enabled multi-match option
    Results for enabled multi-match option
😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker