In this article we’ll show you, how to configure recently Viewed/Compared products in Magento 2. Follow this simple guideline…

Step 1: Get Started

Login into Magento Admin Panel and from sidebar go to, Store > Settings > Configuration

How to Configure Recently Viewed/Compared Products in Magento 2

Step 2: Configure Recently Viewed/Compared Products

Now from sidebar go to, Catalog > Catalog

How to Configure Recently Viewed/Compared Products in Magento 2

Now Expand Recently Viewed/Compared Products

How to Configure Recently Viewed/Compared Products in Magento 2

Here you can configure recently viewed/compared products as needed.

How to Configure Recently Viewed/Compared Products in Magento 2

Show for Current: Select website, store view where the configuration applies.

Default Recently Viewed Products Count: Enter the number of recently viewed products to appear in the list.

Default Recently Compared Products Count: Enter the number of recently compared products to appear in the list.

Lifetime of products in Recently Viewed Widget: Set Cookie lifetime.

Lifetime of products in Recently Compared Widget: Set Cookie lifetime.

Click on Save Config button.

How to Configure Recently Viewed/Compared Products in Magento 2

Yeah Done! Let us know in the comment section below if you have any question. We are happy 🙂 to help you!