fixed analytics script