Some code that you can use to track affiliate program and send info to Zendesk.