Yampi integration
A cloud based shopping cart that let’s you sell online the easy way.
1. The Sale tracking code
To integrate your Yampi account you only have to add the sale tracking code to your Checkout> Scripts and Meta Tags section. The code works with the product SKU, cart’s total cost and customer email to support Lifetime Commissions.
<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(orderData.order.total);
sale.setOrderID(orderData.order.id);
sale.setProductID(orderData.order.items[0].product.sku);
sale.setData1(orderData.order.customer.email);
PostAffTracker.register();
</script>
That is it. After you save your changes the sale tracking will start working. To track affiliate orders properly do not forget to integrate your site with the click tracking code.