We have the strong tracking system Ubercart to track who refer a sale. All affiliates have a unique id in their link and all sales tracked by the unique id in the link through which a sale is referred.