update analytics with recommendation.