minify and tweak analytics