How to Calculate 90-Day Shopper LTV by Intelligems Test Group
Learn how to calculate the 90-day lifetime value (LTV) of customers in your Intelligems A/B test using only Shopify and Google Sheets.
Overview:
Most A/B tests only measure immediate conversions, but the real winner might be the variant that attracts customers who spend more over time. A 10% discount might win on first-purchase conversion rate, but a free shipping offer could attract customers with higher repeat purchase rates. This guide shows you how to uncover which test variant drives more valuable long-term customers.
Prerequisites:
To use this guide successfully, users must have:
Concluded their test at least 90 days ago.
Tagged their orders by Test Groups. [Instructions]
Step 1: Export Orders from Shopify
Log into your Shopify Admin
Click "Orders" in the left sidebar
Click "Export" button (top right)
Select:
Export: "Orders by Date"
Start Date: Start date of your test
End Date: Today
Export as: "CSV for Excel, Numbers, or other spreadsheet programs"
Click "Export orders"
Download the CSV from your email (arrives in 1-5 minutes)
Step 2: Import into Google Sheets
Go to: https://sheets.google.com
Click: "Blank" spreadsheet
Click: File → Import
Click: "Upload" tab
Drag your CSV file into the window
Settings:
Import location: "Replace spreadsheet"
Separator type: "Detect automatically"
Click: "Import data"
Step 3: Keep Only the Columns You Need
Delete all columns EXCEPT Email, Total, Created at, and Tags.
Also, Rename "Sheet1" to: All Orders
Step 4: Clean Your Date Column
Click on cell E1
Type: Clean Date
Click on cell E2
Paste this formula:
Press Enter
Click on cell E2 again
Drag the formula down to all rows with data (click the small blue square at the bottom-right corner of E2 and drag down to your last row)
Click on the column E header to select the entire column
Click: Format → Number → Date
The numbers should now display as dates like 2/9/2026 or Feb 9, 2026
Step 5: Add Test Group Column
Click on cell F1
Type: Test Group
Click on cell F2
Take the below formula & update it with your order tags. Then paste into F2:
Press Enter
Click on cell F2 again
Drag the formula down to all rows with data
Step 6: Filter to Only Intelligems Orders
Click cell A1
Click: Data → Create a filter
Click the filter icon (▼) in column F (Test Group)
Uncheck "Other"
Make sure only "Control" and "Variant" are checked
Click OK
Now you're seeing only the orders where customers FIRST saw your test.
Step 7: Create Customer LTV Sheet
Select all visible data (Click cell A1, then Ctrl+A or Cmd+A)
Copy (Ctrl+C or Cmd+C)
Click the "+" button at the bottom to add a new sheet
Rename the new sheet to: Customer LTV (double-click the tab name)
Click cell A1 in the new "Customer LTV" sheet
Paste (Ctrl+V or Cmd+V)
Step 8: Remove Duplicate Customers
Click on the column A header (Email) to select the entire column
Click: Data → Data cleanup → Remove duplicates
Check "Data has header row"
Click "Remove duplicates"
You should now have a unique list of customer emails with their data.
Step 9: Add Column Headers
In the Customer LTV sheet:
In cell G1, type: First Order Date
In cell H1, type: 90-Day Revenue
Step 10: Find Each Customer's First Order Date
Click on cell G2 in "Customer LTV" sheet
Paste this formula:
Press Enter
Click on cell G2 again
Drag this formula down to all rows that have an email address
Click on the column G header to select the entire column
Click: Format → Number → Date
The numbers should now display as dates like 2/9/2026 or Feb 9, 2026
This finds the earliest order date for each customer from your test.
Step 11: Calculate 90-Day Revenue Per Customer
Click on cell H2 in "Customer LTV" sheet
Paste this formula:
Press Enter
Click on cell H2 again
Drag this formula down to all rows with emails
This calculates the total revenue for each customer within 90 days of their first order.
Step 12: Create Summary Table
In the "Customer LTV" sheet, create your summary starting at cell K1:
In cell K1, type: Test Group
In cell L1, type: Average 90-Day LTV
In cell M1, type: Customer Count
In cell N1, type: Total Revenue
In cell K2, type: Control
In cell K3, type: Variant
Step 13: Calculate Summary Values
In cell L2, paste:
In cell L3, paste:
In cell M2, paste:
In cell M3, paste:
In cell N2, paste:
In cell N3, paste:
Step 14: Format Your Results
Select column L
Click: Format → Number → Currency
Select column N
Click: Format → Number → Currency
FINAL RESULT
Your summary table should now show:
Control
$XXX.XX
XXX
$X,XXX.XX
Variant
$XXX.XX
XXX
$X,XXX.XX
WHAT THESE NUMBERS MEAN
Average 90-Day LTV: The average total amount each customer spent within 90 days of their first order, including ALL repeat purchases
Customer Count: How many unique customers were in each test group
Total Revenue: The total revenue from all customers in each group (within their first 90 days)
Last updated
Was this helpful?