Most affiliate programs use cookies to track referrals. This means that when someone clicks on your affiliate link, a cookie is stored on their device, and if they make a purchase within a certain timeframe (cookie duration), you'll receive credit for the sale.