Out-of-the-box features:
- Conversion tracking
- Commission based on order amount
- Track affiliate coupon code conversions
- Supports lifetime commissions
- Auto-handle recurring commissions
- Auto-handle refunds and disputes
Note: This integration only supports Magento 1
- In the Magento admin area, got to Configuration > General > Design > Footer
Add the following code to the Miscellaneous HTML box.
<script src="https://script.livaffiliate.com/livaffiliate.js" type="text/javascript" async></script> <script type="text/javascript"> (function(t,a,p){t.livaffiliateObject=a;t[a]=t[a]||function(){ (t[a].q=t[a].q||[]).push(arguments)}})(window,'tap'); tap('create', '((((YOUR ACCOUNT ID))))', { integration: "magento" }); tap('detect'); </script>
{{{{NO_ACCOUNT_ID_SET_MESSAGE}}}}
Open the file:
app\design\frontend\XXXX\XXXX\template\checkout\success.phtml
At the end of the file, add the following code:
<?php //Get Order Number & Order Total $order = Mage::getModel('sales/order')->loadByIncrementId(Mage::getSingleton('checkout/session')->getLastRealOrderId()); $amount = number_format($order->getGrandTotal() - $order->getShippingAmount() - $order->getShippingTaxAmount() ,2); ?> <script src="https://script.livaffiliate.com/livaffiliate.js" type="text/javascript" async></script> <script type="text/javascript"> (function(t,a,p){t.livaffiliateObject=a;t[a]=t[a]||function(){ (t[a].q=t[a].q||[]).push(arguments)}})(window,'tap'); tap('create', '((((YOUR ACCOUNT ID))))', { integration: "magento" }); tap('conversion', '<?php echo $this->getOrderId() ?>', <?php echo $amount ?>); </script>
{{{{NO_ACCOUNT_ID_SET_MESSAGE}}}}
Save and you are all done!
Important
Please remember to test a conversion before starting your program. This way you can verify that tracking has been set up correctly. You can create a test conversion by following the steps described here.