Sample sale / lead tracking

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

Sales / leads tracking explained

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

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://leadgon.com/platform/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>
    

Hidden image example

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.

The hidden image variant of the tracking code above is:
<img src="https://leadgon.com/platform/scripts/sale.php?TotalCost=120.50&OrderID=ORD_12345XYZ&ProductID=test+product" width="1" height="1"">
    

Variables you can use in hidden image are:

TotalCost, OrderID, ProductID, data1, data2, data3, data4, data5, AffiliateID, CampaignID, ChannelID, Commission, PStatus, Currency, FixedCost, CustomCommissionNextTiersFromCampaign and DoNotDeleteCookies