added analytics.