only start analytics code in production environment