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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Adding Conversion tracking code to ONE page only


Go to End


3 Posts   2672 Views

Avatar
Fabie

Community Member, 28 Posts

5 June 2008 at 10:47am

Edited: 05/06/2008 11:21am

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

Community Member, 66 Posts

5 June 2008 at 11:22pm

Edited: 05/06/2008 11:22pm

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

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

g
Helmut

Avatar
Fabie

Community Member, 28 Posts

5 June 2008 at 11:23pm

Hi Helmut,

Thanks for that, seems like a great simple hack!

Appreciate it :)

fabie