moved analytics to body beginning