How to setup recently viewed products section?
Follow screenshot and steps below to setup Recently viewed products on product page.
1) Got to Store Admin –> Online Store –> Pages –> Add page
2) Add page title name should be “Recently viewed products”
3) Select “page.recently-viewed” template file
4) Click on “Edit Website SEO” and name sure, page handle name must be “recently-viewed-products”
5) Save Page.
Now Go to Theme Customize -> Open product page > Select Recently viewed products