Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Adding Conversion tracking code to ONE page only

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

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

Page: 1
Go to End
Author Topic: 2200 Views
  • Fabie
    Avatar
    Community Member
    28 Posts

    Adding Conversion tracking code to ONE page only Link to this post

    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

  • zyko
    Avatar
    Community Member
    66 Posts

    Re: Adding Conversion tracking code to ONE page only Link to this post

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

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

    g
    Helmut

  • Fabie
    Avatar
    Community Member
    28 Posts

    Re: Adding Conversion tracking code to ONE page only Link to this post

    Hi Helmut,

    Thanks for that, seems like a great simple hack!

    Appreciate it

    fabie

    2200 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.