Update analytics code.