Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I am using the Admin REST API to fetch customers and display them on a custom dashboard built with Laravel.
The API endpoint I'm using is:
https://your-development-store.myshopify.com/admin/api/2025-04/customers.json
This endpoint provides a list of customers. What I want to display on the dashboard is new vs. returning customers.
Since the customer API response does not include a specific field indicating whether a customer is new or returning, I have been using the orders_count field as a workaround — considering customers with orders_count equal to 1 as new, and those with more than 1 as returning.
Customers with orders_count equal to 0 are not included in the customer count.
However, the totals I'm calculating do not match the New vs. Returning Customers report shown in the Shopify Admin Analytics dashboard.
Can you help me figure out how Shopify determines new vs. returning customers in their analytics, so I can display matching data on my dashboard?
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025