Recently viewed vs recommended products on Shopify: which do you need?
Recommended products and recently viewed products look alike, a row of product cards under the main product, but they answer different questions. Shopify’s “You may also like” section shows products similar to the one on screen, picked by Shopify from purchase history, product descriptions and collections. A recently viewed row shows the products this shopper already opened, in the order they viewed them. Recommendations help a shopper discover something new. Recently viewed helps a shopper get back to something they were already considering. Most stores benefit from both, placed in different spots. Here’s how each works, when each helps, and where to put them.
What is the difference between recently viewed and recommended products?
The difference is where the products come from. Recommendations start from the product on screen and ask Shopify what’s similar or what goes with it. Recently viewed starts from the shopper and lists what they looked at.
| Recommended products (“You may also like”) | Recently viewed products | |
|---|---|---|
| Based on | The product on screen | The shopper’s own browsing on your store |
| Who picks the products | Shopify, plus any you add in Search & Discovery | The shopper, by viewing them |
| What it shows | Products the shopper may not have seen yet | Products the shopper has already opened |
| Same for every shopper? | Shopify’s docs describe it per product, not per shopper | No, each shopper sees their own list |
| Where it works | Product pages (it needs a product to start from) | Any page, including the homepage and 404 page |
| Built into Shopify? | Yes, in Dawn and Horizon, and the Product Recommendations API | Some themes include one; Dawn and Horizon don’t |
| Main job | Discovery and cross-sell | Getting back to a product, comparing |
In short: recommendations widen the choice, recently viewed narrows it back down.
How do Shopify’s product recommendations work?
Shopify generates related product recommendations for every product automatically. According to Shopify’s help center, it uses three sources: purchase history (which needs past sales), product descriptions (English storefronts only), and related collections as a fallback. You can’t edit the generated list, but in the free Search & Discovery app you can add up to 10 related products of your own per product, or hide the generated ones.
There’s a second type, complementary products (“Pair it with”), for add-ons often bought together. Shopify doesn’t generate these. You pick them yourself in Search & Discovery.
On the storefront, the theme shows them:
- Dawn has a Related products section on the product page, with the default heading “You may also like”.
- Horizon has a Product recommendations section with a type setting: Related or Complementary.
Shopify also filters the list. A recommended product is hidden if it’s sold out, unlisted, priced at zero, a gift card, unpublished from the Online Store, or already in the shopper’s cart. For developers, the Product Recommendations API takes a required product_id, an intent (related or complementary) and returns up to 10 products.
The key point is that every recommendation starts from a product ID. Shopify’s documentation describes the results per product, and doesn’t say they use the individual shopper’s browsing history.
How does a recently viewed row work?
A recently viewed row records each product page a shopper opens and shows those products back to them later, most recent first. Nothing is picked by an algorithm. If a shopper opened a blue jacket, then a grey one, then a scarf, the row shows the scarf, the grey jacket and the blue jacket.
Because it starts from the shopper, not from a product, it works on any page. A shopper landing on your homepage the next day can see the products they were looking at yesterday, as long as they’re on the same device and browser.
Shopify has no store-wide setting for this, and neither Dawn nor Horizon includes a recently viewed section. (Horizon only lists up to four recently viewed products inside its search pop-up.) Some third-party themes do. On other themes you add one with an app block or custom code. Our guide to adding recently viewed products to Shopify covers the setup steps.
When does each one help?
They help at different moments in the same visit.
Recommendations help when the shopper isn’t sure yet. They’re on one product and it’s not quite right: wrong colour, wrong price, wrong size range. A related product gives them somewhere to go next instead of leaving. Complementary products help after they’ve decided, by suggesting an add-on.
Recently viewed helps when the shopper is comparing. They opened four products, and now they want to go back to the second one. Without a row, they have to remember its name, use the back button several times, or search for it. With a row, it’s one tap. It also helps returning shoppers who left and came back later.
A simple rule:
- New catalogue, few sales: related recommendations fall back to descriptions and collections, so they may be less precise. Recently viewed works from the first visit, because it needs no sales data.
- Large catalogue, lots of browsing: both help. Recommendations surface what the shopper hasn’t seen; recently viewed keeps track of what they have.
- Products people compare carefully (furniture, clothing in several cuts, gifts): recently viewed tends to matter more, because shoppers go back and forth.
If you want shoppers to save products on purpose, that’s a different tool. A wishlist keeps the items a shopper chose to keep, while recently viewed keeps the ones they only looked at.
Can you use both on the same page?
Yes. On a product page, a common layout is:
- Product details and add-to-cart.
- Recommendations (“You may also like”) directly below, while the shopper is still deciding.
- Recently viewed further down, for shoppers who scroll past and want to go back.
Give each row a clear heading so shoppers can tell them apart. A row titled “You may also like” and a row titled “Recently viewed” make the difference obvious. Two rows both titled “You might like these” don’t.
Where else can a recently viewed row go?
Because a recently viewed row doesn’t need a product to start from, you can place it on pages where recommendations can’t go. On an Online Store 2.0 theme, a theme app block can go in any section that accepts app blocks, or in its own Apps section on any page you can customize.
- Homepage. Returning shoppers see what they looked at last time.
- Cart page. A shopper checking their cart can see products they viewed but didn’t add.
- Collection pages. A shortcut back while browsing a category.
- 404 page. A shopper who followed a dead link still has somewhere useful to go. (Fixing the dead link is better; see redirecting deleted or renamed products.)
One place it usually can’t go: the cart drawer. On Dawn and Horizon the cart drawer doesn’t accept app blocks, and Shopify doesn’t support app blocks in statically rendered sections. Use the cart page instead.
The fix: Revisit
Revisit adds a recently viewed row to any Online Store 2.0 theme as a theme app block, with no code and no theme-file edits. It doesn’t replace your theme’s “You may also like” section; it sits alongside it.
What it does today:
- Records product views on product pages and shows the row on any page you add the block to: product, homepage, collection, cart or 404 page.
- Skips the product the shopper is already on, so the row never shows the current page.
- Drops products that were deleted, unpublished or sold out after the shopper viewed them, by checking each one against your live storefront.
- Stays hidden until there’s something to show, so a first-time visitor doesn’t see an empty row.
- Lets you set the heading, how many products to show (2 to 12), and whether to show the price.
How it stores the history: the list lives in the shopper’s own browser (localStorage), capped at 20 products per store. Revisit doesn’t send it to its server or write it to Shopify, so there’s no browsing history to store or erase under a data request. The trade-off is that the list is per device and browser. It doesn’t follow a shopper from their phone to their laptop, and it’s gone if they clear their browser data.
Limits worth knowing: the price shown is the one captured when the shopper viewed the product, in your store’s base currency, so leave Show price off if you sell in several currencies with Shopify Markets. The block can’t be placed in the cart drawer on Dawn or Horizon.
The Free plan includes the full recently viewed row with a small “Recently Viewed” mark. The Pro plan removes the mark and adds a grid layout as an alternative to the default carousel.
Frequently asked questions
- What is the difference between recently viewed and recommended products on Shopify?
- Recommended products (the "You may also like" or "Related products" section) are picked by Shopify for the product on screen, from purchase history, product descriptions and collections. A recently viewed row shows the products this shopper already opened, in the order they viewed them. One suggests something new; the other brings back something the shopper already looked at.
- Are Shopify product recommendations personalized to each shopper?
- Shopify's documentation describes recommendations per product, not per shopper. The Product Recommendations API takes a product ID and returns products related to it, and Shopify's help center says related recommendations come from purchase history, product descriptions and related collections. It doesn't describe using an individual shopper's browsing history.
- Can I use recently viewed and You may also like on the same page?
- Yes, and on a product page they work well together. Put the recommendations section close to the product details, where the shopper is still deciding, and the recently viewed row lower down, for shoppers who want to go back and compare. They answer different questions, so they don't compete for the same click.
- Can I show recently viewed products in the cart drawer?
- Not with a theme app block on Dawn or Horizon. Their cart drawers don't accept app blocks, and Shopify doesn't support app blocks in statically rendered sections. You can put a recently viewed block on the cart page instead, or on the homepage, a collection page or the 404 page.
- Do I need the Search & Discovery app for recommendations?
- Not for related products. Shopify generates those automatically. You use the free Search & Discovery app to add your own related products, hide generated ones, or set up complementary products, which Shopify doesn't generate for you.