add basic analytics.