Recently Viewed
Carousel of products the visitor recently looked at, localStorage-driven.
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
- 01
Create /sections/modblo-recently-viewed.liquid.
- 02
Paste the section code and save.
- 03
Add the section to product.json AND any template where you want the carousel to appear (collection.json, cart.json, etc.).
- 04
The tracker auto-runs on product pages, so no extra wiring needed.
- 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
| Setting | Type | Default |
|---|---|---|
Heading heading | text | Recently viewed |
Clear button label clear_label | text | Clear |
Max items shown limit | range | 8 |
Hide section unless N+ items min_items | range | 2 |
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.
Related
