Shopify Order Export CSV: Bundle Affinity Analysis

Category: Shopify Analytics | Reading Time: 12 minutes

Introduction to Product Bundle Affinity Analysis

Understanding which products your customers buy together is one of the most powerful insights you can gain from your Shopify store data. Product bundle affinity analysis—also known as market basket analysis—reveals hidden patterns in purchasing behavior that can dramatically increase your average order value (AOV) and improve customer satisfaction.

When you know that customers who buy Product A are 80% likely to also purchase Product B, you can create strategic product bundles, optimize your product recommendation engine, and design more effective cross-sell campaigns. This isn't guesswork—it's data-driven decision making at its finest.

In this comprehensive tutorial, you'll learn exactly how to perform product bundle affinity analysis on your Shopify order data, interpret the results, and implement actionable strategies to boost revenue. Whether you're running a small boutique or managing a large e-commerce operation, these techniques will help you unlock value hiding in your transaction data.

Prerequisites and Data Requirements

What You'll Need Before Starting

To successfully complete this tutorial, ensure you have:

Understanding Your Data Structure

Shopify order data typically includes these key fields for bundle analysis:

The analysis algorithm groups products by Order ID to identify which items appear together in the same transaction, then calculates statistical measures of association strength.

Step 1: Export Your Shopify Order Data

The first step is extracting your order data from Shopify in a format suitable for analysis.

Exporting from Shopify Admin

  1. Log into your Shopify Admin panel
  2. Navigate to Orders from the left sidebar
  3. Click the Export button in the top right corner
  4. Select your export options:
    • Export: Choose "All orders" or a specific date range (last 6-12 months recommended)
    • Format: Select "CSV for Excel, Numbers, or other spreadsheet programs"
    • Export orders as: Choose "Plain CSV file"
  5. Click Export orders
  6. Wait for the download to complete (Shopify will email you for large exports)

Expected Output

You'll receive a CSV file named something like orders_export_1.csv. When opened, it should contain columns like:

Name,Email,Financial Status,Paid at,Fulfillment Status,Fulfilled at,Accepts Marketing,Currency,Subtotal,Shipping,Taxes,Total,Discount Code,Discount Amount,Shipping Method,Created at,Lineitem quantity,Lineitem name,Lineitem price,Lineitem compare at price,Lineitem sku,Lineitem requires shipping,Lineitem taxable,Lineitem fulfillment status
#1001,[email protected],paid,2024-01-15,fulfilled,2024-01-16,yes,USD,79.99,10.00,7.20,97.19,,,Standard,2024-01-15,1,Wireless Mouse,29.99,,MOUSE-001,TRUE,TRUE,fulfilled
#1001,[email protected],paid,2024-01-15,fulfilled,2024-01-16,yes,USD,79.99,10.00,7.20,97.19,,,Standard,2024-01-15,1,USB Keyboard,49.99,,KEYB-002,TRUE,TRUE,fulfilled

Notice how multi-product orders appear on multiple rows, with the same Order ID (#1001) repeated for each line item. This structure is perfect for bundle analysis.

Step 2: Prepare Your Data File

While Shopify exports are generally clean, a few preparation steps ensure optimal analysis results.

Data Cleaning Checklist

1. Remove Incomplete Orders

Filter out orders with status other than "paid" or "fulfilled" to focus on completed transactions:

2. Standardize Product Identifiers

Decide whether to use Product Names or SKUs (recommendation: use SKUs when available):

3. Handle Product Variants

Decide your granularity level:

For most bundle analysis, Option B provides more actionable insights about product categories rather than specific variants.

4. Remove Test Orders

Filter out any test orders or internal purchases that might skew results.

Verification Step

After cleaning, verify your data contains:

Step 3: Upload Data to MCP Analytics

Now you're ready to analyze your prepared data using the Bundle Affinity Analysis tool.

Accessing the Analysis Tool

  1. Navigate to the Bundle Affinity Analysis tool
  2. Log in to your MCP Analytics account (or create one if needed)
  3. You'll see the data upload interface

Uploading Your File

  1. Click the "Choose File" or drag-and-drop area
  2. Select your prepared Shopify orders CSV file
  3. Wait for the upload progress bar to complete
  4. The system will perform automatic validation checks

Column Mapping

The tool will attempt to auto-detect your columns, but verify the mapping:

Expected Confirmation

After successful upload and mapping, you should see a summary like:

✓ Data uploaded successfully
✓ 1,247 unique orders detected
✓ 89 unique products identified
✓ 3,421 total line items
✓ Average products per order: 2.74
Ready for analysis

Step 4: Configure Analysis Parameters

Bundle affinity analysis uses the Apriori algorithm to find association rules. Understanding the key parameters ensures you get meaningful, actionable results rather than noise.

Key Parameters Explained

1. Minimum Support

Definition: The minimum percentage of transactions that must contain an itemset for it to be considered.

Formula: Support(A) = (Transactions containing A) / (Total transactions)

Recommended Setting:

2. Minimum Confidence

Definition: The minimum probability that product B is purchased when product A is purchased.

Formula: Confidence(A → B) = Support(A, B) / Support(A)

Recommended Setting:

3. Lift Threshold (Advanced)

Definition: How much more likely items are bought together compared to random chance.

Formula: Lift(A → B) = Confidence(A → B) / Support(B)

Interpretation:

Recommended Setting: Minimum lift of 1.2 to 1.5 filters for meaningful associations.

Configuration Example

For a Shopify store with 2,000 orders and 150 products, try these initial settings:

{
    "minimum_support": 0.015,     // 1.5% (30 orders minimum)
    "minimum_confidence": 0.25,   // 25% confidence
    "minimum_lift": 1.2,          // 20% above random chance
    "max_items_per_rule": 3       // Find bundles of up to 3 products
}

Click "Run Analysis" and the algorithm will process your data. This typically takes 30-120 seconds depending on dataset size.

Step 5: Interpret Association Rules

Once analysis completes, you'll receive a list of association rules ranked by various metrics. Understanding how to interpret these results is crucial for making strategic decisions.

Understanding the Results Table

Your results will appear in a table format like this:

Rule #  | Antecedent (If)      | Consequent (Then)    | Support | Confidence | Lift | Count
--------|----------------------|----------------------|---------|------------|------|------
1       | Yoga Mat             | Yoga Blocks          | 3.2%    | 45.3%      | 2.8  | 64
2       | Coffee Maker         | Coffee Filters       | 4.1%    | 67.2%      | 3.1  | 82
3       | Running Shoes        | Athletic Socks       | 2.8%    | 38.9%      | 2.2  | 56
4       | Laptop               | Laptop Case          | 5.3%    | 71.4%      | 2.9  | 106
5       | {Phone, Case}        | Screen Protector     | 1.9%    | 52.1%      | 3.5  | 38

Reading Each Rule

Rule #2 Example: Coffee Maker → Coffee Filters

Prioritizing Rules for Action

High-Value Bundle Opportunities

Look for rules with:

These are your best candidates for creating fixed bundles or "Frequently Bought Together" recommendations.

Cross-Sell Opportunities

Rules with moderate confidence (25-50%) but high lift work well for:

Complementary Product Discovery

Look for unexpected associations—products you wouldn't intuitively bundle but data shows customers buy together. These reveal customer use cases you might not have considered.

Statistical Significance

For deeper statistical validation of your findings, consider applying statistical significance testing to ensure patterns aren't due to random chance, especially with smaller datasets.

Step 6: Implement Bundle Strategies in Shopify

Analysis without action is wasted effort. Here's how to implement your findings in your Shopify store.

Strategy 1: Create Product Bundles

For High-Confidence Rules

Rules with 50%+ confidence and high lift are perfect for fixed bundles:

  1. In Shopify Admin, go to Products → Add product
  2. Create a new bundle product (e.g., "Coffee Starter Kit")
  3. Set a bundled price (typically 10-15% discount)
  4. Use a bundling app like "Bundle Builder" or "Bold Bundles" to link component products
  5. Update product descriptions to highlight value and convenience

Strategy 2: Implement "Frequently Bought Together"

For moderate-confidence rules (25-50%), use dynamic recommendations:

  1. Install a Shopify app like "Also Bought" or "LimeSpot"
  2. Configure custom product recommendations based on your association rules
  3. Display these on product pages and cart pages
  4. A/B test recommendation placement for optimal conversion

Strategy 3: Optimize Product Pages

Update your product pages to naturally encourage bundle purchases:

Strategy 4: Email Marketing Campaigns

Leverage bundle insights for targeted campaigns:

Measuring Success

Track these metrics to validate your implementation:

Re-run your bundle affinity analysis quarterly to identify evolving customer preferences and seasonal patterns.

Advanced Interpretation Techniques

Multi-Item Rules

Rules with multiple antecedents (e.g., {Laptop, Mouse} → Laptop Bag) reveal more complex buying patterns:

Negative Associations

Rules with lift < 1 show products bought together LESS than random chance:

Seasonal and Temporal Patterns

Run separate analyses for different time periods:

Try Bundle Affinity Analysis Now

Ready to discover which products your customers are buying together? The MCP Analytics Bundle Affinity Analysis tool makes it easy to upload your Shopify data and get actionable insights in minutes.

Start Your Free Analysis

What you'll get:

  • Automated association rule mining on your Shopify orders
  • Interactive visualization of product relationships
  • Downloadable reports with confidence scores and lift metrics
  • Bundle recommendations ranked by revenue potential
  • Support for unlimited products and orders

Analyze Your Shopify Data →

No credit card required for your first analysis. Upload your CSV and see results immediately.

Next Steps and Further Learning

Expand Your Analytics Skills

Now that you understand bundle affinity analysis, explore these related techniques:

Advanced Shopify Analytics

Take your Shopify data analysis further:

Stay Updated

Bundle affinity patterns evolve with your product catalog and customer base:

Common Issues and Solutions

Issue 1: No Meaningful Rules Found

Symptoms: Analysis returns very few rules or none at all.

Possible Causes:

Solutions:

Issue 2: Too Many Rules (Information Overload)

Symptoms: Hundreds or thousands of rules returned, difficult to prioritize.

Solutions:

Issue 3: Obvious or Trivial Associations

Symptoms: Rules like "Phone Case → Phone" that are too obvious to be useful.

Solutions:

Issue 4: Data Upload Errors

Symptoms: File won't upload or validation fails.

Common Causes and Fixes:

Issue 5: Inconsistent Results Over Time

Symptoms: Running analysis on same data produces different rules.

Explanation:

This usually means you're close to parameter thresholds—small rounding differences can include/exclude borderline rules. This is normal.

Solution:

Issue 6: Can't Implement Bundles in Shopify

Symptoms: Technical limitations preventing bundle creation.

Solutions:

Getting Help

If you encounter issues not covered here:

Conclusion

Product bundle affinity analysis transforms your Shopify order data from a simple transaction log into a strategic asset. By understanding which products customers naturally buy together, you can create compelling bundles, optimize cross-sell opportunities, and increase average order value.

The six-step process outlined in this tutorial—exporting data, preparing files, uploading to MCP Analytics, configuring parameters, interpreting results, and implementing strategies—provides a repeatable framework for ongoing optimization.

Remember that bundle analysis isn't a one-time exercise. Customer preferences evolve, new products launch, and seasonal patterns emerge. Make this analysis part of your quarterly analytics routine to stay ahead of changing purchase behaviors.

Start with your most straightforward, high-confidence rules for quick wins, then progressively expand to more sophisticated bundling strategies. Track your results, iterate based on performance data, and watch your average order value grow.

Ready to uncover the hidden bundle opportunities in your Shopify store? Run your first bundle affinity analysis now and start making data-driven decisions about your product offerings today.

Explore more: Shopify Analytics — all tools, tutorials, and guides →