Can't the tracking information just be stuck in the actual URL itself? Even in the domain name? So instead of amazon.de/product?affilate=hamhamed it would be something like hamhamed.amazon.de/product?
And if that won't work, just encode the entire url as amazon.de/2ec1a277-0c96-40d3-8fe1-e418fd82986d