Query library
Sample data

New vs returning customers

Example 4 of 5 · ShopifyQL sample dashboard

All queries
customers
loyalty
GROUP BY
Get on Shopify

Balance acquisition spend against retention before CAC eats margin.

ShopifyQL

Easy query

From sales, show orders and total sales by new or returning customer.

FROM sales
SHOW orders, total_sales, average_order_value, new_or_returning_customer
GROUP BY new_or_returning_customer
DURING last_month
ORDER BY orders DESC
WITH TOTALS

New order share

62.4%

+4.3 pts

Returning AOV

$145

+$15 vs new

Repeat rate

37.6%

−4.3 pts

Returning sales

$100k

40% of $

Mix

Order share by segment

New62.4%
Returning37.6%

Results

Sample data as if returned from Shopify Analytics

SegmentOrdersShareTotal salesAOV
New1,14962.4%$148,620$129.35
Returning69337.6%$100,300$144.73