---
title: "How to display recently viewed items in an email"
description: "Learn how to include a reminder of the items someone has recently viewed or added to their cart in an email."
canonical_url: "https://help.klaviyo.com/hc/en-us/articles/360019921772"
markdown_url: "https://help.klaviyo.com/hc/en-us/articles/360019921772.md"
locale: "en-us"
category: "Content"
section: "Build and use products"
updated: "2026-10-26"
---

# How to display recently viewed items in an email

## You will learn

Learn how to include a reminder of the items someone has recently viewed or added to their cart in an email. 

## Before you begin

Before taking the following steps, make sure: 

- You’ve synced your product catalog with Klaviyo. Most of Klaviyo’s ecommerce integrations (such as Shopify, WooCommerce, BigCommerce, etc.) [sync your catalog automatically](https://help.klaviyo.com/hc/en-us/articles/115005082787.md). 

- For recently viewed items, you have [Viewed Product tracking enabled](https://help.klaviyo.com/hc/en-us/articles/4416172774939.md#before-you-begin1).

- For items added to cart, you have an Added to Cart or checkout metric in Klaviyo, plus an Ordered Product metric or a custom metric configured for product purchases. These metrics must contain product IDs that match your catalog.



## Create a personalized product feed

To create a product feed for items someone recently viewed or added to their cart:

1. From Klaviyo’s sidebar, click **Content > Products**.

2. Select the **Product feed** tab.



![The Manage Product Feeds option in Klaviyo](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/b1d8808c945e8e54d5e0188c4a1ef78370f6da2f-1600x674.jpg?auto=format)

3. Click **Create feed**.

4. Name the product feed something descriptive, like RECENTLY_VIEWED_PRODUCTS. Use only letters, numbers, and underscores; spaces are not permitted.

5. If you have more than 1 catalog, use **What catalog should be included in the product feed?** to select the catalog.

6. In the *What products should the customers view first?* dropdown, scroll down and click **Products a customer has recently viewed**. Alternatively, select **Products a customer has added to cart** for a feed of items they've recently added to their cart. 





![The settings for a product feed of items a recipient recently viewed](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/b7733ba71a8f3e9193c100cfbcf52bca2ec7a283-1000x440.jpg?auto=format)

7. Under **If the customer has limited history, what should they view instead?**, choose fallback products, such as **Best-selling products**. If prompted, select a timeframe, such as **last 90 days** or **last 3 days**.

8. Optionally, apply filters under **What additional filters would you like to apply?** to control which products can appear, such as including or excluding product categories.

9. Click **Save Product Feed**.



## Add the product feed to an email

Open the drag-and-drop editor for the email template, campaign email, or flow email you’d like to work with:

1. Drag a **Product** block into your template.




![The product block icon in the Klaviyo template editor](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/9f7a61ebfce5c6e2e53767484f92a9112b7ca90b-700x954.jpg?auto=format)

2. In the product block’s **Styles** tab, select **Dynamic**, then choose the feed you created under **Product selection**. If your feed isn’t listed, click **View all** (or **Change selection** if another feed is already selected), choose your feed, and click **Select product feed**.



![A product block with the recently viewed product feed selected](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/5ce2cf29616815637cdd31ce50dd1e42e6c27c9b-3200x1476.jpg?auto=format)

3. In **Styles**, adjust the product details and styling as desired. Under **Layout**, set **Products per row** and **Number of rows** to choose how many products appear in a horizontal layout. For a vertical layout, set **Number of items**.

4. When you’re finished, click the back arrow in the product block’s settings to return to the template. Wait for the editor to finish saving your changes before leaving.



## Outcome

When this message is sent, the product block displays products based on each recipient’s browsing, cart, or checkout activity, depending on the feed you selected. Recently viewed products are not necessarily shown in strict chronological order: repeated views can affect their order. If a recipient has little or no relevant history, the block uses the fallback products selected in your feed settings, such as best-selling or most viewed products.

In a metric-triggered flow email, items from the event that triggered the flow are excluded from the product feed. For example, a flow triggered by Viewed Product won’t show that triggering product in this block.

Klaviyo must identify a visitor to associate their viewed products with a profile. Learn how onsite tracking identifies [site visitors](https://help.klaviyo.com/hc/en-us/articles/115005076767.md#who-klaviyo-tracks5).

## Additional resources

- [Troubleshooting viewed product tracking](https://help.klaviyo.com/hc/en-us/articles/4416172774939.md)
  Learn how to troubleshoot issues with your Viewed Product tracking, which is used to track when visitors view products on your site. For some ecommerce platforms, Viewed Product is tracked automatically when you integrate with Klaviyo. For other ecommerce platforms, a snippet must be manually added to your product page template. 
- [How to use product feeds and recommendations](https://help.klaviyo.com/hc/en-us/articles/115005082787.md)
  Learn how to create a product feed in Klaviyo in order to use product recommendations in your messaging. Product feeds take in data from your product catalog and customer behavior (e.g., the products they’ve viewed or purchased in the past) and use this information to provide custom product recommendations for your subscribers.
