Great question — answering as the UphillTech team:
I am not sure where you are getting your info from, but when a browser lands on a Shopify page with a ref query parameter (let us say you assigned that to an affiliate code), that ref is saved along with the order created by that browser session. So if links are clicked with affiliate codes, Shopify just assigns them to the order. You get one per order. How is that complicated to deal with? What else are you looking for?
Full answer by David Lazar: https://stackoverflow.stackexchange.com/a/62998728 (CC BY-SA 4.0).
Need it done for your business? UphillTech.