added analytics to index template