Creating Customer Segments with Query Wildcards

Topic summary

A user is seeking to create customer segments in Shopify Admin using wildcard queries for customer tags.

The specific challenge involves dynamically created tags that all start with “out-of-stock” (e.g., “out-of-stock-notification–grow-planter-small”).

The goal is to segment all customers whose tags begin with “out-of-stock” using a wildcard pattern like:

  • customer_tags CONTAINS 'out-of-stock*_wildcard_*'

This would eliminate the need to reference each exact tag individually every time, as there are many such tags.

A screenshot example was provided showing a test customer with two tags both starting with “out-of-stock.” The question remains unanswered regarding whether Shopify’s segment query interface supports this wildcard functionality.

Summarized with AI on November 19. AI used: claude-sonnet-4-5-20250929.

Hello

Using the customer / segments UI in Shopify Admin, Is there a way to create customer segments with a query string wildcard.

Screen shot example attached and you can see this test customer has 2 TAG’s that both start with “0ut-of-stock”
The TAGS (and there are many) are dynamically created.

I want to create a sement for all customers who’s tags start with “0ut-of-stock” instead of having to reference
the exact tags each time.

Example:
Instead of this:
customer_tags CONTAINS ‘out-of-stock-notification–grow-planter-small’

Something like this:
customer_tags CONTAINS ‘out-of-stock_wildcard_’

Thanks
Craig

6 Likes