Attribution
Customer lifetime value by channel: how to calculate it for a Shopify store
Customers from different channels are worth different amounts over time. Here is how to tag each first order with its channel, build a cohort table and compare lifetime value with what you paid.
Yforms team, Product & growthPublished 7 min read
On this page
Customer lifetime value by channel tells you how much a customer is worth over time, grouped by where they first found you. Two channels can bring new buyers at the same cost and still be worth very different amounts if one set of customers comes back and the other never does. This guide shows how to tag each customer's first order with an acquisition channel (using what buyers tell you, not only the last click), build a cohort table in a spreadsheet, and compare each channel's lifetime value with its acquisition cost.
Why lifetime value differs by channel
A store-wide LTV hides a lot. Customers who came from a friend's recommendation often trust you before their first order and come back. Customers who came through a deep discount on a deal site may have been shopping for the price and never return. Customers from a creator may buy the one product the creator showed. The same first-order value can lead to very different second, third and fourth orders.
That changes how much you can afford to pay for each customer. If customers from podcasts are worth twice as much over a year as customers from paid social, a podcast can cost more per new customer and still be the better buy. You only see that if you measure value by channel.
Channel LTV is the other half of customer acquisition cost by channel. CAC tells you what you paid. LTV tells you what you got. The ratio between them is what decides where the next dollar goes.
Step one: give every customer an acquisition channel
Lifetime value by channel needs one fixed label per customer: the channel that brought them in. That label belongs to the first order and never changes, even if the customer later comes back through an email or a Google search.
There are two common sources for the label, and they disagree often.
| Source | What it says | Where it falls short |
|---|---|---|
| Last click on the first order | The tracked source of the visit that placed the first order | Credits brand search, direct and email for people other channels introduced |
| The buyer's answer on the first order | Where the buyer says they heard about you | Depends on memory and on how many buyers answer |
For acquisition, the buyer's answer is usually closer to the truth. Shopify's last click on a first order is often Direct or Google because the person typed your name after seeing you somewhere else. Ask How did you hear about us? on the Thank you page, and use the answer from each customer's first order as their channel. Keep the last click too. When the answer is missing, you can fall back to it, and comparing the two is useful on its own.
How to calculate LTV by channel, step by step
You can do this in Google Sheets with two exports: your Shopify orders and your survey answers. It takes an afternoon the first time and a few minutes a month after that.
- Export orders from Shopify with the order number, customer email, order date and total. Use net sales after refunds if you can.
- Export the survey answers with the order number, the customer email and the answer.
- Find each customer's first order. Sort orders by date and keep the earliest per email. That order's month is the customer's cohort.
- Attach the channel. Look up the survey answer for that first order by order number. If there is none, use the first order's last click, or mark it Unknown.
- Add up revenue per customer over fixed windows from the first order: 30, 90, 180 and 365 days. Fixed windows keep old and new cohorts comparable.
- Average by channel. For each channel, divide the total revenue at each window by the number of customers in it.
- Turn revenue into margin. Multiply by your gross margin after product, shipping and payment costs. LTV in revenue flatters every channel equally. LTV in margin is what pays back the acquisition cost.
Use email as the customer key with care. Some customers check out with two addresses, and guest checkouts can split one person into two. For most stores the error is small, but don't read much into tiny differences between channels.
Build a cohort table by channel
A cohort table groups customers by their first-order month and channel, then shows how much each group has spent so far. Here is an illustrative example, not real data: customers from a skincare store's spring cohorts, average gross margin per customer.
| Channel | Customers | Margin at 90 days | Margin at 365 days |
|---|---|---|---|
| Friends and family | 180 | $46 | $94 |
| Podcasts | 120 | $41 | $82 |
| Instagram and Facebook | 640 | $33 | $51 |
| TikTok | 410 | $28 | $39 |
| Google search | 300 | $36 | $63 |
Read it row by row and then column by column. The 90-day column tells you which channels pay back fast. The 365-day column tells you which keep paying. In this example TikTok brings many customers cheaply, but they rarely return. Friends and podcasts bring fewer, but each is worth more than twice as much after a year.
Add two more columns once the basic table works: the share of customers who placed a second order, and the average days between the first and second order. Repeat rate is often the clearest single sign of channel quality, and time to second order tells you when to send the replenishment or check-in email.
Young cohorts haven't had time to reach 365 days. Leave those cells blank rather than estimating, or compare channels only on the windows every cohort has reached.
Compare lifetime value with acquisition cost
Put each channel's LTV next to its CAC. The ratio of margin LTV to CAC tells you how much each dollar of acquisition spend returns over the window. A common rule of thumb is to aim for at least 3 to 1 over a year, but the right target depends on your cash position and how fast you need the money back.
| Channel | CAC | Margin LTV at 365 days | LTV to CAC |
|---|---|---|---|
| Podcasts | $38 | $82 | 2.2 to 1 |
| Instagram and Facebook | $29 | $51 | 1.8 to 1 |
| TikTok | $22 | $39 | 1.8 to 1 |
| Google search | $24 | $63 | 2.6 to 1 |
The cheapest channel isn't the best one here. Podcasts cost the most per customer and still return more per dollar than TikTok. Use the same channel labels for CAC and LTV, both from customer answers, so the two sides of the ratio count the same people. Payback period, the days until a customer's margin covers their CAC, is the other number worth watching if cash is tight.
Yforms gives you the inputs. It asks How did you hear about us? on your Shopify Thank you page, and the answers can be sent to a Google Sheet with the order number and customer email on every row, which is what the lookups above need. On Growth, the Ads vs customers report in Insights also shows each channel's cost per order by customers' answers, the CAC side of the ratio.
Common mistakes with channel LTV
- Labeling customers by their latest order. A customer who came from a podcast and reordered from an email is a podcast customer. Relabeling them credits email with the podcast's work.
- Mixing revenue and margin. Compare margin LTV with CAC. Revenue LTV makes every channel look better than it is, by as much as your product and shipping costs.
- Ignoring discounts. If one channel's customers arrived on a 30 percent welcome code, their first order margin is lower. Use net sales after discounts.
- Reading small groups. A channel with 25 customers can swing wildly from one cohort to the next. Pool several months before you decide.
- Treating survey answers as complete. Not every buyer answers. If one channel's buyers answer less often, it looks smaller than it is. See nonresponse bias for how to correct for it.
- Forgetting the product. If one channel mostly sells a product people buy once, its low LTV is about the product. Compare channels within the same first product when you can.
Once you have LTV by channel, you can ask better questions of your customers too. Asking new buyers what nearly stopped them, and returning buyers why they came back, explains the numbers. Our voice of customer guide shows how to collect and use those answers.
Questions
What is a good LTV to CAC ratio by channel?
Many brands aim for at least 3 to 1 on margin over a year, but it depends on cash and margins. Compare channels with each other first. The ranking matters more than any one target.
How long should I wait before measuring a channel's LTV?
Look at 90 days for a first read and 365 days for a reliable one. For products people reorder monthly, 180 days already says a lot.
Should I use the survey answer or the last click to label customers?
Use the survey answer from the first order where you have one, since it catches channels tracking misses. Fall back to the first order's last click where there's no answer, and label the rest Unknown.
Can I calculate LTV by channel without an analytics tool?
Yes. A Shopify order export, your survey answers with order numbers and a spreadsheet are enough. A tool saves time once the method is settled.
Start free on Shopify
Hear from every customer after they buy.
Yforms asks one short question on your thank-you page, when the order arrives and after use. Free for up to 200 orders a month, and every new store gets 14 days of Growth.