Update analytics code and user id