Cosmero docsPre-release

Recently viewed

2 min read

Recently viewed shows each shopper the products they viewed last, newest first, as product cards. It never shows the product on the page they’re on. Use it to bring shoppers back to products they were weighing up.

The list lives in each shopper’s own browser, not in your store, and no cookies are used. Product pages add the product to the front of the list, which keeps the 12 products viewed last. A product opened in quick add or shown in the Featured product section isn’t added.

Until a shopper has viewed another product, the section stays hidden and takes no space on the page.

Cosmero’s product template comes with this section after Related products.

Online Store → Themes → Customize

  1. In your Shopify admin, go to Online Store → Themes and select Customize on Cosmero.
  2. At the top of the theme editor, open the template you want to change: a product template, the home page, the cart page or the 404 page.
  3. In the sidebar, select Add section.
  4. Choose Recently viewed, then select Save.

You can add it to product templates, the home page, the cart page and the 404 page.

  • Heading: the section’s heading (default “Recently viewed”).
  • Maximum products to show: from 2 to 12 (default 4).
  • Columns on desktop: from 2 to 5 (default 4). On phones and tablets, the cards sit in a row that scrolls sideways.
  • Color scheme: the section’s colors (default Scheme 2). You edit color schemes in Theme settings.
  • Panel style: Panel is a rounded panel inside the page margin. Flush spans the full page width with square corners.
  • Enable full width on mobile: on mobile, the panel runs from edge to edge with square corners. Shown when Panel style is Panel.
  • Top padding and Bottom padding: the space above and below the content, from 0 to 120 px (default 64 px).

The cards follow your Product cards settings in Theme settings.

The list counts as a preference, so Cosmero keeps it only while Shopify’s Customer Privacy API allows preferences. That’s the API behind Shopify’s cookie banner, which you set up in Settings → Customer privacy, and behind consent apps that work with it.

  • Where your privacy settings ask shoppers for consent, the list is kept only after a shopper accepts. Until then, or after they decline, nothing is kept and the section stays hidden.
  • A shopper who declines has their list removed, and the section hides.
  • Where your settings don’t ask for consent, the section works for every shopper.
  • In the theme editor, the section shows sample cards, so you can see its layout. Once your own browser has viewed some products, the preview shows those instead.
  • Sold-out products still show, with their Sold out badge. Products you delete or remove from your online store drop out of the list.
  • The section loads its products only when there’s something to show, so pages stay fast for first-time visitors.

Still stuck? We answer.

Contact support