What is the best way to track affiliate referrals in HubSpot CRM?

Automated would be great. Referred by and then when you type in the name, the contacts are queried. It would be simple to have this functionality. It would make reporting much easier. I would want to be able to see by contact who they had referred.