What is the Shopify Best Selling sort order algorithm (2024)

Surprisingly to me, I could not find any documentation on Shopify on the algorithm behind the 'Best Selling' sort order on collection pages. So I reached out to customer support about it. Here's their explanation:

Best Selling collection sorting is done by adding up the line items that contain a product_id. So for an order with multiple variants, each variant is counted as one instance.

Example:

  • Product A sells 1 item on 3 orders, total 3 sold.
  • Product B sells 4 items in 1 order, total 4 sold.

Product A will appear higher in Best Selling sorting because it appears on more orders. The sales of all variants per product's line item appearances are totaled to calculate best selling. This information will update in real-time.

The timeframe for the calculation is over the lifetime of the store.

In other words, best selling is just a stack ranking of product sales over the life of the store. So there's no recency or seasonality to the algorithm.

Now you know!

What is the Shopify Best Selling sort order algorithm (2024)
Top Articles
Latest Posts
Article information

Author: Manual Maggio

Last Updated:

Views: 5853

Rating: 4.9 / 5 (49 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Manual Maggio

Birthday: 1998-01-20

Address: 359 Kelvin Stream, Lake Eldonview, MT 33517-1242

Phone: +577037762465

Job: Product Hospitality Supervisor

Hobby: Gardening, Web surfing, Video gaming, Amateur radio, Flag Football, Reading, Table tennis

Introduction: My name is Manual Maggio, I am a thankful, tender, adventurous, delightful, fantastic, proud, graceful person who loves writing and wants to share my knowledge and understanding with you.