implemented analytics.