A user proposes adding customer segment data to Shopify’s Liquid templating system. The suggested use case involves checking if a customer belongs to a specific segment (e.g., abandoned cart within 3 days) and displaying targeted messaging to encourage purchase completion.
Alternative Approach Suggested:
Customer tags in Liquid can achieve similar functionality
Shopify Marketing Automations (Basic plan+) can automatically tag customers based on behaviors
For abandoned carts specifically, JavaScript solutions using cookies and date checks are viable
Discussion Status:
The original poster acknowledges they hadn’t fully explored Shopify’s built-in Marketing Automations capabilities, having assumed it was email-only. They use a separate service for email workflows, which may have limited their awareness of native Shopify solutions.
Summarized with AI on November 23.
AI used: claude-sonnet-4-5-20250929.
It would be very nice to be able to retrieve a customer’s segments via Liquid.
Potential use case:
Create a segment that includes all customers with an abandoned cart less than 3 days old. Then, in a section or snippet, check if the current customer is a member of that segment. If so, show them a message directing them to their cart to complete their purchase.
Logic like this handled with tags in liquid. So for a feature like that to get traction there’d have to be a reason why tags as an established practice aren’t suitable.
Shopify Marketing Automations(basic plan or higher) can tag customers and there are several abandoned flows
Abandoned carts , not abandoned checkouts, can just be handled with javascript; set the date in a cookie > check date diff > is cart not empty? > show message.
Thanks, Paul. The messaging I’d seen around Shopify’s Marketing Automations led me to believe it was strictly email oriented, and didn’t include these sorts of workflows. I use another service for our emails and because of that hadn’t looked too far beyond the surface for what was possible within Shopify.