SendOwl integration
An independent ecommerce platform that helps you sell your digital products online.
Sell digital downloads, subscriptions & services automatically and securely with SendOwl. Works with any website, social network, blog or ecommerce store.
Integration
You need to log in to your SendOwl admin panel and go to Settings > Customisations > Custom code > Download/Order completion Page (Custom HTML) and insert the below code into it:
<script type="text/javascript">
var papScriptHeader = document.createElement('script');
papScriptHeader.setAttribute('src','//URL_TO_PostAffiliatePro/scripts/trackjs.js');
papScriptHeader.setAttribute('id','pap_x2s6df8d');
papScriptHeader.setAttribute('type','text/javascript');
papScriptHeader.setAttribute('onload','papTrackingFunction()');
document.getElementsByTagName('body')[0].appendChild(papScriptHeader);
function papTrackingFunction() {
PostAffTracker.setAccountId('default1');
var sale = PostAffTracker.createSale();
sale.setTotalCost(sendOwlOrderPrice);
sale.setOrderID(sendOwlOrderId);
PostAffTracker.register();
}
</script>
That’s it!
NOTE: Do not forget to integrate your landing pages with the click tracking code OR use Standard Links (redirect) linking method.