How sort Smart Search Result items based on most visited

Iman Emran asked on March 13, 2018 20:24

Hello,

I want to sort Smart Search Results based on most visited items first.

How can I do that with Smart search filter or something like that.

Thanks

Correct Answer

Peter Mogilnitski answered on March 13, 2018 22:51

Not sure that you can something like this right "out of the box". It will require quite a research to do: I think you need to get the data from web analytics if it is enabled. You probably need to add a new field to page (CMS_Document), make it searchable, Have a task that daily collects data from Analytics_Statistics, Analytics_DayHits and updates your new field. If you don't have web analytics enabled you need to use Google Analytics API to collect the data and do the mapping. When you have this field in the index you can boost it in smart search results, i.e. document with higher number of views will appear higher in search results.

2 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.