how to track affiliate earnings