Injected analytics logging into all API methods