Integration For Magento

Step 1.

1. In your Magento installation, open the file app/code/core/Mage/Checkout/Block/Onepage/Success.php
2. In the open file, locate the following line:

private $_order;

3. Insert after it:

public function getOrderTotal() {
$orderId = Mage::getSingleton(‘checkout/session’)->getLastOrderId();
$order = Mage::getModel(‘sales/order’)->load($orderId);
return round(floatval($order->getBaseGrandTotal()),2);

Step 2.

1. In your Magento template directory, open the file app/design/frontend/base/<template_name>/template/checkout/success.phtml
2. Go to the very end of the file
3. Insert there the following code:

echo ‘<img src=”<ACCOUNT_ID>/?order_total=’ . $this->getOrderTotal()
. ‘&order_id=’ . $this->getOrderId() . ‘” />’;

Important: Please replace <ACCOUNT_ID> with actual Account ID. You can find Account ID at Edit Campaign -> Traffic Tracking -> Conversion Tracking.

Scroll to Top