Back to Blog
Shopify Recommendation Engine: Track Views to Sales

Shopify Recommendation Engine: Track Views to Sales

Shopify Recommendation Engine: Track Views to Sales

Shopper considering products on a laptop

A Shopify recommendation engine automatically suggests relevant products to shoppers browsing your catalog, improving product discovery and, when placed and measured correctly, lifting add-to-cart and conversion rates. You can build this with Shopify’s built-in tools, including Search & Discovery and the Product Recommendations API, or with a custom AI model tailored to your catalog.


TL;DR:

  • Collaborative filtering needs purchase history, while recommendations based on product details can handle new products; hybrid models combine behavior and product attributes when signals are sparse.
  • Show one to four recommendations per section, use related items on product pages and complementary products in the cart, and keep manual picks in stock.
  • Preserve the API’s tracking parameters, then review ShopifyQL product conversion rates weekly and prioritize purchases over clicks when changing recommendations.
  • Benchmark Shopify’s native recommendations first; consider a custom model only when sparse data, complex catalogs, or margin and inventory rules exceed their capabilities.

Botiqueai
Make Product Recommendations Work Smarter
BotiqueAI creates custom AI tools and automations to help businesses improve customer relationships and adapt solutions to their needs.
Explore BotiqueAI solutions

Table of Contents

1. Common recommendation algorithm types and how they differ

Recommendation engines can rely on different approaches, and the right pick depends on how much behavioral data your store has collected.

Collaborative filtering looks at what similar shoppers bought together and surfaces products based on those patterns. It can work well with purchase history, but it may struggle with new products or new stores that have not accumulated enough behavioral signal, a problem known as the cold start.

Content-based filtering instead compares product attributes, descriptions and categories, so it can recommend a new arrival even before it has sales history. Hybrid approaches blend both signals, catching patterns in customer behavior while still accounting for item similarity when data is thin.

  • Collaborative filtering fits stores with steady traffic and purchase history.
  • Content-based filtering fits new catalogs or frequently updated inventory.
  • Hybrid models fit stores that want resilience across both scenarios.

Your catalog size, how often you add products, and how much traffic you get should drive which approach you lean on first.

2. How Shopify’s built-in recommendation tools actually work

Shopify generates two distinct recommendation types, and understanding the difference matters before you touch any code. Related recommendations are auto-generated from sales history, product descriptions, and existing collections, so they require no manual setup. Complementary recommendations, the add-on items you want paired with a core product, need manual selection through the Search & Discovery app.

The Product Recommendations API is what powers both behind the scenes:

  • Accepts a product ID or handle, an intent parameter set to either related or complementary, and a limit between 1 and 10, defaulting to 10.
  • Returns up to ten Product objects through the Storefront API for custom theme development.
  • Includes URL tracking parameters in the returned links, which feed Shopify’s recommendation conversion reports.

Shopify’s own documentation is careful to note that recommendations can nudge shoppers toward products they might otherwise skip, but they do not guarantee a higher average order value. The outcome depends on placement, relevance, stock availability and whether you are actually measuring results.

3. How to add product recommendations to your Shopify store

Getting recommendations live takes a mix of theme configuration and, for custom layouts, some API calls.

  1. Check your theme for an existing recommended products or complementary products section, then add it to your product page template if it is not already there.
  2. Call the Product Recommendations API with product_id, section_id, intent, and limit parameters to pull a rendered HTML section or raw product data.
  3. Handle the rendering with JavaScript or Liquid so the placeholder section swaps in live recommendation data asynchronously, without blocking the rest of the page load.
  4. Set complementary products manually through Search & Discovery when you want precise, hand-picked add-ons rather than relying on auto-generated suggestions.
  5. Cap the visible count at one to four items. Shopify’s own guidance suggests limiting recommendations to keep them relevant rather than overwhelming the shopper with choices.
  6. Confirm active and in-stock status for every complementary product you select manually, since inactive or out-of-stock items will not display.

Pro Tip: Keep the API’s built-in tracking URL parameters intact when you render recommendations, since stripping them out breaks Shopify’s ability to attribute clicks and purchases back to the recommendation block.

4. Tracking the recommendation funnel from exposure to purchase

Measuring recommendations means tracking four distinct stages rather than looking at one blended number. A shopper is exposed to a recommendation, clicks it, adds the product to their cart, and eventually completes checkout, and each stage can leak differently depending on placement and relevance.

Shopify exposes this directly through the product_recommendation_conversions ShopifyQL schema, which lets you query click rate, added-to-cart rate, and product_recommendation_conversion_rate per product.

  • Group results by product_id to see which recommended items actually convert versus which ones just get clicks.
  • Run the query on a weekly cadence so seasonal shifts in buying behavior show up early.
  • Use the conversion rate, not raw clicks, to decide which recommendations to keep, swap, or remove.

A ranked, per-product conversion rate from ShopifyQL’s product_recommendation_conversions schema lets you separate recommendations that drive real purchases from ones that only generate clicks.

5. Best practices for placement, intent, and testing

Where you place a recommendation matters as much as what the algorithm suggests. Product pages work well for related items that invite browsing, while the cart is the stronger spot for complementary add-ons tied directly to what is already in the basket.

  • Limit visible recommendations to a manageable number per section to keep the choice set focused.
  • Use related intent for substitutes and discovery, and complementary intent for cross-sell items that match the buyer’s current journey stage.
  • Keep complementary picks active and in stock, and let Shopify’s auto-generated suggestions fill in when a manual pick runs out.
  • A/B test placement and intent combinations, and judge results by add-to-cart and purchase lift rather than click volume alone.

Pro Tip: A recommendation block with a high click rate but a low add-to-cart rate usually signals a relevance problem, not a visibility problem, so adjust the intent or the picks before moving the block.

6. A quick setup checklist for Shopify merchants

Run through this sequence once to get a recommendation system live and measurable:

  1. Enable the theme’s recommendation sections and set the visible item count.
  2. Configure intent per page type, pairing related with product pages and complementary with cart or checkout touchpoints.
  3. Add manual complementary selections through Search & Discovery where auto-generated picks fall short.
  4. Implement Product Recommendations API calls for any custom theme sections, keeping tracking parameters intact.
  5. Set up a weekly ShopifyQL query against product_recommendation_conversions to monitor the funnel.
  6. Run A/B tests on placement and intent, then re-rank recommendations by conversion rate.

7. When built-in tools stop being enough

Shopify’s native recommendations handle most single-store catalogs well, but a few situations call for something more bespoke. Sparse behavioral data, large or highly segmented catalogs, omnichannel discovery needs, or ranking logic tied to margin or inventory turnover all push past what the built-in engine can express.

7. When built-in tools stop being enough — overview diagram

Shopify’s own engineering team has described moving toward sequence-based prediction models that account for shifting intent, long-term preference and seasonal effects, patterns that fixed rule-based recommendations tend to miss entirely.

The sensible path is to benchmark Shopify’s built-in recommendations first, establish a baseline conversion rate, and only then scope a proof of concept for a custom model if the baseline falls short of what your catalog needs.

— Botiqueai

Getting a custom recommendation setup built for your store

We build the parts of a recommendation system that Shopify’s defaults do not cover: custom models for complex catalogs, tracking setups that feed clean data into ShopifyQL, and Shopify app development for merchants who need recommendation logic tied to margin, inventory, or customer segments rather than generic product similarity.

Botiqueai

  • We develop custom AI solutions suited to your business needs.
  • We set up automation to support your business processes.
  • We scope a focused proof of concept before committing to a full production build, with GDPR-conscious deployment throughout.

If your built-in recommendations have plateaued or your catalog is too complex for rule-based suggestions, explore our Shopify app development services and request a scoped proof of concept.

FAQ

Is it possible to sell on Shopify without a business registration number?

Requirements for registering a business before selling vary by country, so the rule that applies to you depends on where you are based and where your customers are. Check your local tax authority’s guidance before opening a store, since operating without proper registration can create legal exposure regardless of platform.

How do you get started on Shopify the right way?

Start by setting up your product catalog, theme, and payment settings, then enable Shopify’s built-in recommendation sections like Search & Discovery before adding any custom features. Getting the foundational store setup and tracking right first makes it much easier to measure whether later additions, like recommendations, actually move the needle.

Why do Shopify’s stock shares sometimes drop?

Stock price movements for publicly traded companies like Shopify reflect broader market conditions, earnings reports, and investor sentiment, not the performance of individual merchant stores. This question falls outside what a merchant managing product recommendations needs to track day to day.

How do you place a test order on Shopify?

You can generate a test order using Shopify’s built-in test mode, usually by activating a test payment gateway like Bogus Gateway in your payment settings before checking out with dummy card details. This lets you verify your checkout flow, including any recommendation or upsell blocks, without processing a real charge.

Sources

© 2026 BotiqueAI — Reproduction prohibited without attribution.