Google Adwords and Magento – Conversion tracking

So you started an Adwords campaign and would like to measure leads and conversions via Adwords. That’s possible of course! First, go to Adwords and to Conversions. Create a conversion and copy the code. It will look something like this:

<!– Google Code for Bestelling Conversion Page –>
<script type=”text/javascript”>
/* <![CDATA[ */
var google_conversion_id = XXXXX;
var google_conversion_language = “en”;
var google_conversion_format = “3”;
var google_conversion_color = “ffffff”;
var google_conversion_label = “YYYYY”;
var google_conversion_value = 0;
/* ]]> */
</script>
<script type=”text/javascript” src=”https://www.googleadservices.com/pagead/conversion.js”>
</script>
<noscript>
<div style=”display:inline;”>
<img height=”1″ width=”1″ style=”border-style:none;” alt=”” src=”https://www.googleadservices.com/pagead/conversion/AAA/ZZZ”/>
</div>
</noscript>

Go to the file /app/design/frontend/default/default/template/checkout/success.phtml and add at the bottom of the file:

<?php
$order_details = Mage::getModel(‘sales/order’)->loadByIncrementId(Mage::getSingleton(‘checkout/session’)->getLastRealOrderId());
$adwords_saleamt = $order_details->subtotal;
?>

Copy your Google Adwords code as well under this code. Under var google_conversion_value = 0; create a line and add:

if (<?php echo $adwords_saleamt; ?>) {
google_conversion_value = <?php echo $adwords_saleamt; ?>;
}

Source: With thanks to: http://www.noamdesign.com/blog/magento-how-to-setup-google-adwords-conversion-tracking/



Linking Magento with MailChimp

Would you like to link Magento with Mailchimp?

  1. Create an account at http://www.mailchimp.com
  2. Download and install the MageMonkey plugin from: http://www.magentocommerce.com/magento-connect/mage-monkey-mailchimp-integration-4865.html
  3. Grab the API key from MailChimp. Login -> Account -> API Key -> Add a Key
  4. Insert the API key in Magento under System -> Configuration -> Clients -> MailChimp -> API Key

Magento MailChimp MageMonkey Plugin