Referral Fees - how to track

Does anyone have advice on how to track referral fees in Timeslilps?  We have some clients referred by outside attorneys to which we have agreed to pay a referral fee.  I'm wondering how to track this or flag the matters so that calculating the fees would be easy.  Any ideas?