Magento Resource | E-Commerce Generation Explorer

Archive for July 2010

Setting up Google Adwords Conversion Tracking on your Magento store is relatively easy – but it’s not a built-in Magento feature, so you’ll have to edit a template file. Here are the 4 simple steps that need to be done:


1. Open this file:
/app/design/frontend/default/yourskinname/template/checkout/success.phtml


2. At the bottom of the file, insert this code:

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



3. Login to your Google Adwords account
Under the “Reporting’ tab, click on “Conversions” and follow the steps to get the code that you’ll also need to add to the success.phtml page. It will look something like this:

?View Code JAVASCRIPT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
    <!– Google Code for Sale Conversion Page –>
    <script type=”text/javascript”>
    <!–
    var google_conversion_id = xxxxxxxx;
    var google_conversion_language = “en”;
    var google_conversion_format = “3″;
    var google_conversion_color = “ffffff”;
    var google_conversion_label = “KFKFKFKFKFKF”;
    var google_conversion_value = 0;
    if (200) {
    google_conversion_value = 200;
    }
    //–>
    </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/0987654321/?value=150&amp;label=KFKFKFKFKFKF&amp;guid=ON&amp;script=0″/>
    </div>
    </noscript>



4. Copy Google’s code
And paste it at the very bottom of the page (below the php code from step 2).

· ·

Landing Page is the most important part of your website – it is the page your prospective customers see first, and having it designed well is essential. This video guide will show you exactly how to do that.

·

The first thing for you develop the magento is turning on the Template Path Hints!

·

Quick look for the Magento Administration interface – here, we can take a look into the back-end system that powers this E-Commerce platform. Just click Play to begin!




·

Theme Design by devolux.nh2.me