Recode analytics code