Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Adding Conversion tracking code to ONE page only


Reply

3 Posts   2213 Views

Avatar
Fabie

5 June 2008 at 10:47am (Last edited: 5 June 2008 11:21am), Community Member, 28 Posts

Hello,

I need to add Google AdWords conversion tracking code to one page only (for instance the "Thank you page on Silverstripe" to track registrations to a newsletter)

If I try to do this via the Silverstripe interface using the "HTML" button it does not save properly and does not allow me to do so : dev.untanglemyweb.com/ConversionTrackingSilverStripe.pdf

Anyone would have a solution for this?

Thanks a lot for your help!

Fabie

Avatar
zyko

5 June 2008 at 11:22pm (Last edited: 5 June 2008 11:22pm), Community Member, 66 Posts

one simple solution might be, hacking your page.ss file

<% if MenuTitle = "yourthankspageMenueTitle" %>
... here comes your AdWordsCode ...
<% end_if %>

g
Helmut

Avatar
Fabie

5 June 2008 at 11:23pm Community Member, 28 Posts

Hi Helmut,

Thanks for that, seems like a great simple hack!

Appreciate it :)

fabie