updated ganalytics code