Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Google Adwords Conversion Tracking: a how-to on adding code

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 04-08-2006, 06:14 AM
 
patrick24601 patrick24601 is offline
 

Senior Member
  
Join Date: Mar 2006
Location: Oklahoma City, OK
Posts: 183
 

Default

The 12345678 was just an example - like in the original post. I have a google conversion ID in my real code.

I'll check the other thing you mentioned. In your code you are actually seeing a subtotal amount appear there?

Thanks,
Patrick
__________________
---
Patrick Allmond
Xcart 4.0.18
Now on a dedicated linux box
Reply With Quote
  #12  
Old 04-08-2006, 06:23 AM
 
patrick24601 patrick24601 is offline
 

Senior Member
  
Join Date: Mar 2006
Location: Oklahoma City, OK
Posts: 183
 

Default

I just went back and read step 3 of your instructions

Code:
3.) Inside your order_message.tpl file, locate the {/section} code (line 19 in my v4.0.14 file) and add a few blank lines inbetween that and the {/if} on line 18.

There you saying to put the google code AFTER the /section but BEFORE the /if. But now in this last post you said the Google code should come after both the /if /section.

Those are conflicting instructions. I am going to go test it the 2nd way and see what I get.
__________________
---
Patrick Allmond
Xcart 4.0.18
Now on a dedicated linux box
Reply With Quote
  #13  
Old 04-08-2006, 07:06 AM
  markcrobinson's Avatar 
markcrobinson markcrobinson is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 180
 

Default You're right

The original post wasn't mine - but now, after rereading it, I did it wrong.
I'll have to check google and see if my conversions are coming through correctly.
__________________
X-Cart version 4.4.5
PHP 5.1.6
GD bundled (2.0.28 compatible)
MySQL server 5.0.45
MySQL client 5.0.45
Web server Apache/2.2.3 (CentOS)
Operation system Linux
Perl not found
XML parser (expat) found
X-Cart directory size 316 Mb
Reply With Quote
  #14  
Old 04-08-2006, 07:15 AM
 
patrick24601 patrick24601 is offline
 

Senior Member
  
Join Date: Mar 2006
Location: Oklahoma City, OK
Posts: 183
 

Default

Sorry about that Mark - my bad.

Let me know what you find out. I am 100% certain mine are not coming through because no amount is showing up in the checkout page.

Patrick
__________________
---
Patrick Allmond
Xcart 4.0.18
Now on a dedicated linux box
Reply With Quote
  #15  
Old 04-10-2006, 11:29 AM
 
patrick24601 patrick24601 is offline
 

Senior Member
  
Join Date: Mar 2006
Location: Oklahoma City, OK
Posts: 183
 

Default

OK. I tried another checkout and this is what I get. I THINK it is working OK but I am not sure I get the IF (10.00) ??

Code:
<script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = MYCONVERSIONNUMBER; var google_conversion_language = "en_US"; var google_conversion_format = "1"; var google_conversion_color = "FFFFFF"; if (10.00) { var google_conversion_value = 10.00; } var google_conversion_label = "Purchase"; //--> </script>

It looks like that amount is still missing in the 2nd half of the script
Code:
<script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js"> </script> <noscript> [img]https://www.googleadservices.com/pagead/conversion/123456789/?value=&label=Purchase&script=0[/img] </noscript>
__________________
---
Patrick Allmond
Xcart 4.0.18
Now on a dedicated linux box
Reply With Quote
  #16  
Old 04-10-2006, 12:43 PM
  markcrobinson's Avatar 
markcrobinson markcrobinson is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 180
 

Default My Code

Mine seems slightly different:

Code:
{literal} <script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = ID##; var google_conversion_language = "en_US"; var google_conversion_format = "1"; var google_conversion_color = "FFFFFF"; if (1) { var google_conversion_value = 1; } var google_conversion_label = "Purchase"; //--> </script> {/literal}

For the first part. The second reads:

Code:
{literal} <script language="JavaScript" src="http://www.googleadservices.com/pagead/conversion.js"> </script> <noscript> [img]http://www.googleadservices.com/pagead/conversion/ID##/?value=1&label=Purchase&script=0[/img] </noscript> {/literal}

It's the code that the google wizard provided. I'd look to the google help or one of the google forums for more inf on the code.

http://www.webproworld.com/ has a good forum for this
__________________
X-Cart version 4.4.5
PHP 5.1.6
GD bundled (2.0.28 compatible)
MySQL server 5.0.45
MySQL client 5.0.45
Web server Apache/2.2.3 (CentOS)
Operation system Linux
Perl not found
XML parser (expat) found
X-Cart directory size 316 Mb
Reply With Quote
  #17  
Old 04-29-2006, 01:34 PM
 
patrick24601 patrick24601 is offline
 

Senior Member
  
Join Date: Mar 2006
Location: Oklahoma City, OK
Posts: 183
 

Default

In this last example your conversion values are only worth 1 or $1. Which means each checkout in Google Adwords is only worth $1.

Ideally we need to get this work to where the checkout is woth the invoice subtotal.

I am still working on this, but does anybody else have the conversion tracking in adwords (not analytics) working and reporting OK.
__________________
---
Patrick Allmond
Xcart 4.0.18
Now on a dedicated linux box
Reply With Quote
  #18  
Old 05-19-2006, 01:01 PM
  markcrobinson's Avatar 
markcrobinson markcrobinson is offline
 

Senior Member
  
Join Date: Jan 2006
Posts: 180
 

Default Google Analytics Tracking

Analytics looks for the URL of the "Thank You" Page for tracking. Can you tell me this URL?
Is it:
Code:
http://<Your URL>/xcart/payment/payment_cc.php
?
This is the page that flashes quickly while the order is being processed.
__________________
X-Cart version 4.4.5
PHP 5.1.6
GD bundled (2.0.28 compatible)
MySQL server 5.0.45
MySQL client 5.0.45
Web server Apache/2.2.3 (CentOS)
Operation system Linux
Perl not found
XML parser (expat) found
X-Cart directory size 316 Mb
Reply With Quote
  #19  
Old 05-19-2006, 01:19 PM
 
patrick24601 patrick24601 is offline
 

Senior Member
  
Join Date: Mar 2006
Location: Oklahoma City, OK
Posts: 183
 

Default

You can also use the page after that - the receipt page. That is what we use for everything.
__________________
---
Patrick Allmond
Xcart 4.0.18
Now on a dedicated linux box
Reply With Quote
  #20  
Old 05-19-2006, 01:46 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

customer/main/order_message.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:27 AM.

   

 
X-Cart forums © 2001-2020