I'm trying to insert Google Conversion tracking code into my website. I already have Google Analytics tracking code installed and working, on all pages. See this article for the difference between the two https://adwords.google.com/support/aw/bin/answer.py?answer=55535&cbid=-gii343izfz9n&src=cb&lev=answer
Conversion code needs to be installed on each page where a conversion occurs - like the Thank You page for a purchase or newsletter sign up. And Google specifically says:
First, choose a page that users reach when an action you consider to be desirable has been completed. For example, this might be the 'Thank you for your purchase/download/subscription' page, which a user reaches after they've finished a transaction. This is the conversion page, where you should place the conversion tracking code snippet. The code should be placed between the <body> and </body> tags, in a valid HTML location. It should not be between the < and > of any other tag. Usually, the tag is placed towards the bottom of the web page, since this will be the location of the Google Site Stats text block which will be visible to users who see this page after viewing a Google ad.
None of my pages have body tags in SilverStripe. I guess it's in a template file. When I try to insert the conversion code inside body tags, the script shows up and the tracking object does not.
I've searched these forums for help with where/how to place this code, and I found this one reference:
http://silverstripe.org/archive/show/83408#post83408
one simple solution might be, hacking your page.ss file
<% if MenuTitle = "yourthankspageMenueTitle" %>
... here comes your AdWordsCode ...
<% end_if %>
Is this still the way to do this? This answer was for someone who wanted to place the conversion code on one page only, and I would like to install this code on several pages, not just one. I could just keep writing that code, with different page titles, I guess. Seems inelegant somehow...
Thanks so much,
Susan