What is an affiliate tracking code?

It's an ID at the end of the url that identify the affiliates and can be used for tracking clicks, and sales made by affiliates. Without this ID, the affiliate program cannot identify who helped sell their products and pay commission so it is the key of the affiliate program.