recently-viewed-products
БесплатноБез исполняемых скриптовНе проверенShow shoppers the products they recently browsed using browser storage so they can easily pick up where they left off on your store
от finsilabs★ 69 звёзд на GitHubОб этом скилле
Recently Viewed Products
Overview
Track which products a shopper views and display them in a "Recently Viewed" widget on product pages, the cart, and the homepage. Uses browser storage for within-session and cross-session history. Product data is always re-fetched from the server to avoid showing stale prices or out-of-stock items.
When to Use This Skill
- When implementing a "Continue where you left off" experience for returning visitors
- When adding a "Recently Viewed" widget to product detail pages or the cart drawer
- When integrating with a personalization engine that requires client-side behavioral data
- When building a headless storefront and need lightweight browsing history without a backend dependency
Core Instructions
Step 1: Determine the merchant's platform and choose the right approach
| Platform | Recommended Approach | Why |
|---|---|---|
| Shopify | Enable the built-in Recently Viewed section in your OS2.0 theme, or install Also Bought • Related products / LimeSpot Personalizer | Dawn and most OS2.0 themes include a native Recently Viewed section; LimeSpot ($15/mo) adds AI-powered personalization including recently viewed across sessions |
| WooCommerce | Use WooCommerce's built-in Recently Viewed Products widget or shortcode, or install YITH WooCommerce Frequently Bought Together | WooCommerce includes a recently viewed widget out of the box; place it via Appearance → Widgets or with the [recent_products] shortcode |
| BigCommerce | Use the Recently Viewed widget in the BigCommerce Page Builder or enable it in the Cornerstone theme settings | Cornerstone and BigCommerce Page Builder both include a native Recently Viewed widget that uses browser cookies automatically |
| Custom / Headless | Implement localStorage-based view tracking with a server-side batch endpoint to fetch fresh product data |
Client-side storage means no server state needed; re-fetching data on display ensures prices and stock are current |
Step 2: Enable Recently Viewed on your platform
Shopify
Using a built-in section (OS2.0 themes — Dawn, Sense, Craft):
- Go to Online Store → Themes → Customize
- Navigate to a product page template
- Click Add section and search for "Recently Viewed" — it appears as Recently viewed products in the section list
- Configure it:
- Set Maximum products to show (4–8 recommended)
- Set the section heading text ("Recently Viewed", "Your Browsing History", etc.)
- Set product card style: show price, show rating, etc.
- The section uses JavaScript and browser storage (localStorage) automatically — no additional configuration needed
For the homepage:
- Go to your homepage template
- Add a Recently viewed products section in the same way
- This section will only render content for returning visitors who have previously browsed products
LimeSpot Personalizer (cross-device, AI-powered):
- Install from the Shopify App Store
- LimeSpot tracks views server-side (not just in the browser) so recently viewed persists across devices and browsers
- Configure the Recently Viewed widget placement in the LimeSpot dashboard — it can appear on any page via app blocks
WooCommerce
Built-in Recently Viewed widget:
- Go to Appearance → Widgets
- Find the WooCommerce Recently Viewed Products widget
- Drag it to your Shop Sidebar or Footer widget area
- Configure:
- Number of products to show: 4–6 recommended
- Show title: Yes/No
- Alternatively, place the shortcode
[woocommerce_recently_viewed_products per_page="4"]directly in a product page template, sidebar, or Gutenberg block
For Classic Editor / Gutenberg:
- In Gutenberg, add a Shortcode block and paste
[woocommerce_recently_viewed_products per_page="4"] - For Elementor: use the Shortcode widget to embed the same code
WooCommerce stores recently viewed product IDs in the visitor's session (PHP session / cookie) — no plugin required. The widget reads from this session automatically.
BigCommerce
Built-in Recently Viewed widget (Cornerstone theme):
- Go to Storefront → My Themes → Customize
- Navigate to a product page template
- In the sidebar, find the Recently Viewed section and enable it (or adjust its position in the page layout)
- Set the number of products to display
- BigCommerce uses browser cookies to track recently viewed products — no app needed
Page Builder approach:
- Go to Storefront → Page Builder
- Open any page where you want the widget
- Drag the Recently Viewed Products widget from the widget panel onto the page
- Configure display settings in the widget panel on the right
Custom / Headless
localStorage-based view tracking:
// lib/recentlyViewed.js
const STORAGE_KEY = 'rv_products';
const MAX_ITEMS = 12;
const TTL_MS = 30 * 24 * 60 *
Установить recently-viewed-products в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
claude-codecursorgemini-clicopilotcodex-clikiroopencodeВложенные файлы
FAQ
Что делает скилл recently-viewed-products?
Show shoppers the products they recently browsed using browser storage so they can easily pick up where they left off on your store
Как установить скилл recently-viewed-products?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл recently-viewed-products запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic