Adding Affiliate tracking code to the Order Complete page

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 type="text/javascript" src=""></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?

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:
  • ###ORDERTOTAL###
  • ###ITEMCOUNT###
  1. for example: <img border="0" src="" width="1" height="1">
  2. Click save