Create and delete customer segments
Creating a customer segment is similar to building a cart price rule, except that the options include customer segment-specific attributes.
Customer Segments grid
Prerequisite: Enable customer segments
-
On the Admin sidebar, go to Stores > Settings > Configuration.
-
In the left panel, expand Customers and choose Customer Configuration.
-
Expand the Customer Segments section.
-
Verify that Enable Customer Segment Functionality is set to
Yes
. -
(Optional) To disable real-time validation for customer segments, set Real-time Check if Customer is Matched by Segment to
No
.When you disable real-time validation, customer segments are validated by a single combined condition SQL query. Disabling this function improves performance of segments validation if there are many customer segments in the system. However, the validation does not work with a split database or when there are no registered customers.
-
When complete, click Save Config.
Create a segment
The following steps use an example for creating a customer segment that targets female customers in Los Angeles.
Step 1: Add a customer segment
-
On the Admin sidebar, go to Customers > Segments.
-
In the upper-right corner, click Add Segment.
-
Enter a Segment Name that identifies the customer segment when working in the Admin.
-
Enter a brief Description that explains the purpose of the segment.
-
Set Assigned to Website to the website where the customer segment can be used.
-
Set the Status to Active or Inactive.
-
To identify the customer types that you want to use for applying the segment, set Apply to to one of the following:
Visitors and Registered Customers
- Includes all shoppers, regardless of whether they are logged in to an account.Registered Customers
- Includes only shoppers who are logged in to an account.Visitors
- Includes only shoppers who are not logged in to an account.
note tip TIP If you are creating a segment based on customer attributes stored in a customer account, it is a best practice to apply the segment to registered customers only. note note NOTE If a segment applies to Visitors and Registered Customers
, the Matched Customers displays onlyRegistered Customers
. This is the case even if visitors can be targeted based on conditions that apply to them. ForVisitors
only segments, noMatched Customers
tab is displayed. -
Click Save and Continue Edit.
After saving the segment General Properties, additional options become available in the left panel.