improve new preview; add analytics script