How to track recently viewed

Hey all,

I’m currently redesigning a product page for my company and I want to add a ‘recently viewed’ section to help shoppers navigate back to products they have viewed.

I’m struggling to find a way to be able to track it to see if its being utilised. The site is built on shopify.

Any ideas would be appreciated.