Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Which places to I add the code snippet for Google Conversion Tracking?


pulp2

Recommended Posts

Posted

Hi, I'm trying to set up Google conversion tracking. Do I just add the code Google provided to checkout success or to other pages as well? If other pages which ones? Here is what the snippet looks like:

 

<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = YOUR ID HERE;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "666666";
if (1.0) {
 var google_conversion_value = 1.0;
}
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/1056821400/imp.gif?value=1.0&label=purchase&script=0">
</noscript>

 

Any help greatly appreciated!

 

PS I just notice that my topic title says "to I" it should be "do I" sorry about that.

Posted

I believe that for conversion tracking (versus general analytics), you just need the checkout_success page, as that's the page that really tells that the conversion has finished completely...

 

Richard.

Hi, I'm trying to set up Google conversion tracking. Do I just add the code Google provided to checkout success or to other pages as well? If other pages which ones? Here is what the snippet looks like:

 

<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = YOUR ID HERE;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "666666";
if (1.0) {
 var google_conversion_value = 1.0;
}
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/1056821400/imp.gif?value=1.0&label=purchase&script=0">
</noscript>

 

Any help greatly appreciated!

 

PS I just notice that my topic title says "to I" it should be "do I" sorry about that.

Richard Lindsey

Posted

On a side note, I notice that your code has < as the opening of the script tags, you'll probably want to change that to an actual less-than sign or it may not interpret that script block.

 

Richard.

Hi, I'm trying to set up Google conversion tracking. Do I just add the code Google provided to checkout success or to other pages as well? If other pages which ones? Here is what the snippet looks like:

 

<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = YOUR ID HERE;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "666666";
if (1.0) {
 var google_conversion_value = 1.0;
}
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/1056821400/imp.gif?value=1.0&label=purchase&script=0">
</noscript>

 

Any help greatly appreciated!

 

PS I just notice that my topic title says "to I" it should be "do I" sorry about that.

Richard Lindsey

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...