Tracking programs

Hello, wondering what the best way is to track programs offered on line for free or for sale.

the SKU code, coupon codes?