add analytics.