Flat illustration of a shopper revisiting a row of product cards with a clock and arrow on a dark green background with green accents

How to Add Recently Viewed Products to Shopify

By the Dropship Stair team. Last reviewed: November 2026.

How to add recently viewed products to Shopify? You have three ways in. Install a recently viewed app, use a theme section, or add a section with JavaScript that remembers viewed products in the browser. Shopify has no built-in toggle, so pick the method that fits your budget and comfort.

Key takeaways

  • Recently viewed products are a carousel of the products a shopper has already looked at on your store, shown again later so they can pick up where they left off. Shopify has no built-in toggle for it.
  • You have three ways to add it: a recently viewed app, a theme section if your theme includes one, or free code with Liquid and JavaScript.
  • Apps cost a monthly fee but need no coding and go live the same day, while free code costs nothing but keeps views only in one browser.
  • Show the row on product pages and the cart page first, keep the heading plain, show 4 to 8 products, and leave out the product on screen.

What are recently viewed products on Shopify?

Recently viewed products are a short carousel of the products a shopper has already looked at on your store, shown again on later pages like the product page, the cart page, or the homepage. The product currently on screen is left out of the list, so the row only shows products the shopper saw earlier. It works like a bookmark the shopper never had to save.

Shoppers rarely buy the first product they open. They open a few options, compare prices and photos, leave to think, and then come back. Without a recently viewed row, they have to rely on the back button or search again to find the item they liked.

How to add recently viewed products to Shopify with an app

An app is the fastest way to add recently viewed products to Shopify, and it needs no coding. Install the app, turn the feature on, and the row can be live the same day. Most apps show the row on product and cart pages by default, and some let you add it to the homepage with an app block. Some also include click analytics, so you can see how often shoppers tap the row.

Vitals All in One includes a Recently Viewed app among more than 40 apps, from 29.99 dollars a month with a 7-day free trial. You activate it from the Vitals dashboard, and it shows on product and cart pages by default, with an app block for the homepage. Qe Recently Viewed is a smaller, focused app with a 7-day free trial and Premium at 4.99 dollars a month or 49.99 dollars a year. It carries Built for Shopify recognition, with carousel and drawer layouts, and you enable it through App Embeds in the theme editor. The app route suits owners who want the feature working today and do not want to touch theme code. Just check the price after the trial ends, and whether you need the extra features a bundle includes.

How to add recently viewed products to Shopify with a theme setting

Some Shopify themes, mostly paid ones, include a recently viewed products section already built in. If your theme has one, this is the easiest method of all. Open Online Store, then Themes, then Customize, and look for the section in the theme editor. If it is there, add it to the product template, the cart page, or the homepage, and set how many products it shows.

Theme sections vary a lot. Some let you change the heading, the product count, and the layout. Others give you a fixed row with few settings, and you cannot change how views are stored or tracked. If your theme does not have the section, you cannot add it without switching themes or using one of the other two methods. Switching themes just for this feature is rarely worth it. A new paid theme can cost far more than a year of a small app.

How to add recently viewed products to Shopify with free code

The free code method uses a Liquid section plus a little JavaScript, and it costs nothing. A free example is the LaunchTip Recently Viewed Products section, one section file you add to your theme. It works on the product page, and you can add it to the homepage or the cart page too if you like. The section must sit on the product template to record views, because that is where the JavaScript sees each product the shopper opens.

Before you edit any theme code, duplicate your theme in Online Store, then Themes, so you have a backup you can switch back to. Then add the section file to the product template and test it by opening a few products. Views are remembered in the shopper browser, so no app and no account are needed, and nothing is sent to a server. This method suits owners who want no monthly fee and are comfortable with a small code change. A pre-built Shopify store from Dropship Stair can include features like this from the start.

How does localStorage remember viewed products?

The free code method stores viewed products with localStorage, a small storage space in the shopper browser. Each time a shopper opens a product, the JavaScript adds that product handle to a list kept in the browser, often capped at around 12 items. When the shopper opens another page, the section reads that list and shows the products in it.

The tradeoff is that localStorage lives in one browser only. If the shopper moves from a phone to a laptop, the list does not follow them. And if they wipe their browser data, the list clears. Server-side app tracking can sync views across devices once a shopper logs in, because views are tied to the account, not the browser.

Where should you show recently viewed products on your store?

Show the row on product pages and the cart page first. That is where shoppers compare options and make a final choice. A shopper weighing two similar products will flip between them, and the row lets them jump back without searching again. On the cart page, it reminds the shopper who is almost ready to buy of the item they nearly picked.

Keep the heading plain and honest, such as Recently viewed. Shoppers already know what the row is, so a clever heading only slows them down. Show 4 to 8 products, enough to cover a real browsing session without turning the row into a second catalog. Leave out the product on screen, since showing it again wastes a slot and looks like a mistake. A shopper browsing one of the best Shopify food stores compares flavors the same way a shopper compares phone cases. On mobile, do not let the row push the add to cart button or key product details down the page. The row belongs below the buy box, so test it on a real phone after you add it.

Which method should you choose?

Method Cost Coding needed Where it shows Analytics
Recently viewed app Qe Premium 4.99 dollars a month, or the Vitals bundle from 29.99 dollars a month, both with a 7-day free trial None Product and cart pages by default, homepage with an app block Click analytics in some apps
Theme setting Included in the theme price None Depends on the theme, set in the theme editor None built in
Custom code Free Yes, a Liquid section plus JavaScript Product page, plus homepage or cart if you add it there None unless you add tracking

Pick the app if you want it live today with no code and you are happy to pay a small monthly fee. Pick the theme setting if your theme already has it and you want zero extra cost and zero upkeep. Pick the free code method if you are comfortable with a small edit and want no fee at all. If none of the three fits, skip it for now. It helps shoppers who compare, but no store needs it to sell.

What mistakes should you avoid?

The most common mistake is showing the row in the wrong place. A row above the add to cart button pushes the buy action down the page, and a row on the checkout distracts shoppers at the exact moment they should be finishing the order. Keep the row on product, cart, homepage, and collection pages, and leave the checkout alone. Our guide on how to analyze competitor Shopify stores shows what to look for when you compare layouts.

The second mistake is treating the row as a fix for weak product pages. If shoppers keep leaving without buying, the problem is usually the product page itself: unclear photos, thin copy, or a price that does not match the value. A recently viewed row can bring a shopper back to a product, but it cannot sell a product page that does not convince. Work on the page first with our guide to product page copywriting for Shopify.

Frequently asked questions

Does Shopify have a built-in recently viewed products feature?

No, Shopify has no built-in recently viewed products toggle, so the section does not appear on its own. You add it with a recently viewed app, a theme section if your theme includes one, or a free Liquid section with JavaScript. All three methods show this carousel to shoppers.

Which recently viewed app is best for a small Shopify store?

It depends on your budget and how much control you want. Qe Recently Viewed costs 4.99 dollars a month, or 49.99 dollars a year, after a 7-day free trial, with carousel and drawer layouts. Vitals bundles its Recently Viewed app with 40 plus apps from 29.99 dollars a month.

Can I add recently viewed products to Shopify without an app?

Yes, with a free Liquid section and a little JavaScript, and no app or account needed. The section must sit on the product template to record views, and the browser remembers them with localStorage. Duplicate your theme first, so you have a backup if the code does not work.

Where should I show recently viewed products on my store?

Show them on product pages and the cart page first, where shoppers compare options and make a final choice. Keep the heading plain, show 4 to 8 products, and leave out the product on screen. On mobile, keep the row below the add to cart button and key product details.

Do recently viewed products follow shoppers across devices?

Not with the free code method, because localStorage keeps viewed products only in one browser, and it clears if the shopper wipes browser data. Server-side apps can show the same list on another device once the shopper logs in. Check how your app stores views first.

How to add recently viewed products to Shopify is a small job with a clear payoff: shoppers who compare products can find their way back in one tap instead of searching again. Pick the app if you want it live today, use the theme setting if yours has one, or add the free code section if you want no monthly fee. Place the row below the buy box, keep it short, and test it on a real phone.

Sources: the Vitals guide to recently viewed products on Shopify at https://vitals.app/blog/how-to-add-recently-viewed-products-to-shopify and the LaunchTip free Recently Viewed Products section at https://www.launchtip.com/free-shopify-sections-code/free-recently-viewed-products-section-for-shopify, both checked in November 2026.

Last reviewed: November 2026.

Share the post

Scroll to Top