converted pageviews tracking to sorted set, and using pre-built getStatsForSet function

thanks @barisusakli