General sales / leads tracking

Basic sales or leads tracking explained

To track sales/leads you have to use the sale tracking code. Make sure you also have the Click tracking code integrated in your website (unless you use the Standard link (redirect) linking method or a replicated website). 

The exact integration depends on your shopping cart or payment gateway, so refer to the documentation for the specific shopping cart. Most of the times you can use the general tracking code (below).
 
Each of those tracking methods (even this general method) can be found inside the merchant panel at:
Tools > Integration > Sales / leads tracking
 

General tracking method (JavaScript)

General tracking method uses javascript that you should put into your order confirmation page ("Thank you for order" page). The general tracking code is:
<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('default1');
var sale = PostAffTracker.createSale();
sale.setTotalCost('120.50');
sale.setOrderID('ORD_12345XYZ');
sale.setProductID('test product');

PostAffTracker.register();
</script>
For other available tracking parameters click here.
 
 

Image tracking method (HTML pixel tracking)

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="http://URL_TO_PostAffiliatePro/scripts/sale.php?TotalCost=120.50&OrderID=ORD_12345XYZ&ProductID=test+product"
width="1" height="1" border="0" />


Here are all parameters that you can use in the pixel tracking code:
AccountId, ActionCode, FixedCost, TotalCost, OrderID, ProductID, data1, data2, data3, data4, data5, AffiliateID, CampaignID, BannerID, ChannelID, Commission, PStatus (status of created commission, not payout status), Coupon, Currency and visitorId.

Read more info about parameters of image tracking (pixel)