Shopp (WordPress shopping cart module) integration
A flexible WordPress ecommerce plugin.
The integration method integrated the “thank you” page in Shopp.
Adding the code
Navigate to /wp-content/themes/your_theme/shopp/ where “your_theme” is name of your theme used by WP and open thanks.php for edit. The javascript tracking code with appropriate variables is below:
<!--PAP sale tracking code starts here-->
<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('<?php shopp('purchase','total'); ?>');
sale.setOrderID('<?php shopp('purchase','id'); ?>');
PostAffTracker.register();
</script>
<!--PAP sale tracking code ends here--->
This is all what you have to do. Do not forget about click tracking code as well.