Updated gAnalytics code