Recently viewed
The recently viewed section shows the products a shopper has looked at most recently. It helps shoppers return to products they have seen. This guide explains how to add it and what it needs.
What the shopper sees
- A heading, such as "Recently viewed".
- A row of product cards, newest first.
- The section stays hidden until the shopper has viewed at least one product in that browser.
Before you begin
- Decide how many products to show.
- Decide on a heading for the section.
1. Add the section
- Open the page in the theme editor, such as the home page or a product template.
- Select Add section.
- Choose Recently viewed.
- Move the section to the place you want.
2. Set the section
- Select the Recently viewed section.
- Set Heading.
- Set Number of products to the number of cards you want to show.
- Select Save.
How it works
- The theme saves the product handles in the shopper's browser. It does not use a Shopify customer account.
- The list is not shared across devices. A shopper who uses a phone and a laptop sees a different list on each.
- Clearing the browser data for your store clears the list.
- The section needs no product setup, but products must be available in the store to show.
Check it
- Open two or three products on the storefront.
- Open a page with the section. Confirm that the products appear, newest first.
- Select a card. Confirm that it opens the product page.