Update analytics codes