osCmax v2.5 User Manual
Results 1 to 6 of 6

Google Adwords ROI Tracking

This is a discussion on Google Adwords ROI Tracking within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; I am trying to get the ROI tracker the Google is providing to work. I looked over at the oscommerce ...

      
  1. #1
    New Member
    Join Date
    Feb 2004
    Posts
    12
    Rep Power
    0


    Default Google Adwords ROI Tracking

    I am trying to get the ROI tracker the Google is providing to work. I looked over at the oscommerce forums and someone provided a way to do it, but it is not working for me. I think it has something to do with BTS.

    Here is the post over there:
    http://forums.oscommerce.com/index.p...p;#entry240251

    I cannot get the Google logo box to show up or have anything tracked.

    Any ideas?

    Burke

  2. #2
    Active Member chrismole's Avatar
    Join Date
    Dec 2003
    Location
    Chicago
    Posts
    102
    Rep Power
    9


    Default

    You need to copy the code Google Adwords provides for conversion tracking into catalog/checkout_success.php. It's that simple. It worked for me. You should not have to edit any of the php code in the page.

  3. #3
    New Member
    Join Date
    Feb 2004
    Posts
    12
    Rep Power
    0


    Default

    Thanks, I finally figured it out. I was wanting to be able to carry over the order total, so the ROI tracking would work correctly at Google. It finally worked when I figured out which file to put it in. I am finally getting the hang of the BTS system!

  4. #4
    New Member
    Join Date
    Nov 2003
    Posts
    21
    Rep Power
    0


    Default

    Can you please give more details on the placement of google ROI Tracker?

    Thanks
    Kmazumdar

  5. #5
    Member nfmg's Avatar
    Join Date
    Oct 2003
    Location
    Montana
    Posts
    49
    Rep Power
    0


    Default

    Hmmm, I seem to be having problems with the google conversion tracker too. Google's instructions say to have the code in the head, just before the body tag, but I don't see how that could be done.

    I just pasted the javascript in the html template.

    When I process an order after clicking on a google adwords ad, I see the conversion tracker - "Google Site Stats", but no conversion data is showing up in our reports.

    Edit: Doh! I guess there is conversion data, just not in the reporting period I was looking at, which is still strange, but a different sort of problem. Thx anyhow.

  6. #6
    New Member
    Join Date
    Apr 2006
    Posts
    13
    Rep Power
    0


    Default

    I'm having a problem understanding where precisely to put the code for Google's Conversion tracking. I'm using osCMax 2.0 - and I think it's the BTS that is throwing me.

    Also, I want to get the subtotal value so here's what I've done so far:

    in /catalog/checkout_success.php I've added the following code just before // BOF: MOD - PWA: Added a check for a Guest checkout and cleared the session -
    Code:
    //added for Google
    $Query = "select sum(value) as total_value from " . TABLE_ORDERS_TOTAL . " where class = 'ot_subtotal' and orders_id = '" . $HTTP_GET_VARS['order_id'] . "'";
    $result = tep_db_query($Query);
    $row = tep_db_fetch_array($result);
    $subtotal = $row["total_value"];
    And in checkout_success.tpl.php I've added this code just before the image link to "continue" -

    Code:
    	                <!-- Google Code for Purchase Conversion Page -->
    					<script language="JavaScript" type="text/javascript">
    					<!--
    					var google_conversion_id = xxxxxxxxxx;
    					var google_conversion_language = "en_US";
    					var google_conversion_format = "1";
    					var google_conversion_color = "666666";
    					if (subtotal) {
    					  var google_conversion_value = subtotal;
    					}
    					var google_conversion_label = "Purchase";
    					//-->
    					</script>
    					<script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js">
    					</script>
    					<noscript>
    					<img height=1 width=1 border=0 src="https://www.googleadservices.com/pagead/conversion/xxxxxxxxxx/?value=subtotal&label=Purchase&script=0">
    					</noscript>
    Are these placed correctly? I cannot test as the client does not currently have any AdWords campaigns active. However, I added " <? echo $subtotal ?>" after the Google code in checkout.success.tpl.php to see if the value carried through, and it does not appear to.

    ???? I'm stuck. Any suggestions as to what I'm doing wrong?

    Thanks so much!

    EDIT: doh. So I made a slight change to the code on /catalog/checkout_success.php and now all is working fine. Turns out, this part of the query ----
    Code:
    $HTTP_GET_VARS['order_id']
    needed to be -----
    Code:
    $orders['orders_id']
    And now all is groovy - the variable and correct amount gets through. Hope this perhaps helps someone else.

Similar Threads

  1. Google Checkout
    By wptech in forum Google Checkout
    Replies: 19
    Last Post: 08-05-2007, 07:03 PM
  2. Google-Analytics
    By dasmurphy in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 08-24-2006, 09:02 AM
  3. google checkout ?
    By louis1st in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 06-29-2006, 06:24 AM
  4. Google Ads
    By battleaxe in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 06-04-2004, 01:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •