Basic operations and settings

Basic operations and settings

Segment execution conditions

  • Last updated:

Segment conditions let you filter customers based on customer information, purchase history, favorites, back-in-stock notifications, and engagement with email or LINE.

When using multiple conditions, combine AND and OR to define the audience.

  • This section describes the conditions under which segments are executed.
  • The product ID or customer ID is the number in the Shopify URL.

Customer

ItemDescription
Email addressCustomer email address
BirthdayCustomer birthday. Specify today, tomorrow, this month, a number of days from now, and other periods
NameCustomer name
First nameCustomer first name
Last nameCustomer last name
Phone numberCustomer phone number
TagsCustomer tags
AddressCustomer address
Marketing PermitsWhether email marketing is permitted
Email consent updated atShopify’s latest recorded email consent timestamp; filter by recent days, dates before or after a specified date, or whether a timestamp exists.
transaction permissionWhether transactional email is permitted
IDShopify customer ID
Order countCustomer order count
Total SalesCustomer total amount spent
Last Order DateDate and time of last order
Date and time of first orderDate and time of first order
With or without LINE linkageWhether LINE is linked
SegmentsCustomers included or not included in another segment
LanguageCustomer language setting
Email has hard bouncedCustomers suppressed because of an invalid address or another issue
Terms of service consent based on the latest version in the current settingsWhether the customer agreed to the latest published version of the terms of service
Customers who placed an order containing an order tagCustomers with order history that includes or excludes the specified Shopify order tags

When another segment is selected in a segment condition, the most recently calculated result might be used. For complex nested conditions, confirm that the result is as intended.

Customer: Email consent updated at

Email consent updated at is a customer condition that supports recent days, dates before or after a specified date, and whether a timestamp exists. The example below finds currently subscribed customers who consented within the last 30 days.

Filter by Shopify’s latest recorded email consent timestamp, rather than the customer creation date. This includes existing customers who recently subscribed and customers who resubscribed. The field is not a guaranteed first subscription date or a full subscription history.

1. Combine current subscription and consent date conditions

Location: Customer → Segment list → Edit the segment → Conditions

Select ① Accepts Marketing, set ② is true, then use ③ AND to combine it with ④ Customer → Email consent updated at. A date condition alone does not establish current permission to send.

Check: Confirm that both conditions are connected with AND.

1. Combine current subscription and consent date conditions
1. Combine current subscription and consent date conditions

2. Set the number of recent days

Location: The Email consent updated at condition

Review ① the guidance, choose Within the last N days, and enter ② 30. The period begins at midnight 29 calendar days before today in the store timezone and ends at calculation time. On November 9, it starts at midnight on October 11.

Check: Check the value and guidance. Customers with unknown or not yet imported timestamps do not match a positive date range condition.

2. Set the number of recent days
2. Set the number of recent days

3. Save the conditions

Location: Save at the bottom of the editor

Review the name, current subscription condition, and consent date condition, then click Save.

Check: Confirm the save succeeded. If an error appears, correct it before treating the changes as saved.

3. Save the conditions
3. Save the conditions

4. Verify the saved conditions and segment results

Location: The same segment’s editor and detail page

Reopen the editor and verify that ① is true, ② AND, and ③ 30 days were retained. After calculation completes, check the customer count, count calculation time, and matching customers.

Check: Reloading the page and recalculating the segment are separate actions. While synchronization or backfill is in progress, filters use timestamps already imported.

4. Verify the saved conditions and segment results
4. Verify the saved conditions and segment results

Routine synchronization of an unchanged subscription state does not replace the consent timestamp with the processing time. Unknown timestamps are not filled with customer creation or import dates. Our team performs the initial backfill for existing customers; store staff do not need to modify customer data.

Purchase history

ItemDescription
Customers who previously purchased the following productsCustomers who purchased products matching the selected product name, product tag, product ID, collection, or variant
Customers who previously purchased the following products as one-time purchasesCustomers who purchased the matching products as one-time purchases
Customers who previously purchased the following products through recurring subscriptionsCustomers who purchased the matching products through recurring subscriptions
Customers who have not previously purchased the following productsCustomers who have not purchased the selected products
Customers who have not previously purchased the following products as one-time purchasesCustomers who have not purchased the matching products as one-time purchases
Customers who have not previously purchased the following products through recurring subscriptionsCustomers who have not purchased the matching products through recurring subscriptions

Check purchase conditions after a refund

Segments and scenarios apply the same purchase rules to the specified product. Canceled, fully refunded, or deleted orders, and orders or line items with incomplete information, do not count as confirmed purchases. A fully refunded line item is excluded. A partially refunded line item still counts as purchased if at least one unit remains. Amount-only or shipping refunds that do not return any units leave the purchased quantity unchanged.

If a customer buys two units and gets one unit refunded, the remaining unit counts as purchased. If both units are refunded and there is no other qualifying purchase, the customer meets the condition for not having purchased that product.

While information about a partial refund is still syncing, the result may be pending if there is no other confirmed qualifying purchase. After syncing, recalculate the segment and check the corresponding scenario execution. Conditions for one-time purchases or recurring subscription purchases use the selected purchase type.

In the segment’s [Target conditions], choose ① a purchased condition or ② a not-purchased condition. Choose the corresponding option to filter one-time or recurring subscription purchases.

① Purchased condition, ② Not-purchased condition
① Purchased condition, ② Not-purchased condition

① Select a field such as the product name, and ② enter the value. Once the Shopify order or refund update has synced, select [Check audience size]. For a saved segment, recalculate it from its details to check which customers qualify.

① Field for specifying the product, ② Example product name
① Field for specifying the product, ② Example product name
①[対象人数を確認]をクリックする
①[対象人数を確認]をクリックする
②集計された人数と確認日時を確認する
②集計された人数と確認日時を確認する

Available conditions are product name, product tag, Shopify product ID, collection, product variant name, and Shopify variant ID.

Collection conditions support manual collections only. Automated collections cannot be selected.

Favorites

ItemDescription
Customers who have favorited the following productsCustomers who have favorited the selected products
Customers who have not favorited the following productsCustomers who have not favorited the selected products
Customers who added a favorite in the last N daysCustomers who added a favorite during the selected period
Customers who did not add a favorite in the last N daysCustomers who did not add a favorite during the selected period

Specify products by product name, product tag, Shopify product ID, product variant name, or Shopify variant ID.

Back-in-stock notifications

ItemDescription
Customers subscribed to back-in-stock notifications for the following productsCustomers subscribed to back-in-stock notifications for the selected products
Customers not subscribed to back-in-stock notifications for the following productsCustomers not subscribed to back-in-stock notifications for the selected products
Customers who subscribed to a back-in-stock notification in the last N daysCustomers who subscribed to a back-in-stock notification during the selected period
Customers who did not subscribe to a back-in-stock notification in the last N daysCustomers who did not subscribe to a back-in-stock notification during the selected period

Back-in-stock subscription status

When [Customers with the specified back-in-stock subscription] or [Customers without the specified back-in-stock subscription] is selected on the segment create or edit screen, use [Back-in-stock subscription status] to specify the notification delivery state.

ItemDescription
Unsent onlyIncludes subscriptions whose notification has not been sent yet (active). Existing segments without a specified status are also treated as this condition.
Sent onlyIncludes only subscriptions whose back-in-stock notification has been sent (sent).
Unsent and sentIncludes both unsent (active) and sent subscriptions (sent).

When conditions such as product name, product ID, and variant are combined, only customers whose product conditions and status match within the same back-in-stock subscription record are included.

Handling subscriptions from logged-out customers

Even if a customer subscribes while logged out, the subscription is associated with that customer when the registered email address or other details match an existing StoreCRM customer. A guest subscription with no corresponding StoreCRM customer is not included in customer segments.

Screen for selecting a back-in-stock subscription status in segment conditions
Select Unsent only, Sent only, or Unsent and sent for the back-in-stock subscription status.

Email / LINE engagement

ItemDescription
Customers who opened an email in the last N daysCustomers who opened an email during the selected period
Customers who did not open an email in the last N daysCustomers who did not open an email during the selected period
Customers who clicked an email in the last N daysCustomers who clicked a link in an email during the selected period
Customers who did not click an email in the last N daysCustomers who did not click a link in an email during the selected period
Customers who opened or clicked an email in the last N daysCustomers with an open or click engagement
Customers with no email opens or clicks in the last N daysCustomers with no open or click engagement
Customers who clicked LINE in the last N daysCustomers who clicked a link in a LINE message
Customers who did not click LINE in the last N daysCustomers who did not click a link in a LINE message
Customers who engaged with email or LINE in the last N daysCustomers who engaged with email or LINE
Customers with no email or LINE engagement in the last N daysCustomers with no engagement on either email or LINE

Select the scope from all sends, a campaign, an automation, an email, or a LINE message.

Behavioral data such as email or LINE opens and clicks, favorite additions, and back-in-stock subscriptions can take up to approximately one hour to appear in segment calculations.

Behavioral data update notice on the segment conditions screen
Notice about behavioral data update timing

To verify using recent activity, wait at least one hour before creating or recalculating the segment. This mainly applies to email or LINE engagement, favorites added in the last N days, and back-in-stock subscriptions in the last N days.

Browsing behavior

[Viewed a product] uses browsing history as a condition, while [Left after viewing a product] uses views that did not lead to a purchase. Set a period from 1 to 90 days and a minimum count from 1 to 10,000.

Select the scope from [All products], [Product], [Collection], or [Product type]. Browsing data can take up to approximately 60 minutes to aggregate. If target candidates cannot be retrieved or browsing tracking is unavailable, the condition cannot be saved; check product synchronization and storefront browsing tracking.

Segment condition for specifying browsing period, minimum count, and scope

Metafields and connected apps

If customer metafields are configured for the store, "Metafield: XX" appears as a condition.

Metafields from supported apps such as easyPoints can also be used as conditions. Available items depend on store settings and integration status.

Logic

ItemDescription
Go to YES by percentage (1–99%)Split customers into YES and NO groups using the specified percentage. Use this for A/B tests.

Select customers by percentage

In segment creation or editing, select Logic (A/B test etc.) → Select customers by percentage and enter an integer from 1 to 99. Presets of 95, 90, 80, and 50 are available. The unselected share is also shown. After saving and calculation, check the count and customer list.

This is a customer selection condition, separate from delivery and control assignments inside a scenario. Combining segment and scenario percentages further reduces the audience. Small populations will not exactly match the requested ratio.

Related articles

Related articles
Create a browsing behavior segment

TOP
en_USEnglish