How does the tracking on these sites work anyway?
Cookies,
Qudico / TCB send you to an affiliate link to the shopping site.
When you complete the purchase the merchant reports this to the Affiliate Network, who they pay.
The tracking is often in the form of JavaScript or a 1 pixel image shown on the success page of the checkout.