Customer Segment Filters
Use this reference guide to understand the filter names, operators, and values that are used to build customer segments that are based on the default Shopify filters.
On this Page
Abandoned checkout date
abandoned_checkout_date
Includes customers by the date that they last abandoned their cart.
Operators | Exactly on date: |
Values | |
Format | Absolute date:
The named dates are default values and can't be changed. For custom dates, use a date offset |
Example | Include customers who last abandoned their cart within the last week: Include customers who last abandoned their cart within the last eight months: |
Notes | Date values are based on entire days and depend on which time zone your store is in. |
Amount spent
amount_spent
Includes customers based on how much money they have spent in your store.
Operators | Is equal to: |
Values | |
Format | Number range: |
Example | Include customers who have spent 1 to 999.99 in your store:
|
Notes |
|
Cities
customer_cities
Includes customers who have an address in the specified city. Customers who have multiple addresses might be included in more than one customer segment that uses this filter.
Operators | Contains this exact city: |
Values | |
Format |
|
Example | Include customers who have an address in New York City:
|
Notes | To find a city, you can start typing the name of the city, and then select the appropriate value from the list that is displayed. |
Countries or regions
customer_countries
Includes customers who have an address in the specified country or region. Customers who have multiple addresses might be included in more than one customer segment that uses this filter.
Operators | Contains this exact location: |
Values | Use the ISO two-letter country code. |
Format | |
Example | Include customers who have an address in the United States:
|
Notes | To find a country, you can start typing the name of the country, and then select the appropriate value from the list that is displayed. |
Customer added date
customer_added_date
Includes customers based on the date that they were added to your store.
Operators | Exactly on date: |
Values | |
Format | Absolute date:
The named dates are default values and can't be changed. For custom dates, use a date offset. |
Example | Include customers who were added within the last week:
Include customers who were added within the last eight months:
Include customers who were added during a specific date range:
|
Notes | Date values are based on entire days and depend on which time zone your store is in. |
Customer email domain
customer_email_domain
Includes customers whose email address belongs to the specified domain. The domain name is the part of the email address after the @
symbol, for example, gmail.com
.
Operators | Is equal to: |
Values | The following domain names are offered as suggestions. You're not limited to these domain names. You can manually enter any other valid domain names. gmail.com: |
Format | |
Example | Include customers whose email domain is shopify.com:
|
Notes |
Customer language
customer_language
Includes customers based on the language that the customer uses to communicate with your store.
Operators | Is equal to: |
Values | Use the ISO 639-1 two-letter language code. |
Format | The following values are examples of some common ISO language codes. Your data isn't limited to these language codes. You can manually enter any other valid language codes, but the values that are offered to you as suggested values in the editor are the only ones that are available in your customer data. English: |
Example | Include customers who communicate with your store in English:
Exclude customers who communicate with your store in Canadian English:
|
Notes |
|
Customer tags
customer_tags
Includes customers based on their tags.
Operators | Contains this exact tag: |
Values | The name of a customer tag. |
Format | |
Example | Include customers who have the GoldStatus tag:
|
Notes | Tags are not case sensitive. |
Email subscription status
email_subscription_status
Includes customers based on whether they are subscribed to your marketing email.
Operators | Is equal to: |
Values | Not subscribed: |
Format | |
Example | Include customers who have subscribed to your email marketing:
|
Notes |
Last order date
last_order_date
Includes customers who placed their last order on the date specified.
Operators | Exactly on date: |
Values | |
Format | Absolute date:
The named dates are default values and can't be changed. For custom dates, use a date offset. |
Example | Include customers whose last order was placed since last week:
Include customers whose last order was placed since eight months ago:
|
Notes | Date values are based on entire days and depend on which time zone your store is in. |
Number of orders
number_of_orders
Includes customers based on the number of orders that they have placed in your store.
Operators | Is equal to: |
Values | The value that you enter must be a whole number. |
Format | Number range: |
Example | Include customers who have placed more than 10 orders:
|
Notes |
|
Predicted spend tier
predicted_spend_tier
Includes customers who are within the specified predicted spend tier.
This filter is only available if your store made more than 100 sales.
Learn more about predicted spend tier.
Operators | Is equal to: |
Values |
|
Format | |
Example | Include customers who are in the HIGH tier:
|
Notes |
Product subscription status
product_subscription_status
Includes customers who have the specified product subscription status.
This filter is only available if you use a subscription app.
Operators | Is equal to: |
Values | Active: |
Format | |
Example | Include customers who have an active product subscription:
|
Notes |
Products purchased
products_purchased()
Includes customers who purchased the specified product. In addition, you can include customers who bought the product during a specified date range.
Operators | Contains this exact product ID: |
Values | Product ID |
Format | Supported time ranges: All time: Supported date formats: Absolute date:
The named dates are default values and can't be changed. For custom dates, use a date offset. |
Example | Since January 1, 2022 until today:
In date ranges, the order of the before and after parameters doesn't matter. You can express between January 1, 2022 and June 1, 2022 (inclusive) in either of the following ways: Between January 1, 2022 and June 1, 2022 (inclusive):
|
Notes |
|
States or provinces
customer_regions
Includes customers who have an address in the specified region within a country. Customers who have multiple addresses might be included in more than one customer segment that uses this filter.
Operators | Contains this exact location: |
Values | Use the ISO country code with the ISO 3166-2 subdivision code. |
Format | |
Example | Include customers who have an address in New York State:
|
Notes | To find a region, you can start typing the name of the region, and then select the appropriate value from the list that is displayed. |
Last updated