Welcome to TalkGraphics.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2011
    Location
    Kington, Herefordshire. I used to live on a boat on the English waterways
    Posts
    185

    Default My Analytics code appears twice in the HTML file

    I have built and uploaded my site (www.sproxton.org.uk). I added the Analytics code to the Head going through Utilities --> Web Properties --> Website. The legend on this pane says that the code will be added to all pages.

    Having uploaded all the pages I inspected the HTML files using Notepad and could not find the code. I thought that there might be a glitch in the system and decided to add it to each page separately. So it was in both the global place and individually.

    After a bit the code was in the HTML files twice.

    I have now removed the code from the individual pages but the code is still there twice.

    When I last uploaded it went very quickly and I wondered if the individual pages had not been uploaded. I will now try and edit a couple of pages to see if that forces a correcting upload. I will be back to report but would be interested in any comments from the experts.

    Nick

  2. #2
    Join Date
    Jan 2011
    Location
    Kington, Herefordshire. I used to live on a boat on the English waterways
    Posts
    185

    Default Re: My Analytics code appears twice in the HTML file

    that sorted it.

    It seems that there is a fault with WD MX in that it does not recognise a change in the head code as a change to the HTML file so does not upload it.

    I expect that the easiest work around will be to get WD to upload all files rather than only the changed ones but with my site that could take an hour or two.

    Nick

  3. #3

    Default Re: My Analytics code appears twice in the HTML file

    You were probably viewing cached pages, Theo.

  4. #4
    Join Date
    Jan 2011
    Location
    Kington, Herefordshire. I used to live on a boat on the English waterways
    Posts
    185

    Default Re: My Analytics code appears twice in the HTML file

    Quote Originally Posted by sledger View Post
    You were probably viewing cached pages, Theo.
    I wouldn't think so because I was looking at the folder on my computer from which the files are uploaded.

    N

  5. #5
    Join Date
    Jan 2011
    Location
    Kington, Herefordshire. I used to live on a boat on the English waterways
    Posts
    185

    Default Re: My Analytics code appears twice in the HTML file

    I do hate making a fool of myself but this is one occasion when I have. :-(

    As I went through all the pages removing the page specific code from the head I must have forgotten to click on "Apply" for many of them. Having checked again I find that it is all working as it should.

    Mods: Do remove this thread if you wish. It is of no value except to remind people that they must press Apply or OK as appropriate.

    Sorry to have wasted your time reading this.

    Nick

  6. #6

    Default Re: My Analytics code appears twice in the HTML file


 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •