update analytics