Adding analytics to main page