Explore standardized definitions, formulas and usage guidance for key ecommerce performance metrics.
Strong indicator of customer loyalty and retention.
What’s our returning customer rate this quarter?
SELECT ROUND(COUNT(DISTINCT CASE WHEN user_type = 'returning_customer' THEN customer_email END) * 100.0 / NULLIF(COUNT(DISTINCT customer_email),0),4) AS returning_customer_rate FROM orders WHERE orders_date BETWEEN :start AND :end;