Adding Affiliate tracking code to the Order Complete page

PRESSERO > *Pressero FAQs
Example Question from a customer: 
We need to add this code:

<script type="text/javascript">
<!--
var value="XXXX"; //Value of sale
var ref="XXXX"; //Your unique reference


var mid="33087";
var goalid="1652";
//-->
</script>
<script type="text/javascript" src="https://aflite.co.uk/js/track.js"></script>

Where Value of Sale is the order total and Unique Reference is the order number.

We can easily add it to the Complete page using the Checkout Conversion script section but not sure if there's a way to add variable fields to this?

Answer: 
The Google eCommerce code should be automatically generated and placed into your order complete page, as long as you have a valid Google analytics code snip in the analytics section.

There is an *undocumented* feature which you can potentially tap into for using another eCommerce analytics or affiliate tracking tool:
  1. In site settings (admin) to the Instructions tab and select the Checkout Successful Instructions page.
  2. Click the HTML view at the bottom of the editor
  3. Enter the HTML. You can use the following tags to insert order date:
  • ###ORDERNUMBER###
  • ###ORDERTOTAL###
  • ###ITEMCOUNT###
  1. for example: <img border="0" src="http://www.site.com/affiliate/sale.php?profile=72198&idev_saleamt=###ORDERTOTAL###&idev_ordernum=###ORDERNUMBER###" width="1" height="1">
  2. Click save