Please note that we currently support Magento I integrations only.
In your Magento admin area, go to Configuration > General > Design > Footer and add the following code to the Miscellaneous HTML box:
<script src="https://script.tapfiliate.com/tapfiliate.js" type="text/javascript" async></script>
<script type="text/javascript">
(function(t,a,p){t.TapfiliateObject=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>
Don't forget to replace 'YOUR ACCOUNT ID'
with a respective value from your Tapfiliate account.
2. Open the file: app\design\frontend\XXXX\XXXX\template\checkout\success.phtml
and add the following code snippet at the end of it:
<?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.tapfiliate.com/tapfiliate.js" type="text/javascript" async></script>
<script type="text/javascript">
(function(t,a,p){t.TapfiliateObject=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>
Please remember to run a test before you go live. You can create a test conversion by following the steps described here.
You can also check our Magento integration guide here.
FAQ
What features are supported by the Tapfiliate Magento integration?
The out-of-the-box integration supports:
Conversion tracking
Commission based on order amount
Does Tapfiliate offer a native integration for Magento 2?
No, Tapfiliate doesn't offer a native integration for Magento 2.
Are there alternative options for integrating Tapfiliate with Magento 2?
Yes, third-party extensions might be available. However, Tapfiliate doesn't offer support for these integrations. This article provides more information on Tapfiliate Magento 2 integration.