Can products in a collection be sorted by views or clicks?

Hey,

I was wondering if there’s a way to sort products within a collection by popularity, such as most viewed or most clicked, rather than just by best-selling. Is that something that can be set up?

Not easily.
There is no such sorting criteria in Shopify natively.

Technically, one can fetch data from the “reports” and re-sort collection with an app like Flow when default collection sort is set to Manual.
It is possible, but not straight-forward.

Search app store for collection sorting apps – some of them may do this as well.

Hi @Ali_09, Shopify does not natively support sorting collection products by “most viewed” or “most clicked.” The default “Best selling” option is calculated exclusively by order volume. To achieve sorting based on views or clicks, you will need to use a third-party application or implement a custom development solution.

Hope this helps :saluting_face:

Hi @Ali_09 ,

Both answers above are right that it isn’t native, but two things are worth adding before you go app-shopping, because they’ll change what you look for.

The data probably isn’t where you’d expect. Shopify’s reports give you product page views - someone landed on the product’s own page. They don’t record impressions of a product card sitting on a collection page, and they don’t tell you which collection a click came from. So the Flow-plus-reports route works mechanically, but it would be sorting on product page views, which isn’t quite the thing you asked for. Anything that genuinely sorts on collection-level views or clicks has to collect that data itself, usually through a pixel or a theme extension.

More importantly, raw views and clicks are the one thing you shouldn’t sort by. Views are mostly a function of position. The product at position 1 gets the most views because it is at position 1. Sort by views and you’re sorting by the output of your own sort order - whatever is on top stays on top, and a genuinely popular product sitting at position 40 can never accumulate enough views to climb. The ranking freezes in place.

What you want is a ratio rather than a count. Anything with impressions in the denominator normalises for position, so products further down can compete fairly:

  • Click-through rate - clicks ÷ impressions. Closest to the “popularity” instinct: how appealing the card itself is.
  • Conversion rate - orders ÷ clicks. Popularity that ends in a purchase.
  • Revenue per impression - revenue ÷ impressions. What a product earns for the space it occupies, which also accounts for price.

One thing worth asking about when you compare apps: whether those figures are calculated per collection or as a single store-wide number per product. The same product behaves very differently in your Sale collection than on a category page, and a blended figure will sort both pages wrongly.

Disclosure: I’m at Seventh Triangle and we build Every Possible Sort ( Every Possible Collection Sort - Auto-sort collections by bestsellers, revenue, stock and price | Shopify App Store ), which tracks those metrics per product per collection and writes the order back to the collection. Whichever route you take though, I’d steer clear of raw view or click counts for the reason above - it’s the one sorting rule that reinforces itself.

Hi, @Ali_09
Hope you are doing great!
By default, Shopify can sort by options like best selling, price, and newest.
For popularity based on views or clicks, you’ll likely need an app that tracks analytics.
Some merchants also build a custom sorting solution for this.