Adding fixes from hw6
Adding ganalytics code to index2