Last-click attribution in affiliate marketing is a type of attribution model that assigns full credit for a sale or conversion to the last affiliate that referred the customer to the merchant. This model is often used to track the effectiveness of affiliate marketing campaigns, as it helps measure the success of affiliates in relation to each other and to the merchant. In practice, the last-click attribution model works by assigning an affiliate a “last-click” code. This code is placed within the affiliate’s tracking link and is used to identify the affiliate that referred the customer. When a customer clicks on the affiliate’s link and then proceeds to make a purchase, the last-click code is used to identify the affiliate and credit them with the sale or conversion. For example, if a customer clicks on an affiliate’s link and is then referred to another affiliate’s site before making a purchase, only the last affiliate that referred the customer to the merchant would get credit for the sale. In this case, the first affiliate would not get any credit for the conversion, even though they were the first to refer the customer.