Ecommerce platforms11 min readUpdated October 14, 2026

What Is an Ecommerce Recommendation Engine? Placements, Data and Setup

How an ecommerce recommendation engine works: where it shows products, the data behind it, rules vs machine learning, Shopify and Klaviyo setup, and testing.

Article summary

TL;DR

An ecommerce recommendation engine is software that picks which products to show each shopper, using your catalog and behavior such as views, carts and past orders. It fills blocks like "You might also like" on product pages, suggestions in the cart, order bumps, post-purchase offers and product grids in emails. It can run on simple rules or on machine learning.

  • A recommendation engine answers one question at each placement: which few products should this shopper see next? Product page, cart, checkout, post-purchase and email each need a different answer.
  • The strongest data is your own: purchase history, products bought together, cart contents and subscription status. Browsing data is weaker but available earlier.
  • Shopify generates related products for free, from purchase history first, then product descriptions (English storefronts only), then collections. Complementary products are picked by hand.
  • Exclusions matter as much as the ranking: sold-out items, products already bought, refunded or disputed items, and anything that implies a health condition.
  • Measure against a holdout on revenue per visitor. Clicks on a recommendation block prove nothing on their own.
Want to go further? AskChatGPTClaudePerplexityGrok
On this page

A recommendation engine decides which products a shopper sees next: on the product page, in the cart, at checkout, after payment and in emails. This guide covers where those recommendations go, the data that drives them, rules versus machine learning, what Shopify and Klaviyo actually do, what never to recommend, and how to prove it works. By industry: selling routines for skincare brands.

What is a recommendation engine in ecommerce?

An ecommerce recommendation engine is software that picks a short list of products for a given shopper at a given moment. It works like a good sales assistant: it knows the catalog, notices what the customer is looking at, remembers what they bought last time and suggests one or two things that fit. The difference is that it does this for every visitor, on every page, and can be tested.

It does two jobs. It filters, removing what shouldn't be shown (sold out, already in the cart, already bought). Then it ranks what's left, so the most likely purchase comes first. Most guides talk only about the ranking; in a real store, the filtering causes most of the complaints.

The engine produces different kinds of recommendations, each suited to a placement:

RecommendationWhat it showsMain dataTypical placement
Similar productsAlternatives to the item viewedProduct attributes, co-viewsProduct page, "You might also like"
Complementary productsItems that go with the item viewed or cartedProducts bought together, or a list you setProduct page "Pair it with", cart, order bump
Recently viewedProducts this shopper looked atBrowsing historyHomepage, browse reminder email
Best sellersWhat sells most over a periodOrdersHomepage, new visitors, fallback
Personalized picksProducts ranked for this shopperViews, carts and orders, theirs and similar shoppers'Homepage, email
ReplenishmentThe same consumable againOrder date and usual reorder timeEmail, account page

Recommendations are one part of personalization, and the ecommerce use is mostly cross-selling: adding the right second item to an order.

Where recommendations show up in a store

Fig. 1One engine, five moments

Recommendation engineCatalog, orders, browsing
  1. Product pageSimilar and complementary items
  2. Cart drawerOne add-on tied to the cart
  3. CheckoutOrder bump, unticked
  4. Post-purchaseOne-click offer after payment
  5. EmailProduct grid in flows and campaigns

each placement asks a different question

The same catalog and customer data feed every placement; the rules and the number of products change.

Each placement comes at a different point in the purchase, so it suits a different kind of recommendation:

PlacementWhenWhat works thereHow it's paid
Product pageBefore add to cartAlternatives if the item isn't right, add-ons if it isPart of the first order
Cart drawerRight after add to cartOne to three items that complete the cartPart of the first order
Checkout (order bump)On the payment pageA single low-priced add-on the shopper ticksPart of the first order
Post-purchaseAfter payment, before the thank-you pageOne offer on the card just usedA second charge, see 1-click upsell
EmailDays or weeks laterComplementary items, replenishment, back in stockA new order

The further down the funnel, the fewer products to show. A product page can carry a row of four to eight. A checkout should carry one. Stacking the same suggestion at every step annoys more than it sells: a shopper who declined the refill pack in the cart shouldn't meet it again as an order bump and again after payment. When a pair of products sells together often, a fixed bundle with its own price can work better than a recommendation.

Emails are where recommendations reach people who left. A post-purchase email suggesting the complementary product, or a replenishment email timed to the usual reorder gap, are both triggered email campaigns with a recommendation block inside.

What data drives recommendations

Most guides list browsing data first. For a store, the most useful data comes from orders and the customer record, because it's tied to money and it doesn't disappear with a cookie.

SignalWhere it comes fromWhat it's good forWatch out
Product attributes (category, price, material, use)Your catalogSimilar items, new products with no sales yetThin or messy product data gives poor matches
Products viewed, searchesSite eventsRecently viewed, early interestWeak intent, needs consent for tracking in the EU
Cart contentsCartComplementary items in the drawer and at checkoutDon't recommend what's already in the cart
Purchase historyOrders in your CRM or storeCross-sell, replenishment, "you already own this"Older orders say less about current needs
Bought togetherOrders with several items"Frequently bought together", bundlesNeeds enough multi-item orders
Subscription statusBilling systemDon't sell a product someone already receivesOften missing from recommendation tools
Refunds and disputesPayment processorExclusionsRarely connected, yet the clearest "don't"
Stock levelInventoryExclusions, low-stock rulesRecommending sold-out items wastes the slot

The last three rows are what separates a store's recommendations from a generic model. A subscriber who receives a product every month doesn't need it suggested again. A customer who refunded or disputed an item shouldn't see it in the next email. Both facts live in your billing and payment systems, not in your browsing data, so they need to be connected on purpose. Building segments from these signals is covered in how to segment customers.

Rule-based vs machine learning recommendations

Rule-based

  1. You set the logicPair this serum with this cleanser
  2. listsEngine applies itSame suggestion for everyone in the case
  3. by handYou review itWhen the catalog changes

Predictable, works from day one, needs upkeep

Machine learning

  1. Model learns from behaviorViews, carts, orders
  2. scoresRanks for each shopperDifferent list per person
  3. automaticallyRetrains on new dataFalls back when data is thin

Adapts by itself, needs data and a fallback

Rules are lists you write: "show the cleanser with the serum", "show best sellers in this collection", "show the refill 25 days after the first order". They're easy to explain and they work for a small catalog or a launch. Their limit is upkeep: every new product needs new rules.

Machine learning engines learn the pairings from behavior. They come in three families, which every guide on the topic describes:

FamilyHow it picksStrengthWeakness
Collaborative filtering"Shoppers who bought this also bought that": patterns across customers or across itemsFinds pairings you wouldn't have guessedNeeds history; can't place new products or new visitors (the cold start) and favors items that already sell
Content-based filteringProducts with attributes similar to what the shopper likedWorks for new products with good dataRecommends more of the same
HybridCombines both, or switches depending on available dataCovers each family's gapsMore complex to run and to explain

In practice, most stores use both: hand-picked complementary products where you know the right answer, and generated suggestions everywhere else. Shopify's own setup works this way.

How Shopify handles the cold start

Shopify generates related products automatically with three strategies, in order: purchase history ("the product needs previous sales"), then the product description (only for English storefronts), then related collections when neither is available.1Shopify Help Center, Search & Discovery: Product recommendations A new product with no sales falls back to its description or collections. Klaviyo does the same in email: when it can't personalize, it falls back to a secondary recommender such as best-selling or most viewed products.5Klaviyo Help Center, How to use product feeds and recommendations

Inside Tagada

Build the funnel once, route every customer to the right offer

Checkout, upsells and subscriptions on one flow, with conditions per country, order or customer.

Start free

Build or buy a recommendation engine

Most brands don't need to build one. The tools they already use include recommendations, and the official documentation states what each one does.

  1. Shopify Search & Discovery

    Free app made by Shopify. Lets you add related and complementary products on product pages, alongside search filters, synonyms, boosts and analytics.

  2. Shopify Product Recommendations API

    For theme developers: returns related or complementary products for a product, to place them anywhere, such as the cart drawer.

  3. Klaviyo product feeds

    Product blocks in emails, filled from your catalog and each customer's views and purchases, with best-seller and personalized options.

  4. Custom build

    Your own data pipeline and model. Only worth it when the catalog, traffic and team make off-the-shelf rules too limiting.

The details that matter when you set them up:

ToolWhat it doesLimits from the official docs
Shopify Search & DiscoveryRelated products generated automatically (you can't edit them, only add your own); complementary products chosen by hand; app developed by Shopify and free4Shopify App Store, Shopify Search & DiscoveryUp to 10 related and 10 complementary products chosen by hand; a block shows 1 to 10 products; only one complementary block per product page; your theme must include the sections1Shopify Help Center, Search & Discovery: Product recommendations
Shopify Product Recommendations APIReturns products for a product_id, with intent set to related (default) or complementary2Shopify Dev, Ajax API: Product Recommendationslimit from 1 to 10; only related recommendations are auto-generated, complementary ones come from Search & Discovery2Shopify Dev, Ajax API: Product Recommendations3Shopify Dev, Product recommendations (themes)
Klaviyo product feedsClassic options such as newest or best-selling products (over the last 3 or 90 days), and options personalized for each customer: recently viewed, added to cart, "Products customer may also like"5Klaviyo Help Center, How to use product feeds and recommendationsRecently viewed and added to cart look back 90 days; the model typically takes 2 days to a week to train; product blocks work only in the drag-and-drop and hybrid editors5Klaviyo Help Center, How to use product feeds and recommendations

Specialized personalization vendors exist for larger catalogs. Judge them on the same points: which placements they cover, how they handle new products and visitors, which exclusions they apply, whether you can pin products by hand and whether they support a proper holdout. Their published case studies come from their own customers; your test is the only number that counts.

A custom build makes sense for a large catalog with heavy traffic and a data team. It means collecting events, computing pairings or training a model, serving results fast enough not to slow the page, and keeping a fallback for when it fails. For most DTC brands, the time is better spent on the inputs: clean product data, connected order and subscription data, and good exclusions.

What a recommendation engine should never show

A bad recommendation costs more than an empty slot. Shopify and Klaviyo already exclude some items by default: Shopify won't display a product that's sold out (related products can show if "continue selling when out of stock" is on; complementary products need inventory above zero), unlisted, priced at $0.00, a gift card, unpublished, or already in the visitor's cart.1Shopify Help Center, Search & Discovery: Product recommendations Klaviyo leaves out items without images, items the recipient already bought, out-of-stock items and the item that triggered the flow.5Klaviyo Help Center, How to use product feeds and recommendations The rest is up to you.

  1. A sold-out item in a recommendation blockThe slot is wasted, and the shopper may pick something they can't getKeep the stock filter on, and check custom placements and emails too
  2. A customer is offered what they just boughtDurable goods aren't bought twice; it reads as a machine not paying attentionExclude past purchases, except consumables on a replenishment schedule
  3. A refunded or disputed product comes back in an emailThe customer already told you it didn't work for themFeed refunds and disputes into your exclusion list
  4. A subscriber is offered a one-off purchase of their subscription productIt suggests they're overpaying, or that you don't know themExclude products from active subscriptions
  5. An email suggests a product tied to a health conditionThe recommendation reveals what you inferred about the personBase suggestions on products, not conditions; keep this out of ad audiences

The last line matters for anything health-adjacent: supplements, skincare for a condition, sleep or weight products. A recommendation like "since you bought X for joint pain" turns a purchase into a health inference. Some US state laws treat information inferred from purchases as health data, and ad platforms restrict audiences built on conditions; the rules are covered in what behavioral targeting is. Keep recommendations product-to-product ("goes well with X") rather than condition-based.

The same care applies to how an add-on is sold. A recommended item should never be added to the cart for the shopper or offered with a pre-ticked box; the shopper adds it. The rules are in cart drawer upsells.

How to measure recommendations

A recommendation block always gets clicks. The question is whether it adds revenue that wouldn't have happened anyway. Shoppers who click "You might also like" are often the ones who were going to buy more regardless, so comparing them with everyone else overstates the effect.

  1. Keep a holdout. Show the recommendations to a random share of visitors (or email recipients) and nothing, or the old version, to the rest.
  2. Pick revenue per visitor as the decision metric. It combines conversion rate and average order value. A higher AOV with fewer orders is a loss.
  3. Track attach rate per placement. Orders containing a recommended item, divided by orders where it was shown. It tells you which block is relevant, not whether it pays.
  4. Count after refunds and returns. An add-on that comes back costs you shipping and handling. Record the recommendation on the order line so returns show up.
  5. Split by device and by new versus returning customers. A block that helps returning customers can distract first-time buyers on mobile.
  6. Change one thing at a time. The algorithm, the placement, the number of products or the wording, not all at once.

The holdout is the only number that applies to your store. Vendor benchmarks don't.

How to size and read the test is in what is A/B testing, and the other levers that move conversion are in how to increase ecommerce conversion rates.

Where Tagada fits

How Tagada helps

The checkout placements where recommendations turn into orders

Tagada runs the checkout, with one-click upsells, order bumps, A/B tests, Apple Pay and Google Pay, and subscriptions with trials, billing cycles, dunning and automatic retries. Purchases are tracked server side to Meta, Google and TikTok. It runs standalone, on Shopify, on WooCommerce or headless. Pricing is on the pricing page.

Whatever runs your recommendations, the order of work stays the same: decide what each placement is for, connect order, subscription and refund data, set the exclusions, and keep a holdout to prove the result.

Nick Bonnassies

CMO at Tagada

CMO at Tagada. Before Tagada, Nick built direct-to-consumer brands that generated over $115M in sales, raised over $25M in crowdfunding and sold two of them. He also works as a fractional CMO on marketing operations and AI systems.

Frequently asked questions

What is a recommendation engine in ecommerce?

It's the software that decides which products to suggest to each shopper, and where. It reads your catalog and what shoppers do (views, carts, orders) and fills blocks such as "You might also like", "Pair it with", cart suggestions, post-purchase offers and product grids in emails. It can be a set of rules you write or a machine learning model.

How does a product recommendation engine work?

It collects signals (the product being viewed, the cart, past orders, products often bought together), builds a list of candidate products, removes the ones that shouldn't be shown (sold out, already bought, already in the cart), ranks the rest and displays the top few. Models learn from behavior; rule-based engines follow lists you set.

What are the main types of recommendation engines?

By method: collaborative filtering (shoppers who bought this also bought that), content-based filtering (products with similar attributes) and hybrids that combine both. By what they show: similar products, complementary products, recently viewed, best sellers, personalized picks and replenishment reminders. Most stores use several at once, one per placement.

Does Shopify have a built-in recommendation engine?

Yes. Shopify automatically generates related product recommendations, based on purchase history, then product descriptions for English storefronts, then related collections. Its free Search & Discovery app lets you add up to 10 related and 10 complementary products by hand. Your theme needs recommendation sections to display them, and developers can use the Product Recommendations API.

How do you choose a product recommendation engine?

Start from the placements you need (product page, cart, checkout, post-purchase, email) and the data you have. Check how the tool handles new products and new visitors, which exclusions it applies (stock, past purchases), whether you can override results by hand, and whether it lets you run a holdout test. Judge it on your own results, not on vendor case studies.

What is an example of a recommendation engine?

A shopper views a running shoe. The product page shows "Pair it with" socks you chose by hand, and "You might also like" shoes generated from what other customers bought. After the order, an email suggests insoles, but not the shoe they already own, and nothing that's out of stock. Each block comes from the same engine, with different rules.

Sources

Checked October 14, 2026
  1. Shopify Help Center, Search & Discovery: Product recommendations
  2. Shopify Dev, Ajax API: Product Recommendations
  3. Shopify Dev, Product recommendations (themes)
  4. Shopify App Store, Shopify Search & Discovery
  5. Klaviyo Help Center, How to use product feeds and recommendations

Tagada

Checkout with one-click upsells, order bumps and A/B tests

Funnels, one-click upsells, subscription billing and payment routing, on one customer record.

  1. 01Create your free account
  2. 02Connect your store or build a checkout
  3. 03Launch funnels, upsells and subscriptions