Updates analytics to the right code