AmeriCommerce is a robust core platform to innovate on top of with more support and development capabilities and the ability to extend the technology that runs thousands of “buy-now-buttons” and carts just like yours.

1.

Sale tracker

To integrate your shopping cart with the sale tracking code, navigate to Store> Store Settings - scroll to the area 'Integration Settings' and place the following script there:

<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('##ORDERSUBTOTAL##');
sale.setOrderID('##ORDERID##');

PostAffTracker.register();
</script>

That's it, save your work and you are done.

2.

Per product integration

If you want to track each item separately, please use this code instead of the one from above step:

<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');

<!--ORDERITEMLAYOUTSTART--> 
var sale##ITEMNR## = PostAffTracker.createSale();
sale##ITEMNR##.setTotalCost('##ITEMTOTAL##');
sale##ITEMNR##.setOrderID('##ORDERID##');
sale##ITEMNR##.setProductID('##ITEMID##');
<!--ORDERITEMLAYOUTEND-->

PostAffTracker.register();
</script>

In case you need to track some extra data, here is a shot list:

  • ##CUSTOMEREMAIL##
  • ##CUSTOMERFIRSTNAME##
  • ##CUSTOMERLASTNAME##

You can find more here:
http://support.americommerce.com/entries/21956548


Do not forget to integrate your shopping cart with the click tracking code. You can do it in your cart admin, in Themes > [Your active theme] > Page Footer. Place the click tracking code there.