moved analytics script to top.