Extract analytics to separate script; add root index page