PDA

View Full Version : OSC conversion tracking!


MyPrintUK
30th September 2008, 10:47
Hi all,

Can anyone help with setting up google adwords conversion tracking with oscommerce.

I have followed the instructions from google but the google text does not seem to appear on the checkout success page. When i view page source the tracking code is their, but as i say the text from google isn't visible?

Any help would great.

Thanks

Lee

Gforster
30th September 2008, 11:54
What text are you expecting to appear ?

Is it actually tracking the sale ?

MyPrintUK
30th September 2008, 11:58
What text are you expecting to appear ?

Is it actually tracking the sale ?

Hi,

I assume that the google site stats text needs to appear?

And yes this is for tracking a sale.

Thanks

Lee

Gforster
30th September 2008, 12:06
I am still not sure what text you think should be appearing, here is the code I use :-

<!-- Google Code for purchase Conversion Page -->
<!-- Google Tracking -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = 123456789;
var google_conversion_language = "en_US";
var google_conversion_format = "2";
var google_conversion_color = "666666";
if (1.0) {
var google_conversion_value = <?php echo round($order_total['value'],2);?>;
}
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/1050635219/imp.gif?value=1.0&label=purchase&script=0">
</noscript>

But my other question was is it actually tracking the conversions, or have you not tested with an order ?

MyPrintUK
30th September 2008, 12:19
I am still not sure what text you think should be appearing, here is the code I use :-

<!-- Google Code for purchase Conversion Page -->
<!-- Google Tracking -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = 123456789;
var google_conversion_language = "en_US";
var google_conversion_format = "2";
var google_conversion_color = "666666";
if (1.0) {
var google_conversion_value = <?php echo round($order_total['value'],2);?>;
}
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/1050635219/imp.gif?value=1.0&label=purchase&script=0">
</noscript>

But my other question was is it actually tracking the conversions, or have you not tested with an order ?

Hi,

I have inserted the same code as you generated from google upon setting up my conversion to be tracked.

I paste the code into my checkout_success.php page. Although google says to paste the code between the <body> tags. My checkout_success.php does not have these tags within the code. So i pasted to code towards the bottom of the page anyway.

Then i do a test purchase from one of my ads, when i get the checkout_success.php page i believe the google stats text should appear. However it does not on mine which i assume means that the conversion code has not placed on the right place on my checkout_success.php

Does this make sense?

Thanks

Lee

Gforster
30th September 2008, 12:30
Your checkout success page should definately have body tags unless you have done some major major mods. The body tags should be around line 74 and the other one 3 lines from bottom.

I still don't know what the google stats text is....
If you look at the code there is nothing there that would display any kind of text, all you need to worry about is if when you place a test order google adwords displays a conversion in your google adwords account (although this can take a while to show).

MyPrintUK
30th September 2008, 13:00
Your checkout success page should definately have body tags unless you have done some major major mods. The body tags should be around line 74 and the other one 3 lines from bottom.

I still don't know what the google stats text is....
If you look at the code there is nothing there that would display any kind of text, all you need to worry about is if when you place a test order google adwords displays a conversion in your google adwords account (although this can take a while to show).


Hi,

I think i have cracked it now. Have just done a test purchase by clicking on one of my ads. I will now wait until tomorrow to see if the conversion was tracking in adwords account.

Thanks for your help.

Lee

MyPrintUK
30th September 2008, 13:50
Hi,

Just to give an update that i have managed to sort this issue.

Thank you very much for your help.

Thanks


Lee