PremiumNewProduct Sections

Recently Viewed

Carousel of products the visitor recently looked at, localStorage-driven.

#pdp#recently-viewed#personalization#localStorage#rvp-replacement

Live preview

See it in action.

Fully interactive, drag, click, scroll inside the frame, toggle to mobile.

About this section

Tracks the visitor's product views in localStorage on every PDP load, then renders a horizontal scrollable carousel of those items. Auto-hides when the visitor doesn't have enough history. Excludes the product they're currently viewing. No third-party SDK, no cookies, no GDPR overhead.

Install in 90 seconds

  1. 01

    Create /sections/modblo-recently-viewed.liquid.

  2. 02

    Paste the section code and save.

  3. 03

    Add the section to product.json AND any template where you want the carousel to appear (collection.json, cart.json, etc.).

  4. 04

    The tracker auto-runs on product pages, so no extra wiring needed.

  5. 05

    (Optional) Adjust max items shown and minimum visibility threshold in the theme editor.

The Liquid

Unlock the section code

Recently Viewed is a premium section. Get the full Liquid + scoped CSS paste-ready.

One-time purchase · Lifetime updates · You own the code

Theme editor settings

SettingTypeDefault

Heading

heading

textRecently viewed

Clear button label

clear_label

textClear

Max items shown

limit

range8

Hide section unless N+ items

min_items

range2

Background

bg

color#ffffff

Foreground

fg

color#0b0b0c

Accent

accent

color#6366f1

SEO & accessibility notes

  • Section starts hidden and reveals via JS only when there's enough history, no flash of empty section.
  • Uses native horizontal scroll with scroll-snap, no carousel library.
  • Real <a> elements per card, all crawlable, all keyboard navigable.
  • Tracks state client-side only (localStorage), no server roundtrip.
Recently Viewed. Shopify section | modblo