Register with BMI or ASCAP,
Additionally bar codes and whatnot keep track of sales. Then there are other companies that keep track of record sales. Your main thing would be knowing how much product you sent to a store then what the barcode sales say tell YOU how much was sold at that store.