Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback

The **Recently Viewed** widget in Optimizely <<product-name>> allows users to go back to a previously viewed product after having navigated to another product's **Product Detail** page. This widget is available for display on both the **Product Detail** page and the **Cart** page. To avoid clutter and confusion, only one instance of a product will display in the widget and the number of products can be controlled. The widget offers two view types to show or hide or show the pricing and add to cart information. And the number of days that previously viewed products are displayed is also customizable. Signed-in users will see their recently viewed products show up if they sign-in on a different browser or device. Review the settings below to both enable the widget and adjust the widget behavior.

The **Recently Viewed** widget is not enabled by default, so step one is to enable it. After doing so, a few additional settings are displayed to customize the bahavior.

Go to **Admin Console** \> **Settings** \> search for "Recently Viewed" and select one of the listed settings:

<table class="TableStyle-Borders" style="width: 100%;" data-cellspacing="0"> <colgroup> <col style="width: 50%" /> <col style="width: 50%" /> </colgroup> <thead> <tr class="header TableStyle-Borders-Head-Header1"> <th class="TableStyle-Borders-HeadE-Regular-Header1">Setting Name</th> <th class="TableStyle-Borders-HeadD-Regular-Header1">Description/Value</th> </tr> </thead> <tbody> <tr class="odd TableStyle-Borders-Body-Row1"> <td class="TableStyle-Borders-BodyE-Regular-Row1">Recently Viewed - Enabled</td> <td class="TableStyle-Borders-BodyD-Regular-Row1">Select <strong>Yes</strong>, for this widget to be made available on the page. <strong>Default value:</strong> No</td> </tr> <tr class="even TableStyle-Borders-Body-Row1"> <td class="TableStyle-Borders-BodyE-Regular-Row1"><p>Recently Viewed - Simplified</p></td> <td class="TableStyle-Borders-BodyD-Regular-Row1"><p>Hide pricing and add to cart information. <strong>Default value:</strong> Yes.</p> <p><strong>Note:</strong> This setting was removed in version 4.4.4 and is now a part of the options within the <strong>Product Carousel</strong> widget.</p></td> </tr> <tr class="odd TableStyle-Borders-Body-Row1"> <td class="TableStyle-Borders-BodyE-Regular-Row1">Recently Viewed - Products to Display</td> <td class="TableStyle-Borders-BodyD-Regular-Row1">The maximum number of products that will display in the Recently Viewed widget. <strong>Default value:</strong> 8; <strong>Max value:</strong>?10.</td> </tr> <tr class="even TableStyle-Borders-Body-Row1"> <td class="TableStyle-Borders-BodyB-Regular-Row1">Recently Viewed - Days to Retain Products</td> <td class="TableStyle-Borders-BodyA-Regular-Row1">The number of days that previously viewed products will display in the Recently Viewed widget. <strong>Default value:</strong> 30; <strong>Max value:</strong>?43</td> </tr> </tbody> </table>


Due to the creation of the **Product Carousel** widget in version 4.4.4, the **Recently Viewed** widget has been deprecated. If this widget currently exists on a website, it will remain active, but cannot be re-added once removed.