Shopify doesn't offer a most-viewed sort for collections. Here's where to find product views, how to sort a collection by them by hand, when views mislead and what to pair them with, and how to keep a most-viewed order up to date automatically.
Sorting a Shopify collection by most viewed puts the products shoppers look at most at the top of the page. It's a common request, and Shopify doesn't offer it. The sort options in a collection's Default sort drop-down are Most relevant, Best selling, alphabetical, price, date and manual. None of them uses product views. This guide covers where to find view counts, how to sort a collection by them by hand, the ways views mislead and what to pair them with, and how to keep a most-viewed order current without redoing it every week.
Why sort by views at all
Orders are the strongest signal of what sells, but they're slow and sparse. Views arrive sooner and in greater numbers, which makes them useful in three situations:
- New products. A product launched last week has no sales history for Best selling or a sales-based sort to work with, but it has views from day one.
- Considered purchases. In categories like jewellery, furniture or premium apparel, a product may be viewed many times for every order. Views show interest well before orders do.
- Spotting demand early. A product whose views are climbing is telling you something before the sales report does.
Views measure attention, not intent. That's why most-viewed works best as one input to the order rather than the whole of it, which the later sections cover.
Where to find product views
Shopify's built-in collection sorts don't use views, so the numbers have to come from analytics. The most common source is Google Analytics 4. If your GA4 property receives ecommerce events from your store, the Ecommerce purchases report, under Reports > Monetization, lists each item with metrics including Items viewed, Items added to cart and Items purchased. Shopify's Google & YouTube app is the usual way stores connect GA4 and send those events.
- 1In GA4, open Reports > Monetization > Ecommerce purchases.
- 2Set the date range. The last 30 days is a sensible default; 7 days shows what's trending now.
- 3Make sure Items viewed is in the table, and sort by it, highest first.
- 4Search or filter the table for the products in your collection, or export it and filter in a spreadsheet.
How to sort a collection by most viewed, by hand
- 1Export or copy the Items viewed figure for every product in the collection for your chosen period.
- 2Sort the list from most to least viewed.
- 3In Shopify admin, go to Products > Collections, open the collection, and set Default sort to Manually in the Collection items section.
- 4Drag products into the order from your list, or use the Move options to send a product to the beginning, the end or a specific position. The list shows 60 products per page, so the Move options are faster on larger collections.
- 5Save, then check the collection on your storefront, on a phone as well as a laptop.
- 6Repeat whenever the views change enough to matter, which in practice means weekly at least.
For a 30-product collection this takes a few minutes. For ten collections of a hundred products each, every week, it's the job nobody gets to, and the order quietly goes stale.
When views mislead
A pure most-viewed order has some well-known weaknesses. Knowing them is the difference between a sort that helps and one that quietly locks in the wrong products.
Position feeds views
Products at the top of a collection get viewed more because they're at the top. Sort by views, and the leaders keep their place partly because they already had it, while a strong product on row nine never gets the views it would need to rise. A shorter window, such as 7 days, reacts faster, and giving new products a guaranteed slot near the top breaks the loop.
Ads and social spikes
A product featured in a paid campaign or a viral post can collect a large number of views from shoppers who were never likely to buy. On a pure views sort it jumps to the top of the collection for everyone, including the shoppers who came to browse that category.
Interest that doesn't turn into carts
Some products are looked at and rarely bought: a striking piece at a price few pay, or a product whose size runs small. Views alone can't tell the difference between 'wanted' and 'curious'.
Sold-out products still get views
A popular product that has sold out keeps getting views from bookmarks, searches and old links. A views sort keeps it at the top of the collection where nobody can buy it.
Better: views plus intent
The fix for most of these is to pair views with a signal of intent. Add-to-carts are the natural partner: they're nearly as quick as views and much closer to a purchase. Orders and revenue add the proof.
Illustration only, with made-up figures: product A had 2,000 views and 20 add-to-carts in a month; product B had 600 views and 30 add-to-carts. By views, A leads by a long way. By add-to-carts, B leads, and its cart-to-view rate is five times A's. A blended order that weighs both would probably put B first and keep A close behind, which is closer to what shoppers actually do.
- Use a short window for views (7 days) so the order follows what's trending now.
- Weigh add-to-carts and orders alongside views, so attention has to turn into intent to lead the page.
- Keep sold-out products off the first rows, whatever their views.
- Give new products a fair slot near the top, so they can earn views at all.
Keeping a most-viewed order up to date automatically
SellRank, the collection sorting app we build at LeelaRam Technologies, was designed for exactly this. It counts product views and add-to-carts with its own engagement pixel, which installs itself through Shopify's Web Pixels API the first time the app opens. The pixel counts per product per day, as aggregates only, with no customer data, so you have view counts from day one with no Google Analytics needed. On the Scale plan you can also connect GA4 and import up to 90 days of history.
You can rank a collection by views alone, or mix several metrics into one 0 to 100 Balanced score with weights, starting from presets such as Trending. The score is rank-normalised, so one viral product can't flatten everyone else. Percentage slots let you describe the page the way a merchandiser would: for example, the first 20% in stock and ranked by Trending, the next 20% most viewed, and everything else by revenue. An in-stock condition keeps sold-out products out of the top, and pins keep a hero product in place.
The live preview shows the exact order product by product, with the reason for each placement, before anything changes. Sync writes the order into Shopify's own manual sort, with no theme edits. On the Grow plan and up, it re-sorts daily or weekly at an hour in your store's own time zone. Install SellRank free from the Shopify App Store at apps.shopify.com/sellrank-collection-sort. The free plan covers one collection with the full editor, live preview and one live sync.

