fixes analytics script