Support » Fixing WordPress » Code appears above the head on webpage?

  • Resolved michaelhogg

    (@michaelhogg)


    I have this code appearing above the head on the webpage…

    pageTracker._initData(); pageTracker._trackPageview(); } catch(err) {}

    …and it was there when I started this blog a few days ago so I know its nothing I’ve done.

    Can anyone shed some light on this one

    Michael

Viewing 7 replies - 1 through 7 (of 7 total)
  • got a url to your site?

    Thread Starter michaelhogg

    (@michaelhogg)

    looking at your sorce…in the <head> area, you’ve got…

    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-xxxxxxx-4");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    		pageTracker._initData();
    		pageTracker._trackPageview();
    	} catch(err) {}</script>

    notice….the </script>, then it happens again….there is no opening tag for that second </script> so it’s just being treated as text from what I can tell

    Thread Starter michaelhogg

    (@michaelhogg)

    Sorry man, I’ve looked until I’ve gor cascading text in my eyes. I cannot find the script you have shown me, which file is it in?

    oops…I probably should have been more specific. (I was looking at your code from the view->source in my browser)

    It looks like its being inserted into your header…probably by a plugin.

    I’m comparing your source to my source (I also use the google analyticator plugin)

    It looks like something is messed up in the code being inserted into your header by that plugin….

    I bet if you uninstall it, the problem goes away?

    Thread Starter michaelhogg

    (@michaelhogg)

    Thats it! The damned analyticator! It didn’t cause this problem on my other blog though, very strange?

    Many thanks for your help again man, it’s much appreciated!

    Cheers
    Michael

    yeah…analyticator (same version as you) is working fine for me…

    maybe its one of the options? Or a reinstall is needed or something….

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Code appears above the head on webpage?’ is closed to new replies.