Complex sentence: The affiliate link tells the network which affiliate sent the traffic and if a purchase is made, the affiliate receives a commission.
Split into simpler sentences: The affiliate link tells the network which affiliate sent the traffic. If a purchase is made, the affiliate receives a commission.