Fixed analytics script