getAnalytics implemented