I own multiple affiliate websites and I am currently working on a piece of software that matches clicks and sales to visitors in GA. This allows me to see my earnings, the number of transactions and best advertisers directly in GA rather than having to sum up the different commissions from various networks.
However, sometimes a sale is rejected by an advertiser, for instance if someone returns (some of) the products sold. In these cases, I need to update the sales in GA. I currently use the normal (not enhanced) GA E-commerce plugin where I can easily submit a transaction or (partial) refund with this payload via the measurement protocol:
{v: 1, t: transaction, tid: something, cid: something, ti: xxx, tr: (-)xx, ta: advertiser}
However, every time I issue a refund, GA increases the transaction count and conversion rate, which skews my data. How can I solve this? I've had a look at the enhanced E-commerce plugin, but it seems partial refunds only work when using products and their respective prices, which is information that I simply do not have for every sale.
Thanks in advance.