Referrals are tracked on a last-click basis. So if a follower clicks on Affiliate A's link and then 2 days later clicks on Affiliate B's link and purchases a course - all referral commission will be awarded to Affiliate B.