edit analytic code