Customer lifetime value by cohort
“using the shopify customers and shopify orders, show each signup month cohort with revenue per customer and average order count, excluding refunded orders and counting customers by their first signup month”
Using the Shopify customers and Shopify orders, show each signup month cohort with revenue per customer and average order count, excluding refunded orders and counting customers by their first signup month.
What the agent built
3 steps, each one an ordinary Mammoth step you can open and change.
- FileShopify customersCSV export · 15 rows
- FileShopify ordersCSV export · 30 rows
- StepSummarize non-refunded ordersStep 1
- JoinBring in order totals15 of 15 paired
- StepSummarize signup cohortsStep 3
- ResultSignup Cohort Revenue13 rows
- ScheduleRuns when you sayProposed
Checked on the sample files: every step ran, 13 rows came out, and the join paired 15 of 15 rows.
- Download Shopify customers sample (15 rows)Shopify admin: Customers > Export
- Download Shopify orders sample (30 rows)Shopify admin: Orders > Export
What you get back
The result of that run, the rows to look at first.
| Signup month | Revenue per customer | Average order count | Customers |
|---|---|---|---|
| 2025-11-01 | 255.76 | 3 | 1 |
| 2025-12-01 | 125.27 | 2 | 1 |
| 2026-01-01 | 360.54 | 4 | 1 |
| 2026-02-01 | 68.48 | 1 | 1 |
| 2026-03-01 | 155.52 | 2 | 1 |
| 2026-04-01 | 129.34 | 2 | 1 |
| 2026-05-01 | 298 | 3 | 1 |
| 2026-06-01 | 57.78 | 1 | 1 |
| 2026-07-01 | 136.44 | 1.50 | 2 |
| 2026-08-01 | 146.88 | 2 | 1 |
| 2026-09-01 | 356.40 | 3 | 1 |
| 2026-10-01 | 90.36 | 1 | 2 |
How do you work out customer lifetime value by cohort?
Export your Shopify customers and orders, then upload both files. Mammoth groups customers by their first signup month, sums non refunded orders, and shows revenue per customer plus average order count for each cohort. Rows that do not match the rules are left out of the cohort result.
How it works
How to use the Signup Cohort Revenue workflow
- 1Get early accessWe invite people in small batches, job by job. You'll land on this workflow, already built and checked on the sample files.
- 2Swap in your exportsUpload your own files as they come out of your tools. The agent checks the workflow on your rows.
- 3Change it in words, then turn it onSay what to change and see the new result before anything saves. Then choose when it runs.
Signup Cohort Revenue: questions
Which export files should you use?
What happens to refunded or unmatched rows?
How do you change the cohort rules?
Get early access to this workflow
It will open already built and checked on the sample files. Swap in your own exports and see your result.
Workflows like this
Cohorts, churn, repeat purchases, retention, RFM segments and recurring revenue, from your orders or payments.
- Cohort retentionEach month's new customers, and the share still buying 1, 2, 3… months laterSee the workflow Template
- ARPU by monthCalculate average revenue per user each month from Stripe invoices and active customers.See the workflow Built by the agent
- RFM segmentsEvery customer scored 1-5 on recency, frequency and spend, with a segmentSee the workflow Template
- Net revenue retentionNet and gross revenue retention for every monthSee the workflow Template
- Repeat purchase rateEach month's new customers and the share who ordered again within 90 daysSee the workflow Template
- SaaS metrics packBuild a SaaS metrics pack from Stripe exports. Get monthly MRR, new, expansion, churned MRR, customer count, and ARPA.See the workflow Built by the agent