added analytics code to index and list