changed analytics to aggregate in realtime into redis