Magento Core: Add ShopZilla tracking codes

Send Snippet To: Save this snippet to Code Collector Pro -- view all tamburra's snippets
language: Other
license: Other

Code for Snippet:

                
---------------
Open:
---------------
 
/app/design/frontend/base/default/template/checkout/success.phtml
 
 
---------------
Add To Bottom Of Page:
---------------
 
<!-- Shopzilla Tracking -->
<!-- Start -->
 
<?php
//Get Order Number & Order Total 
$order = Mage::getModel('sales/order')->loadByIncrementId(Mage::getSingleton('checkout/session')->getLastRealOrderId()); 
$amount = number_format($order->getGrandTotal(),2); 
?>
 
<script language="javascript">
<!--
	/* Performance Tracking Data */
	var mid            = '247976';
	var cust_type      = '';
	var order_value    = '<?php echo $amount; ?>';
	var order_id       = '<?php echo $this->getOrderId() ?>';
	var units_ordered  = '';
//-->
</script>
<script language="javascript" src="https://www.shopzilla.com/css/roi_tracker.js"></script>
 
<!-- End -->
<!-- Shopzilla Tracking -->
comments powered by Disqus

Info

Tags: Core CE 1.6

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 5664
Date Added: 2012-01-24 06:11:33
Last Modified: 0000-00-00 00:00:00

Web Analytics