Add some custom metrics for analytics.