fix analytics script