I have a custom thank you page for after checkout is finished in WooCommerce where I need to insert order data into a Google ecommerce tracking tag to record the sale in analyti
Try the following (you may have to make some changes and add the affiliation Id):
?>
This code is partially tested and doesn't throw errors… But it need to be tested for real. I hope it will work.
Related: