correct analytics code