update analytics script