Web Design & Internet Marketing
Text or Call Now: 813.360.0932


Magento - How to track conversions from Google Adwords

kimfooyoung

magento adwords conversions

If you are running Magento E-Commerce solution and would like to track your search engine marketing - then go ahead and read on... Include the code below in app/design/frontent/default/your_template/template/checkout/success.phtml.  

Below:
 
echo $this->__('Your order # is: %s'$this->getViewOrderUrl(), $this->getOrderId()) ?>.else :?>
echo $this->__('Your order # is: %s'$this->getOrderId()) ?>.endif;?>
 
 
//-------------------------------------------
// START ADWORDS CONVERSION VALUE TRACKING CODE
//-------------------------------------------
$order_details Mage::getModel('sales/order')->loadByIncrementId(Mage::getSingleton('checkout/session')->getLastRealOrderId());$adwords_saleamt $order_details->subtotal?>
<
script language="JavaScript" type="text/javascript">
<script language="JavaScript" src="http://www.googleadservices.com/pagead/conversion.js"><noscript>
<
img height="1" width="1" border="0" src="http://www.googleadservices.com/pagead/conversion/XXXXXXXX---YOURIDHERE---XXXXXX/?label=purchase&guid=ON&script=0"/>
noscript>//-------------------------------------------
// END ADWORDS CONVERSION VALUE TRACKING CODE
//-------------------------------------------
?>
 
From http://www.magentocommerce.com/boards/viewthread/22973/P0/


We thought you might like to see these other posts about ecommerce...



kimfooyoung About The Author
Kim Young is Founder, CEO, and a developer at Foo - a web development company based in Wesley Chapel, Florida. She can also be found on . With over 16 years of experience as a web developer, Kim is excited to share with you tidbits that she has picked up along the way. Kim prioritizes continuing education and out of box thinking in order to bring the most valuable solution to Fooweb's clients.

SHARE WITH YOUR FRIENDS


Let's Do This!


We are so excited to hear more about your organization and chat about how we can drive more traffic your way. Reach out to us now and get a free quote.

Request Pricing Now


web development services© Foo Web Development LLC    Web Design & Development    Serving Clients Worldwide    Client Login   RSS Feed   Feedburner