Great question — answering as the UphillTech team:
This really depends on what affiliate software the merchant is using. In theory, you can pass plenty of metadata to the payment system, but in practice, you only pass what you need to make the attribution. i.e. a "ir_click_id" or "transaction_id". As for your browser extension, there are several ways to go about it, and it's generally something that you need to work out with the affiliate program itself, as it relates directly to conversion attribution (not only tracking). For example, imagine the merchant itself gets a visitor to its website from a google ads campaign, and during the checkout process, your browser extension fires a notification to the user: "hey, john! Want an extra...
Full answer by Laurent Malka: https://stackoverflow.stackexchange.com/a/61835395 (CC BY-SA 4.0).
Need it done for your business? UphillTech.