crazed monkey

Ian Stevens' weblog

RSS

A lesson in properly closing <script> tags

Here I was thinking that my old TTC map was only helping a few dozen people a day. In goes my updated map and up go my visits by several hundred per day. It turns out that I was closing the Google Analytics script tag in the XML style (ie. <script .../>) and not as <script ...></script>. The culprit? IE, of course, which doesn’t support the former.

This entry was posted on Monday, November 13th, 2006 at 10:47 pm and is filed under programming, site. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Responses to “A lesson in properly closing <script> tags”

  1. Matt Says:

    September 9th, 2009 at 5:30 am

    Just got bitten by this one.
    Doesn’t appear to be fixed in the all-new IE8 either!

  2. Michael Rose Says:

    September 28th, 2009 at 1:42 pm

    My internet explorer has developed a long delay when I click on amy inbox or a folder. A message popped up and said that there is an open script and it has to be closed to prevent delays. Can anyone tell be how to locte this script and close. It would be greatly appreciated. Michael Rose

  3. Andrew Says:

    March 23rd, 2010 at 9:31 pm

    Just got bitten too! Firefox broke on me aswell.

Leave a Reply