Conversion tracking

Discussion in 'Google AdWords' started by d3z1gnr, May 31, 2008.

  1. #1
    hi guys,

    i have just integrated conversion tracking into the "thank you" page of my clients shopping cart. i have tested the code on a test page with test variables and it seems to go through to google fine. however, uploading the live page we are not getting any results (however there ARE sales occurring).

    my code is as follows (coldfusion MX7)...

    
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-xxremovedxx-1");
    pageTracker._initData();
    pageTracker._trackPageview();
    
    <cfoutput>
    pageTracker._addTrans(
    "#order_id#", // Order ID
    "", // Affiliation
    "#numberFormat(getProducts.currency_value, "_.__")#", // Total
    "", // Tax
    "#numberFormat(getProducts.freight_price, "_.__")#", // Shipping
    "#getBillingInfo.billing_city#", // City
    "#getBillingInfo.billing_state#", // State
    "#billing_country.countries_name#" // Country
    );
    
    <cfloop from="1" to="#arrayLen(arrBasket)#" index="Request.idx">
    pageTracker._addItem(
    "#order_id#", // Order ID
    "#arrBasket[Request.idx][1]#", // SKU
    "#arrBasket[Request.idx][2]#", // Product Name 
    "", // Category
    "#numberFormat(arrBasket[Request.idx][3], '_.__')#", // Price
    "#arrBasket[Request.idx][4]#" // Quantity
    );
    </cfloop>
    </cfoutput>
    
    pageTracker._trackTrans();
    </script>
    
    Code (markup):
    one thing i am wondering is that because we use a third-party payment processor (eg. the customer leaves the site to input credit card) whether the tracking process in interupted or stopped completely?

    any help would be really appreciated.

    mike
     
    d3z1gnr, May 31, 2008 IP
  2. d3z1gnr

    d3z1gnr Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    update - as of this morning a sale has been recorded in the analytics ecommerce section. excellent.

    still slightly worried that not all are being recorded.

    mike
     
    d3z1gnr, Jun 1, 2008 IP
  3. robertpriolo

    robertpriolo Peon

    Messages:
    1,859
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I think this belongs more in the coding section of this forum, not an adwords marketing forum. I see lots of java scripting, see if you can consult with a java programmer
     
    robertpriolo, Jun 2, 2008 IP
  4. cianuro

    cianuro Peon

    Messages:
    1,857
    Likes Received:
    106
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No, there should be no problems. Conversion tracking is based on a cookie.
     
    cianuro, Jun 3, 2008 IP