Adding analytics to index page