Implement affiliate tracking in KISSmetrics