Skip to content

How to Sort a Shopify Collection by Most Viewed Products

4 November 20267 min readBy , LeelaRam Technologies
Share

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.

  1. 1In GA4, open Reports > Monetization > Ecommerce purchases.
  2. 2Set the date range. The last 30 days is a sensible default; 7 days shows what's trending now.
  3. 3Make sure Items viewed is in the table, and sort by it, highest first.
  4. 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

  1. 1Export or copy the Items viewed figure for every product in the collection for your chosen period.
  2. 2Sort the list from most to least viewed.
  3. 3In Shopify admin, go to Products > Collections, open the collection, and set Default sort to Manually in the Collection items section.
  4. 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.
  5. 5Save, then check the collection on your storefront, on a phone as well as a laptop.
  6. 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.

Was this article helpful?

Sumit Chavda

Written by

Founder, LeelaRam Technologies

Founded LeelaRam Technologies after building and running e-commerce technology for a live jewellery brand. Builds SellRank and Upfront, and writes here about Shopify, merchandising, careers and software that keeps working.

LinkedIn Portfolio All articlesAbout the company

Common questions

Can Shopify sort a collection by most viewed?+

Not natively. A collection's Default sort options are Most relevant, Best selling, alphabetical, price, date and manual, and none of them uses product views. To sort by views, set the collection to manual and arrange it from view data, by hand or with an app.

Where can I see how many views each Shopify product gets?+

Google Analytics 4 is the usual source: if your property receives ecommerce events from your store, Reports > Monetization > Ecommerce purchases lists Items viewed for each product. Shopify's Google & YouTube app is the common way to connect GA4. Some apps, including SellRank, count views with their own pixel.

Should I use 7 or 30 days of views?+

Seven days follows what's trending now and reacts quickly to launches and campaigns. Thirty days is steadier and less swayed by a single spike. Many stores use the short window for a trending section and the longer one for the rest of the collection.

Is most viewed the same as best selling?+

No. Views measure attention and arrive quickly; orders measure purchases and arrive slowly. Shopify's Best selling sort uses the all-time number of orders that include each product. A product can lead one list and sit far down the other.

Will a most-viewed sort show sold-out products at the top?+

It can. Sold-out products keep getting views from bookmarks, searches and old links. Check stock before you arrange a manual order, or use a sort with an in-stock condition so sold-out products stay off the first rows.

How often should I update a most-viewed collection order?+

Weekly at least, and daily during launches, sales and festive peaks, when views change fastest. Doing that by hand gets hard beyond a few collections, which is where an automatic re-sort earns its keep.

Related

Put this to work on your store

SellRank orders any Shopify collection by real demand — free to try on one collection, no code.

See the product