When tracking sales, brand marketing teams often pay influencers for each customer they bring in through their custom code. Whenever a customer buys a brand's products or services using the influencer's code or an affiliate link, the influencer earns commissions based on their contract with the brand.