Skip to content

Segment attribute reference

This page lists every attribute you can use in the segment editor’s WHERE clause. For the grammar itself (groups, AND/OR, quoting, parentheses), see the segment query language reference. For a walkthrough of building and using segments, see Customers & segments.

How to read this page

Each attribute has a type, and the type decides which operators it accepts. Rather than repeating the same list on every row, the tables below name one of these operator sets:

SetOperators
String=, !=, CONTAINS, NOT CONTAINS, STARTS WITH, ENDS WITH, IN (...), NOT IN (...), IS NULL, IS NOT NULL
Enum=, !=, IN (...), NOT IN (...), IS NULL, IS NOT NULL
Number=, !=, >, >=, <, <=, BETWEEN ... AND ..., IS NULL, IS NOT NULL
MoneySame as Number. Values are major currency units: amount_spent > 500 means more than ₹500 (or $500, and so on)
Date=, !=, <, >, <=, >=, BETWEEN ... AND ..., IN LAST n DAYS, NOT IN LAST n DAYS, IN NEXT n DAYS, IS NULL, IS NOT NULL (units: DAYS, WEEKS, MONTHS, YEARS)
Recurring date=, BETWEEN, IN LAST, NOT IN LAST, IN NEXT, IN MONTH May, ON May 24, IS NULL, IS NOT NULL
Boolean= true, = false, !=, IS NULL, IS NOT NULL
TagCONTAINS 'x', NOT CONTAINS 'x', CONTAINS ALL (...), CONTAINS ANY (...), IS NULL, IS NOT NULL
ID=, !=, IN (...), NOT IN (...), IS NULL, IS NOT NULL. Values are IDs, written unquoted
CategorySame operator keys as ID, but subtree semantics (see taxonomy categories)
ComplexMATCHES (...), NOT_MATCHES (...), IS NULL, IS NOT NULL (see below)

List operators (IN, NOT IN, CONTAINS ALL, CONTAINS ANY) accept up to 100 values per condition. Enum values match case-insensitively; the tables list the canonical spellings.

Dates

Date values can be written as:

  • an absolute date - 2026-05-25 (a datetime like 2026-05-25T10:30:00Z also works on datetime attributes)
  • a named day - today, yesterday, tomorrow
  • an offset from today - -30d, -4w, -6m, -1y, +7d (days, weeks, months, years)
  • a duration - IN LAST 30 DAYS, NOT IN LAST 6 MONTHS, IN NEXT 2 WEEKS

Recurring-date attributes (anniversaries, birthdays) additionally support IN MONTH May and ON May 24, which match every year.

Complex attributes and MATCHES

Complex attributes (orders_placed, products_purchased, storefront.product_viewed, and so on) represent a set of records per customer - orders, order lines, events. You query them with MATCHES:

orders_placed MATCHES (count >= 3, sum_amount > 10000)
  • Sub-conditions are separated by commas, which mean AND.
  • Record-level subfields (date, channel, sku, …) filter which records count. Aggregate subfields (count, sum_amount, avg_rating, …) are computed over the records that pass those filters.
  • MATCHES () with no sub-conditions means “has at least one record”.
  • NOT_MATCHES (...) means “has no record matching these sub-conditions”.
  • IS NULL on the parent means the customer has never had such a record (never placed an order, never abandoned a checkout); IS NOT NULL means they have at least one, ever.

Subfields are only valid inside their parent’s MATCHES (...) - you can’t write orders_placed.count at the top level.

Taxonomy categories

The category attributes (products_purchased.category, storefront.product_viewed.category) take a product taxonomy category key such as aa-1-13. Matching is hierarchical: a condition on a category also matches every descendant category, so category = 'aa-1' (Clothing) matches products in any clothing subcategory. IS NULL matches uncategorized products.

Customer profile

Basic identity, account, and lifecycle facts about the customer record.

AttributeTypeOperatorsNotes
customer.emailtextStringCustomer email address.
customer.phonetextStringCustomer phone number.
customer.first_nametextString
customer.last_nametextString
customer_account_statusenumEnumENABLED, DISABLED, INVITED, DECLINED.
customer_added_datedateDateDate the customer record was created.
customer.email_verified_atdateDateEmpty until the email is verified.
customer.phone_verified_atdateDateEmpty until the phone is verified.
customer_email_domaintextStringDomain part of the email, e.g. gmail.com.
customer_tagstag listTagTags on the customer profile.
customer.tax_exemptbooleanBoolean
customer_languagetextStringPreferred language/locale.
customer.login_channelenumEnumemail, sms.
customer.last_login_atdatetimeDate
customer.is_guestbooleanBooleanTrue when the customer has no verified email or phone.
customer.has_verified_emailbooleanBoolean
customer.has_verified_phonebooleanBoolean
customer.account_anniversaryrecurring dateRecurring dateYearly anniversary of the signup date.
customer.first_order_anniversaryrecurring dateRecurring dateYearly anniversary of the first order.
customer.birthdayrecurring dateRecurring dateRecurring month/day, evaluated in the store timezone.
customer.is_walkinbooleanBooleanPOS walk-in record with no contact details. Sellerlane-only.
customer_tags CONTAINS 'vip' AND customer.has_verified_email = true
AND customer.birthday IN NEXT 7 DAYS

Location

Location attributes match against any of the customer’s saved addresses. For radius targeting, see Geo distance.

AttributeTypeOperatorsNotes
customer_countriestextStringCountries/regions across the customer’s addresses.
customer_regionstextStringStates/provinces across the customer’s addresses.
customer_citiestextStringCities across the customer’s addresses.
customer.postal_codetextStringPostal codes across the customer’s addresses.
customer_countries = 'India' AND customer_cities IN ('Mumbai', 'Pune')

Spending & order stats

Lifetime aggregates over the customer’s order history. Money values are major currency units.

AttributeTypeOperatorsNotes
amount_spentmoneyMoneyCustomer-profile spend across paid-ish, uncanceled orders after raw payment refunds. Includes tax, shipping, and money paid to purchase a gift card; it is not analytics Total sales.
number_of_ordersnumberNumberCount of the same paid-ish, uncanceled, non-test customer-profile orders.
average_order_valuemoneyMoneyAverage customer-profile spend per paid order (amount_spent ÷ number_of_orders). Despite the stable query key, this is not the analytics Average order value metric.
first_order_datedateDateEmpty for customers who have never ordered.
last_order_datedateDateEmpty for customers who have never ordered.
amount_spent > 500 AND number_of_orders >= 3
AND last_order_date NOT IN LAST 90 DAYS

The editor labels average_order_value as Average spend per paid order to avoid confusing it with analytics AOV. Analytics AOV is order-time merchandise after discounts divided by eligible non-gift-card orders and deliberately excludes tax, shipping, gift-card issuance, and later refunds. See Financial semantics.

Predictions & RFM

Recency/frequency/monetary scoring from the latest analytics snapshot, plus spend predictions. The three prediction attributes only appear in the editor once your store has more than 100 qualifying orders and a generated prediction snapshot. RFM is lifetime-scoped: chronology uses eligible order placement, while monetary value uses event-net total sales through the snapshot. See RFM and actual lifetime value.

AttributeTypeOperatorsNotes
rfm_groupenumEnumDORMANT, AT_RISK, PREVIOUSLY_LOYAL, NEEDS_ATTENTION, ALMOST_LOST, LOYAL, PROMISING, ACTIVE, NEW, CHAMPIONS, PROSPECTS.
rfm.recency_daysnumberNumberStore-local days since the latest eligible order was placed.
rfm.frequencynumberNumberLifetime eligible orders placed through the snapshot.
rfm.monetarymoneyMoneyLifetime event-net total sales through the snapshot, floored at zero per customer.
rfm.r_scorenumberNumberRecency score.
rfm.f_scorenumberNumberFrequency score.
rfm.m_scorenumberNumberMonetary score.
rfm.fm_scorenumberNumberCombined frequency-monetary score.
rfm.rfm_scoretextStringCombined score string, e.g. 543.
rfm.first_order_datedateDateFirst order date in the snapshot.
rfm.last_order_datedateDateLast order date in the snapshot.
predicted_spend_tierenumEnumHIGH, MEDIUM, LOW.
predicted_ltvmoneyMoneyPredicted lifetime value. Sellerlane-only.
prediction_confidencenumberNumberModel confidence, 0 to 1. Sellerlane-only.
rfm_group IN ('CHAMPIONS', 'LOYAL') OR predicted_spend_tier = 'HIGH'

Email marketing consent and tracking preferences. See the consent guide for what each state means.

AttributeTypeOperatorsNotes
email_subscription_statusenumEnumSUBSCRIBED, UNSUBSCRIBED, NOT_SUBSCRIBED, PENDING, INVALID, REDACTED.
customer.email_can_receive_marketingbooleanBooleanThe effective “may I email this person” flag.
customer.email_open_tracking_allowedbooleanBoolean
customer.email_click_tracking_allowedbooleanBoolean
customer.marketing_consent_updated_atdatetimeDateWhen consent last changed.
email_subscription_status = 'SUBSCRIBED'
AND customer.marketing_consent_updated_at > -30d

Orders placed

orders_placed is a complex attribute over the customer’s orders. Use MATCHES with the subfields below; orders_placed IS NULL means the customer has never placed an order.

SubfieldTypeOperatorsNotes
datedateDateOrder creation date.
paid_datedateDate
canceled_datedateDate
closed_datedateDate
countnumberNumberNumber of matched orders.
amountmoneyMoneyA single matched order’s total.
sum_amountmoneyMoneySum of matched order totals.
sum_net_salesmoneyMoney
sum_gross_salesmoneyMoney
sum_discountmoneyMoney
sum_refundmoneyMoney
average_order_amountmoneyMoneyAverage across matched orders.
min_order_amountmoneyMoney
max_order_amountmoneyMoney
location_idIDIDPOS/store location of the order.
channelenumEnumonline, pos.
financial_statusenumEnumpending, authorized, partially_paid, paid, partially_refunded, refunded, voided.
fulfillment_statusenumEnumunfulfilled, partially_fulfilled, fulfilled.
lifecycle_statusenumEnumopen, closed, canceled.
shipping_countryenumEnumISO country code, free input.
shipping_regiontextString
shipping_citytextString
billing_countryenumEnumISO country code, free input.
billing_regiontextString
billing_citytextString
used_store_creditbooleanBoolean
store_credit_amountmoneyMoneyStore credit applied to the order.
used_gift_cardbooleanBoolean
gift_card_amountmoneyMoneyGift card amount applied to the order.
is_first_orderbooleanBooleanTrue on the customer’s first order.
customer_order_indexnumberNumberOrder sequence number for the customer (1 = first).
payment_method_kindenumEnumgateway, manual. Sellerlane-only.
gateway_providerenumEnumstripe, razorpay, payu, adyen, xendit, paystack, mercadopago, tap, twoctwop, flutterwave, airwallex, cashfree. Sellerlane-only.
payment_amount_typeenumEnumPayment rule applied at checkout: full, percentage, fixed (deposits), cod. Sellerlane-only.
is_codbooleanBooleanCash on delivery. Sellerlane-only.
has_discountbooleanBooleanAny discount applied.
discount_codetextStringDiscount code used on the order.
has_refundbooleanBoolean
has_returnbooleanBooleanReturned units or return value exist.
units_returnednumberNumber
metafield.<namespace>.<key>metafieldBy value typeOrder metafield condition - see Custom fields.
orders_placed MATCHES (count >= 3, sum_amount > 10000, date IN LAST 6 MONTHS)
AND orders_placed NOT_MATCHES (is_cod = true, has_return = true)

Products purchased

Three complex attributes cover the line-item view of order history: products_purchased (by product), ordered_variant (by variant), and ordered_collection (by collection membership of purchased products). products_purchased IS NULL means the customer has never bought anything.

products_purchased

SubfieldTypeOperatorsNotes
datedateDateOrder date of the matched line.
countnumberNumberNumber of matched order lines.
quantitynumberNumberQuantity on a single matched line.
sum_quantitynumberNumberTotal quantity across matched lines.
sum_line_amountmoneyMoneyTotal net sales from matched lines.
idIDIDThe purchased product.
variant_idIDIDThe purchased variant.
skutextString
vendortextString
product_typetextStringThe merchant-defined product type label.
tagtag listTagProduct tags at order time.
categorycategoryCategoryTaxonomy category, includes all subcategories.
product_kindenumEnumPlatform kind: physical, digital, gift_card, event, bundle. Sellerlane-only.
brand_idIDID
metafield.<namespace>.<key>metafieldBy value typeProduct metafield condition.

ordered_variant

SubfieldTypeOperatorsNotes
datedateDate
countnumberNumberNumber of matched lines.
quantitynumberNumberTotal purchased quantity.
sum_line_amountmoneyMoney
variant_idIDID
product_idIDIDParent product.
skutextString
metafield.<namespace>.<key>metafieldBy value typeVariant metafield condition.

ordered_collection

SubfieldTypeOperatorsNotes
datedateDate
countnumberNumberMatched lines whose product is in the collection.
collection_idIDID
metafield.<namespace>.<key>metafieldBy value typeCollection metafield condition.
products_purchased MATCHES (category = 'aa-1-13', date IN LAST 90 DAYS)
OR ordered_variant MATCHES (sku STARTS WITH 'TSHIRT-')

Abandoned checkout

One scalar plus the abandoned_checkout complex attribute over the customer’s abandoned carts/checkouts.

AttributeTypeOperatorsNotes
abandoned_checkout_datedateDateDate of the customer’s abandoned checkout.
abandoned_checkoutcomplexComplexSubfields below.
SubfieldTypeOperatorsNotes
datedateDateWhen the cart was abandoned.
countnumberNumberNumber of abandoned checkouts.
amountmoneyMoneyCart total.
line_countnumberNumberLines in the cart.
item_quantitynumberNumberItems in the cart.
channelenumEnumonline, pos.
recoveredbooleanBooleanWhether the checkout later converted to an order.
recovered_datedateDate
used_store_creditbooleanBoolean
store_credit_amountmoneyMoney
used_gift_cardbooleanBoolean
gift_card_amountmoneyMoney
abandoned_checkout MATCHES (date IN LAST 7 DAYS, recovered = false, amount > 1000)

Store credit

store_credit_accounts matches on the customer’s store credit account state. store_credit_accounts IS NULL means the customer has never had a store credit account.

SubfieldTypeOperatorsNotes
balancemoneyMoneyCurrent balance.
currencyenumEnumISO currency code, free input.
expiring_amountmoneyMoneyPortion of the balance that has an expiry date.
next_expiry_datedateDate
last_credit_datedateDateLast time credit was issued.
last_debit_datedateDateLast time credit was spent.
issued_amountmoneyMoneyLifetime credit issued.
redeemed_amountmoneyMoneyLifetime credit redeemed.
expired_amountmoneyMoneyLifetime credit expired.
ledger_countnumberNumberLedger entries on the account.
store_credit_accounts MATCHES (balance > 0, next_expiry_date IN NEXT 30 DAYS)

Gift cards

Sellerlane-only. gift_cards matches on gift cards assigned to the customer (cards they hold and can spend), plus one purchase-side boolean.

AttributeTypeOperatorsNotes
gift_cardscomplexComplexSubfields below.
customer.has_purchased_gift_cardbooleanBooleanThe customer has bought a gift card, for themselves or as a gift.
SubfieldTypeOperatorsNotes
balancemoneyMoneyRemaining spendable balance across active, unexpired cards (net of checkout reservations).
countnumberNumberNumber of matched cards.
stateenumEnumactive, disabled, expired.
expiry_datedateDateIN NEXT 30 DAYS makes an expiring-soon winback.
last_used_datedateDateLast redemption against an order.
gift_cards MATCHES (state = 'active', expiry_date IN NEXT 30 DAYS)

Loyalty

Sellerlane-only. loyalty matches on the customer’s loyalty account. loyalty IS NULL means the customer has never had a loyalty account.

SubfieldTypeOperatorsNotes
points_balancenumberNumberCurrent redeemable points.
tierenumEnumYour store’s tier names (the editor offers your active tiers).
statusenumEnumenrolled, paused, excluded, merged.
enrolled_atdateDate
last_earned_atdateDate
last_redeemed_atdateDate
lifetime_earned_pointsnumberNumber
lifetime_redeemed_pointsnumberNumber
next_expiration_datedateDateNext points expiry - good for expiring-points winbacks.
loyalty MATCHES (status = 'enrolled', points_balance >= 500,
next_expiration_date IN NEXT 14 DAYS)

Reviews

Sellerlane-only. product_review matches on reviews the customer has submitted.

SubfieldTypeOperatorsNotes
datedateDateWhen the review was submitted.
countnumberNumberNumber of matched reviews.
ratingnumberNumberStar rating on a matched review (1-5).
avg_ratingnumberNumberAverage rating across matched reviews.
verifiedbooleanBooleanVerified purchase.
has_photobooleanBooleanReview includes a visible photo.
has_videobooleanBooleanReview includes a visible video.
product_idIDIDThe reviewed product.
product_review MATCHES (rating >= 4, has_photo = true, date IN LAST 12 MONTHS)

Referrals

Sellerlane-only. referrals_made matches referrals where the customer is the referrer; customer.was_referred covers the other direction.

AttributeTypeOperatorsNotes
referrals_madecomplexComplexSubfields below.
customer.was_referredbooleanBooleanThe customer joined through someone else’s referral.
SubfieldTypeOperatorsNotes
datedateDateWhen the referral was attributed.
countnumberNumberNumber of matched referrals.
statusenumEnumpending, qualified, rewarded, disqualified.
referrals_made MATCHES (status = 'rewarded') AND customer.was_referred = false

Event tickets

Sellerlane-only. event_tickets matches ticket reservations from the customer’s orders for event products.

SubfieldTypeOperatorsNotes
start_datedateDateEvent start. IN NEXT finds upcoming attendees; IN LAST is a past-attendance proxy.
product_idIDIDThe event product.
quantitynumberNumberTickets on a matched reservation.
canceledbooleanBooleanReservation was canceled.
countnumberNumberNumber of matched reservations.
event_tickets MATCHES (start_date IN NEXT 30 DAYS, canceled = false)

Back-in-stock requests

Sellerlane-only. stock_notifications matches the customer’s back-in-stock requests. Only signed-in requests can match - guest email-only requests have no customer record.

SubfieldTypeOperatorsNotes
product_idIDIDProduct the customer is waiting on.
variant_idIDIDVariant the customer is waiting on.
statusenumEnumactive, notified, canceled, expired.
datedateDateWhen the request was made.
countnumberNumberNumber of matched requests.
stock_notifications MATCHES (status = 'active', date IN LAST 30 DAYS)

Self-service requests

Sellerlane-only. self_service_requests matches the customer’s buyer self-service requests (cancellations, returns, redeliveries, and so on).

SubfieldTypeOperatorsNotes
typeenumEnumorder_cancel, return, event_reschedule, event_cancel, digital_redeliver, digital_redownload, gift_card_resend.
statusenumEnumrequested, approved, in_transit, received, completed, declined, withdrawn, expired.
datedateDateWhen the request was submitted.
countnumberNumberNumber of matched requests.
self_service_requests MATCHES (type = 'return', status = 'completed',
date IN LAST 6 MONTHS)

Email engagement

Eight complex attributes, one per email event. All share the same subfields; shopify_email.clicked adds two click-specific ones. IS NULL on any of them means the event has never happened for the customer.

AttributeMeaning
shopify_email.sentA marketing email was sent.
shopify_email.deliveredAn email was delivered.
shopify_email.openedAn email was opened.
shopify_email.clickedA link in an email was clicked.
shopify_email.bouncedAn email bounced.
shopify_email.failedAn email failed to send.
shopify_email.unsubscribedThe customer unsubscribed from an email.
shopify_email.marked_as_spamThe customer reported an email as spam.
SubfieldTypeOperatorsNotes
datedateDateWhen the event happened.
countnumberNumberNumber of matched events.
campaign_idIDIDThe campaign.
message_idIDIDThe individual message.
activity_idIDIDThe activity: a campaign or one specific standalone/automation email — matching either id. The editor suggests both, emails shown by subject.
link_urltextStringClicked link URL. shopify_email.clicked only.
tracked_link_idIDIDThe tracked link. shopify_email.clicked only.
shopify_email.delivered MATCHES (date IN LAST 90 DAYS)
AND shopify_email.opened IS NULL

Storefront behavior

Thirteen complex attributes over the customer’s storefront analytics events. Events only attribute to a customer when the visit is identified (logged in or recognized), and consent settings apply.

AttributeEvent
storefront.product_viewedViewed a product page.
storefront.collection_viewedViewed a collection page.
page_viewedViewed any storefront page.
product_added_to_cartAdded a product to the cart.
product_removed_from_cartRemoved a product from the cart.
cart_viewedViewed the cart.
checkout_startedStarted checkout.
checkout_completedCompleted checkout.
search_submittedSubmitted a storefront search.
discount_code_enteredEntered a discount code.
discount_code_appliedA discount code was applied.
discount_code_rejectedA discount code was rejected.
payment_failedA payment attempt failed.

All thirteen share these subfields:

SubfieldTypeOperatorsNotes
datedateDateEvent date.
countnumberNumberNumber of matched events.
pathtextStringStorefront path, e.g. /collections/sale.
campaign_idtextStringUTM-style campaign attribution on the event.
message_idtextStringMessage attribution on the event.
value_amountmoneyMoneyEvent value, where applicable.

The product-context events (storefront.product_viewed, product_added_to_cart, product_removed_from_cart) additionally support:

SubfieldTypeOperatorsNotes
idIDIDThe product.
variant_idIDIDThe variant.
tagtag listTagThe product’s current tags.
categorycategoryCategoryThe product’s current taxonomy category, includes all subcategories.
metafield.<namespace>.<key>metafieldBy value typeProduct metafield condition.

storefront.collection_viewed additionally supports id (the collection) and metafield.<namespace>.<key> (collection metafield).

There are no search_query or discount_code subfields: the analytics pipeline doesn’t store the raw query or code, so those can’t be filtered on.

storefront.product_viewed MATCHES (category = 'aa-1-13', date IN LAST 14 DAYS)
AND products_purchased IS NULL

Geo distance

customer_within_distance matches customers whose identified storefront visit places them within a radius of a coordinate. It uses a MATCHES form with fixed parameters rather than subfields:

customer_within_distance MATCHES (coordinates = (13.08, 80.27), distance_km = 25)

Use distance_km or distance_mi. Latitude runs -90 to 90, longitude -180 to 180, and the distance must be positive. IS NULL / IS NOT NULL match customers with no known / any known visit location.

Custom fields (metafields)

Any metafield definition with Use as filter enabled becomes a segment attribute, as long as its value type is filterable. Where it appears depends on the owner type:

Owner typeWhere you use itWritten as
CustomerTop levelmetafields.<namespace>.<key>
OrderInside orders_placed MATCHES (...)metafield.<namespace>.<key>
ProductInside products_purchased, storefront.product_viewed, product_added_to_cart, product_removed_from_cartmetafield.<namespace>.<key>
VariantInside ordered_variant MATCHES (...)metafield.<namespace>.<key>
CollectionInside ordered_collection, storefront.collection_viewedmetafield.<namespace>.<key>

Note the spelling difference: plural metafields. at the top level, singular metafield. inside a MATCHES.

Value types and operators

The metafield’s value type decides the operator set:

Value typeOperatorsNotes
Single-line text, multi-line text, URLString= and IN are case-sensitive for text metafields.
ColorStringCompared case-insensitively.
Integer, decimal, ratingNumberRating comparisons are checked against the definition’s min/max scale.
MoneyMoneyMajor currency units.
Date, date-timeDateCustomer date metafields also support the recurring operators IN MONTH and ON <month day> - ideal for birthdays and renewal dates.
BooleanBoolean
Dimension, volume, weightNumber + unitWrite the unit after the value: metafield.specs.weight > 2 kg. Units - dimension: mm, cm, m, in, ft, yd; volume: ml, cl, l, m3, us_fl_oz, us_pt, us_qt, us_gal, imp_fl_oz, imp_pt, imp_qt, imp_gal; weight: g, kg, lb, oz. Comparison is unit-normalized, so 2 kg matches a value stored as 2000 g.
References (product, variant, collection, customer, page, blog post, location, file, metaobject)IDCompare by referenced ID.
JSON, rich text, linkNot filterableThese types never appear in the segment editor.

List metafields

List metafields compare at the owner level - the condition looks at the whole list:

  • =, CONTAINS, and other positive operators match when any element matches.
  • Negative operators (!=, NOT CONTAINS, NOT IN) match only when no element matches.
  • Text and number lists additionally offer CONTAINS ANY (...) (at least one of the given values is an element) and CONTAINS ALL (...) (every given value is an element), like tags.

When a definition is deleted

If you delete a metafield definition that segments reference, Sellerlane removes those conditions from the affected segments automatically, refreshes their membership, and records a note on each segment naming the deleted field. A segment whose rules end up empty matches no one until you edit it. The note clears the next time you save the segment’s rules.

metafields.custom.fit_preference = 'slim'
AND orders_placed MATCHES (metafield.custom.gift_wrap = true)

See also