Online course affiliate programs like Udemy and Skillshare work by allowing affiliates to promote their courses and earn a commission on sales. Affiliates are provided with a unique affiliate link, which they can use to promote the course on their website, blog, or social media channels. When someone clicks on the affiliate link and makes a purchase, the affiliate earns a commission on the sale.