hryvinskyi/magento2-catalog-sorting-most-viewed - Packagist.org
Catalog sort option Most Viewed: the products whose page was viewed most in a recent period first, with views counted in the visitor's browser so cached pages count, ranked by the daily popularity data refresh.