updates the analytics