osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-07-2004, 10:55 PM
New Member
 
Join Date: Feb 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Bsnrjones
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 02-13-2004, 11:17 PM
chrismole's Avatar
Active Member
 
Join Date: Dec 2003
Location: Chicago
Posts: 102
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 5
chrismole
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 02-19-2004, 08:57 AM
New Member
 
Join Date: Feb 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Bsnrjones
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 10-18-2005, 06:25 AM
New Member
 
Join Date: Nov 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kmazumdar
Default

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

Thanks
Kmazumdar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 04-06-2006, 05:29 PM
nfmg's Avatar
Member
 
Join Date: Oct 2003
Location: Montana
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
nfmg
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 08-27-2006, 09:58 PM
New Member
 
Join Date: Apr 2006
Posts: 13
Thanks: 0
Thanked 4 Times in 1 Post
Rep Power: 0
betagirl
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 08:28 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax