View Single Post
  #26  
Old 06-29-2007, 03:34 PM
 
economedical economedical is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Sydney Australia
Posts: 77
 

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

Sorry to revive an old thread but there are still some unanswered questions for me and others. Since this is a 'completed mod' I think it should be cleared up on whether people have it working and what exactly works.

The code supplied by google to us for the second part is noticably different to what is posted here in the thread. I highlighted what I thought was the most relevant difference. I also noted that the other examples of code use the [img][/img] tags instead of the code I have used with the reference to imp.gif - is this the problem?
Code:
{literal} <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/XXXXXXXXX/imp.gif?value=1.0&label=purchase&script=0"> </noscript> {/literal}

I first added the code as supplied by google to the places mentioned at the beginning of this thread. On the final page (order_message.tpl), I got a smarty error at the point I assumed the google message/link was supposed to appear. I then reviewed the code here and added the '{literal}' tags to either side of both bits of code. Now I do not get a smarty error but I also don't see the google link that is supposed to be there on the purchase confirmed page, so I am assuming conversion tracking is not working yet. Anyone have any help or ideas? Would be greatly appreciated. I am a PHP/XCart noob by the way, which may well be apparent.....
__________________
x-cart 4.6.4 RB3 (mystethoscopeshop.com(.au))
x-cart 4.5.0 (4.6.4 RB3 in dev) (economedical.com.au)
ReBoot V3 (great xcartmod)
Big ups to bcsengineering.com great mods excellent support. Also shout out to xcartmods.co.uk, Firetank and alteredcart.com easy add ons for x-cart makes stores look great with minimal fuss.
Reply With Quote