How it works
Follow these 10 simple steps to start generating daily product rankings from sales data automatically
Schedule
Schedule
Setup Variables
Setup Variables
Custom SQL Query (Sales Analysis)
Custom SQL Query (Sales Analysis)
Get List of Products from Best Sellers Collection
Get List of Products from Best Sellers Collection
Loop over Products in Best Sellers Collection
Loop over Products in Best Sellers Collection
Set Best Sellers Index Product Metafield to 0
Set Best Sellers Index Product Metafield to 0
Loop over Best Selling Products
Loop over Best Selling Products
Retrieve Product
Retrieve Product
Set Best Sellers Index Product Metafield By Order
Set Best Sellers Index Product Metafield By Order
Sort Products in Best Sellers Collection
Sort Products in Best Sellers Collection
*Required: These following must be installed before using this workflow.
Make it your own
Customize this workflow even further:
Add revenue-based rankings
Modify the SQL query to rank by total revenue (sum of line item prices) instead of quantity sold, prioritizing high-value products over high-volume items.
Create multiple ranking periods
Duplicate the workflow with different time periods (7 days for weekly, 30 days for monthly, 90 days for quarterly) updating different metafields, enabling multiple best-seller views.
Filter by product type or collection
Add WHERE clauses to the SQL query that filter by product type, vendor, or tags, creating category-specific best-seller collections like "Best Selling T-Shirts" or "Best Selling Supplements".
Send ranking reports
Add email or Slack steps after the analysis that send formatted reports of top sellers with rankings, quantities, and revenue to merchandising teams.
Frequently asked questions
How do I change the time period for rankings?
Edit the "Setup Variables" transform step and change the "Days Back" value in the mapping. For example, set to 7 for weekly rankings, 30 for monthly, or 90 for quarterly best-sellers.
Can I display the ranking number on product pages?
Yes, the best_sellers_index metafield can be accessed in Shopify themes. Use Liquid like {{ product.metafields.custom.best_sellers_index }} to display the ranking, or create conditional logic to show "#1 Best Seller" badges.
What happens to products that drop out of the top rankings?
They remain in the collection with their ranking metafield set to 0 (from the reset step). To automatically remove dropped products, you'd need to add logic that compares the current collection to the new rankings and removes products not in the top N.
What is a template?
Templates are pre-made workflows by our team of experts. Instead of building a workflow from scratch, these have all the steps needed to complete the task.
Can I personalize a template?
Yes! Every step can be customized to meet your exact requirements. Additionally, you can even add more steps and make it more sophisticated.
Are templates free?
Yes! Our entire library containing hundreds of templates are free to use and customize to your exact needs.
Ready to start generating daily product rankings from sales data automatically?
Join thousands who've automated their work and saved an average of 3.5 hours every week.
Start with this template — It's free7-day free trial • 12 min setup • Cancel anytime
