CS-Cart is a shopping cart solution for building an eCommerce website of any size: from a small web store to a virtual shopping mall.

The integration is done by adding a custom tracking code to it's 'Thank you' page. You can track subtotal, product ID and order ID with it.

1.

Login

Login to your admin panel and navigate to Design> File editor. Now, use the left menu to open file Templates> Views> Checkout> Complete.tpl

2.

Per order tracking code

Place the sale tracking code to the very end of the file:

<!-- Post Affiliate Pro integration snippet -->
<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');var sale = PostAffTracker.createSale();
sale.setTotalCost('{$order_info.subtotal}');
sale.setOrderID('{$order_info.order_id}');
sale.setProductID('{$product.product_code}');

PostAffTracker.register();
</script>
<!-- /Post Affiliate Pro integration snippet -->

Save your changes. You are done.

3.

Per product tracking code

Place the sale tracking code to the very end of the file:

<!-- Post Affiliate Pro integration snippet -->
<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
{foreach from=$order_info.products item="product" key="key"}
var sale{$product@iteration} = PostAffTracker.createSale();
sale{$product@iteration}.setTotalCost('{$product.subtotal}');
sale{$product@iteration}.setOrderID('{$order_info.order_id}({$product@iteration})');
sale{$product@iteration}.setProductID('{$product.product}');
sale{$product@iteration}.setCurrency('{$order_info.secondary_currency}');
sale{$product@iteration}.setData1('{$order_info.email}');
{if $product@iteration < $order_info.products|@count}
sale{$product@iteration}.doNotDeleteCookies();
{/if}
{/foreach}
PostAffTracker.register();
</script>
<!-- /Post Affiliate Pro integration snippet -->

Save your changes. You are done.
If you wish to save Product SKU instead of product name you can use {$product.product_code}.


Also, do not forget to integrate your site with the click tracking code to make it all working correctly.

The click tracking code can be found in your merchant panel > Tools > Integration > Click Tracking.

From there just copy it, then login to your CS-cart admin panel, navigate to Design > Templates > Index.tpl and paste it to the very bottom.

That's it.