Update analytics script