this page simulates your order confirmation or "thank you for order" page. It contains hidden sale tracking code that notifies the affiliate system about the sale. Back to Samples & tests home
To track leads and sales, you have to use sale tracking code. The exact integration depends on your shopping cart or payment gateway, so refer to our documentation for this.
General tracking method uses javascript that you should put to your order confirmation page.
The general tracking code is:<script id="pap_x2s6df8d" src="https://www.afilead.com/afiliacion/scripts/trackjs.js" type="text/javascript"> </script> <script type="text/javascript"> PostAffTracker.setAccountId('default1'); //use this line for PAN account, set here your account Id instead of default1 var sale = PostAffTracker.createSale(); sale.setTotalCost('120.50'); sale.setOrderID('ORD_12345XYZ'); sale.setProductID('test product'); PostAffTracker.register(); </script>
If you don't want to use JavaScript tracking code, you can use also hidden image (hidden pixel tracking) version.
Note that by using hidden the system cannot use functionality of Flash cookies, it will depend only on standard cookies and IP address.
<img src="https://www.afilead.com/afiliacion/scripts/sale.php?TotalCost=120.50&OrderID=ORD_12345XYZ&ProductID=test+product" width="1" height="1"">Variables you can use in hidden image are: