AmeriCommerce integration
Hosted shopping cart, allowing multiple storefronts, built in analytics and online marketing tools.
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 Settings > Orders > General – scroll down and paste the following script in the Place Order Script box:
<script id="pap_x2s6df8d" src="https://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="https://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##
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.