analytics code tweak