+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Installing a tracking code site-wide

Installing a tracking code site-wide

3 posts, 0 answered
  1. John
    John avatar
    7 posts
    Registered:
    15 Sep 2011
    15 Sep 2011
    Link to this post
    Hi,

    I need to install a bit of javascript tracking code before the </body> of each page of my website.
    Is there an easy way to do this?

    My first inclination is to to edit each of my master pages to include the bit of javascript and then replace the current .master files with the new ones. Would this be the simplest way to accomplish this task?

    Also, can I edit the .master pages in and make these changes in notepad/dreamweaver, or will I need to use visual studios? 

    Thanks,

    John


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    19 Sep 2011
    Link to this post
    Hello John,

    1. You can edit the master page and put the code in it. You can use each tool that can manipulate XML, HTML content

    2. Another option is creating a user or custom control and put it on your master page, because when you hardcode it in the .master file you cannot edit it from Sitefinity's backend UI.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. John
    John avatar
    7 posts
    Registered:
    15 Sep 2011
    22 Sep 2011
    Link to this post
    Great, thank you Ivan! This answers my question exactly.
Register for webinar
3 posts, 0 answered