add analytics and cdn optimizations