Update analytics code for styles