How to show a list of recently viewed items?

I currently have a product page that does a search for a bunch of different data uploaded by users to display a product. Currently when I want to display items in a RG, I set data type to Product Listing.

How can I display a RG of the most recently 10 viewed products for the Current User?

This is the set up of how my product page works.


item2

You can make a “Recently Viewed Listings” list field on the User, then when they click an item do Make changes to Current User

Then change the Recently Viewed Listings field set list Current page's Product:converted to list:merged with This User's Recently Viewed Listings:until item # 10

So it puts the recently one in front, adds the current list after, then trims it to 10 items. Might need to experiment with parenthesis (maybe need to enable the setting for it) so it trims the list to 10 including the first item. Even if it doesn’t the list can just be 11 items but your RG you show it :until item # 10

Then your RG just needs to display the user recently viewed listing field

Thank you very much!

1 Like