Recommended tables
- Orders:
obt_orders - Customers:
obt_customers
Define LTV (before you chart)
Decide which revenue definition you want to use consistently:- Net revenue (common for LTV):
order_net_revenue - Gross revenue:
order_gross_revenue
Build the analysis (high level)
- Filter to SourceMedium-valid orders (
is_order_sm_valid = TRUE). - Determine each customer’s cohort (first valid order date).
- For each cohort, compute:
- Total net revenue (or gross revenue)
- Distinct customers
- LTV =
total revenue / distinct customers
- Add cohort aging (e.g., “months since cohort start”) if you want true cohort curves.
Common pitfalls
- Comparing cohorts at different maturity (newer cohorts are incomplete).
- Mixing revenue definitions when validating against other reports.
- Not filtering out excluded/invalid orders.
Next steps
- Pair with order behavior: Cohort LTO
- If net revenue looks “off”, start here: Why don’t Executive Summary & Shopify match?

