Correct analytics code