Adds analytics and metrics