By Stormly in Knowledge
Published: Nov 30, 2026
Market Basket Analysis for eCommerce: Find What Sells Together (Support, Confidence, Lift, Without Code)
Your BFCM weekend just generated the most transaction data your store will see all year. Inside those orders are product pairs that appear together far more often than chance would predict. Some of them belong in a “frequently bought together” widget. Some belong in a bundle offer. Some belong in a post-purchase email that prompts a second purchase three days later.
Market basket analysis is the method that surfaces those patterns. The academic version involves Python libraries, Apriori algorithms, and journal articles aimed at computer science graduates. The merchant version involves three numbers, one table, and three decisions you can act on this week.
Market basket analysis finds which products customers buy together in the same order, ranked by genuine affinity rather than popularity. It measures support (how often a pair appears across all orders), confidence (the rate at which a buyer of product A also buys product B), and lift (how much more often than chance the pair occurs). Lift above 1 means the pairing is real. Lift at 2 or above is typically where merchants act.
TL;DR: - Support = what fraction of all orders contain the pair; low support means thin data - Confidence = “if A, then B” purchase rate; informative but can mislead without lift - Lift = the number that separates real affinity from popularity coincidence; 2.0 is a reasonable action threshold - Three applications: product page recommendations, bundle offers, post-purchase email - Stormly’s Cross-Selling Analysis report ranks pairs by lift, attach rate, and co-order volume automatically, no code required
What is market basket analysis?
Market basket analysis looks at completed orders and asks: when product A is in a customer’s order, which other products tend to show up? The name comes from literal grocery baskets, but the method works for any store where orders regularly contain more than one item.
The goal is not to describe which products are popular. It is to find products that appear together more often than you would expect if shoppers were selecting items at random. Those are the pairs worth acting on because they reflect actual purchase affinity, not coincidence.
For a Shopify store, the input is straightforward: order data with line items. For every multi-item order, you enumerate every product pair in that order. After doing that across your full order history, you count how often each pair appears and calculate three metrics for each one.
The challenge is not generating the pairs. It is knowing which pairs are genuine affinities and which are just two popular products that happen to both appear in a lot of orders.
What are support, confidence and lift?
Three metrics do most of the work. Here is what each means and why all three matter together.
Support is the fraction of all orders that contain a specific pair. If 1,000 orders included both Product A and Product B together in 50 of those orders, the pair has 5% support. High support means the pattern is common and trustworthy. Low support (fewer than 20 co-orders, say) means the sample may be too thin to build a recommendation or bundle on.
Confidence is a conditional rate: of all orders that contain Product A, what fraction also contain Product B? If 200 orders include Product A and 50 of those also include Product B, confidence is 25%.
Lift corrects confidence for how popular Product B already is on its own. It divides the confidence for the pair by the baseline probability that any order contains Product B. If Product B appears in 20% of all orders, and confidence for the A-to-B pair is 25%, lift equals 25% divided by 20%, which is 1.25. Barely above 1. The products appear together slightly more often than chance, but not by enough to build a widget on.
Lift is the metric that matters most. A lift of 1.0 means no real affinity: the products just happen to be popular. A lift of 2.0 means customers are twice as likely to buy them together as random chance would predict. A lift of 4.0 or above is unusually strong and usually worth investigating immediately.
Why confidence alone misleads: Imagine Product X appears in 70% of all your orders because it is your best-selling SKU. The confidence for almost any pair involving Product X will look impressive, because Product X shows up in most carts regardless of what else is in them. Lift removes that distortion by normalizing against each product’s individual baseline frequency.
Illustrative worked example (1,000 orders; all figures approximate for illustration):
| Pair | Co-orders | Support | Confidence (A to B) | B in all orders | Lift | Signal |
|---|---|---|---|---|---|---|
| Running Shoes to Running Socks | 90 | 9% | 36% (90/250) | 20% | 1.8 | Test as widget |
| Yoga Mat to Yoga Block | 60 | 6% | 60% (60/100) | 15% | 4.0 | Bundle + widget |
| Water Bottle to Protein Powder | 110 | 11% | 22% (110/500) | 20% | 1.1 | Skip; popularity effect |
| Foam Roller to Massage Oil | 30 | 3% | 50% (30/60) | 15% | 3.3 | Bundle candidate |
The Yoga Mat / Yoga Block and Foam Roller / Massage Oil pairs are the clear action items: high lift, meaningful support. The Water Bottle / Protein Powder pair looks impressive on volume but lift 1.1 says the water bottle is simply everywhere. Running Shoes / Running Socks is a moderate opportunity worth testing.
How do I find products frequently bought together in my store?
The manual version requires exporting order data, writing a script to enumerate every pair from every multi-item order, counting pair frequency, and calculating lift. For someone comfortable with Python or advanced spreadsheet work, the first build takes a few hours and needs to be repeated monthly to stay current.
The practical version is a tool that connects directly to your order data and runs the analysis automatically.
Stormly’s Cross-Selling Analysis report does this. It connects to Shopify or Adobe Commerce and calculates lift, attach rate, and co-order volume for every product pair in your order history. You can filter by category, brand, size, or color, so you can ask specific questions: “which running accessories sell together?”, “which candle scents appear in the same orders?”, or “what are the highest-lift pairs in the outerwear category?”
The output is a ranked list sorted by lift. Set a minimum support threshold, say pairs with at least 20 to 30 co-orders, to filter out rare combinations, and work from the top.
Timing matters here. BFCM orders are signal-rich. If you run the analysis on orders from the past seven days, you see what this season’s customers are pairing. Some of those pairs reflect gift-bundling behavior specific to November. Others are durable patterns that hold year-round. Running the analysis on a longer 90-day window alongside the BFCM window helps you tell them apart.
For merchants who want to understand which of these frequently-bought pairs also includes products that build loyalty, repeat purchase analytics at the product level adds the second dimension: not just which products sell together now, but which combinations are likely to bring customers back for a second order.
Ready to find the patterns in your post-BFCM data? Find your top product pairs with a free Stormly trial.
How do I turn results into bundles and cross-sells?
Finding the pairs is not the goal. Revenue is. Here are three places to put the results.
1. “Frequently bought together” widgets on product pages.
Take your highest-lift pairs with sufficient support and add them as recommendations on the relevant product pages. Pairs at the bottom of the lift table (lift 1.0 to 1.2) are not worth the page space. Focus on pairs with lift 2.0 or above and at least 20 to 30 co-orders.
A shopper looking at a Yoga Mat sees the Yoga Block recommended with a “frequently bought together” note. If the analysis says 60% of yoga mat buyers also bought the block, that recommendation is accurate and genuinely useful, not algorithmic padding.
2. Bundles.
Pairs with high lift and high confidence are bundle candidates. A bundle offers both products at a slight discount compared to buying separately. The economics work when the pair’s lift is high enough that buyers actually want both things, and the support is high enough to prove it is a real pattern.
Stormly’s Cross-Selling Analysis also surfaces brand synergies, showing if products from two specific brands appear together disproportionately. That sometimes reveals a co-marketing opportunity worth exploring.
Average order value analytics for eCommerce goes deeper on how to price and position bundles to lift basket size without discounting indiscriminately across the catalog.
3. Post-purchase email follow-ups.
If a customer just bought Product A and you have lift data showing that 60% of Product A buyers eventually purchase Product D, send a follow-up email within a few days once they are using the product and might recognize they want the companion item.
This use case does not require a widget at all. It uses the same lift data but feeds it into an email sequence. The cart abandonment report by product is relevant alongside this: if a companion product frequently appears in abandoned carts alongside a product someone just purchased, they already signaled interest. A targeted follow-up email for abandoned companion items converts better than a generic recommendation blast.
Which pairs are worth acting on?
A simple decision framework helps prioritize:
| Lift | Co-orders | Recommendation |
|---|---|---|
| Below 1.5 | Any | Skip; likely a popularity coincidence |
| 1.5 to 2.5 | Fewer than 20 | Monitor; sample too small to act on |
| 1.5 to 2.5 | 20 or more | Test as a product page recommendation |
| 2.5 to 4.0 | 20 or more | Priority for widget and bundle |
| 4.0 and above | Any | Investigate immediately; check pricing and listing for suppressed demand |
One extra check worth doing: look at whether the high-lift pairs involve products that are also strong retention anchors. A bundle that sells two products once is less valuable than a bundle where the second product is one that segmenting customers by product behavior later shows as predictive of a third purchase. The overlap between “buys together” and “comes back” is where the most compounding revenue lives.
What to look for at the category level
Product-level pairs are specific and actionable. Category-level patterns are more durable.
A single product page gets updated, renamed, or discontinued. A pattern like “yoga equipment and yoga accessories,” “running footwear and performance socks,” or “skincare bases and application tools” tends to hold across seasons and catalog changes.
Stormly’s Cross-Selling Analysis lets you roll up to brand or category alongside the SKU view. The SKU-level pairs give you this week’s widget decisions. The category-level patterns give you a merchandise planning framework you can use throughout 2027.
One useful approach: take your top five category-level pairs by lift, then drill into which specific SKUs within those categories are driving the signal. That combination tells you both the durable pattern and the specific products to feature right now.
From data to decision
Market basket analysis does not require a data team or a code environment. It requires order data and a tool that can surface the patterns cleanly. The three numbers, support, confidence and lift, tell you which pairings reflect genuine purchase affinity and which are just popular products sharing a lot of orders by coincidence.
The merchant work after that is focused: put the high-lift, well-supported pairs into product page recommendations, test the strongest ones as bundles, and feed the best ones into post-purchase email sequences.
Your BFCM data is freshest right now. Run the analysis while the signal is clean. Try Stormly free to run Cross-Selling Analysis on your store’s orders and find your top product pairs.