Bill Gates’ daughter’s company just got caught doing this exact same “cookie stuffing” thing. There is damning evidence, including internal slack chats and emails that have been confirmed, showing that they knew what they were doing. Something like 80% of all of their tens of millions of dollars in revenue was by hijacking people’s purchases with their affiliate code.
I expect nothing will happen to her, of course.