Synopsis
To keep track of customers that purchases from your store that was forwarded via an affiliate program, modify the orderconfirmation XML package.
Procedure
To modify the orderconfirmation XML package add a parameter to the "/" template
<xsl:template match="/"
<xsl:param name="PaymentMethod"><xsl:value-of select="/root/Orders/Order/PaymentMethod" /></xsl:param>
<xsl:param name="CustomerID"><xsl:value-of select="/root/Orders/Order/CustomerID" /></xsl:param>
<xsl:param name="PMCleaned"><xsl:value-of select="aspdnsf:CleanPaymentMethod($PaymentMethod)" /></xsl:param>
<xsl:param name="ReceiptURL"><xsl:value-of select="$StoreURL" />receipt.aspx?ordernumber=<xsl:value-of select="$OrderNumber" /></xsl:param>
<!-- NEW PARAMETER BELOW --!>
<xsl:param name="TrackingImage">
<xsl:value-of select="concat('&alt;IMG SRC=http://affiliates.shopathome.com/i_track_sale/413/',/root/Orders/Order/OrderTotal,'/',$OrderNumber,'/12345" />')"/>
</xsl:param>
Replace 12345 with your affiliateID, then insert your image in the body of the package
<xsl:value-of select="$TrackingImage" disable-output-escaping="yes"/>
So your HTML source would be
<IMG SRC="http://affiliates.shopathome.com/i_track_sale/413/10.9500/100010/12345" />