[SOLVED] How to add Google Analytics Code WIthout Module

  1. Open the header.tpl file in your preferred editor (see appendix 1 below for a view of my file before it was edited)
  2. Login to your adwords account and generate your custom conversion tracking code.
  3. Paste your Adwords conversion code at the bottom below the closing analytics script tag. (See my example)
  4. Change this parameter within your adwords conversion tracking code: var google_conversion_value = {$trans.total};
  5. Save and push the file live.

please  view video : 


<script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = 1234567890;     //your conversion id given by google!
    var google_conversion_language = "pl_PL";  //for example. You could put your language sign, or create another variable responsible for this.
    var google_conversion_format = "1";        //for example
    var google_conversion_color = "666666";    //example as well
    var google_conversion_label = "xxx-XXx1xXXX123X1xX"; //your label given by google!
    if ( {/literal}{$name_of_cart_value_variable}{literal} ) {
        var google_conversion_value =  "{/literal}{$name_of_cart_value_variable}{literal}"
        var google_conversion_currency =  "{/literal}{$name_of_currency_variable}{literal}"
    }                                          //careful in above lines 
    var google_remarketing_only = false;       //for example
    /* ]]> */
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
    <div style="display:inline;">
        <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1234567890/?value={$name_of_cart_value_variable}&conversion_currency={$name_of_currency_variable}&label=Purchase&script=0"/>         //the last two variables here