Adding analytics to index.html, history.html, failed.html