Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • ben_a 65 posts 123 karma points
    Dec 07, 2009 @ 20:00
    ben_a
    0

    Does this inject before </head> tag?

    According to the GA docs, the asynch GA script runs best when it's right before the </head> tag. I had tried putting it in my templates using a regular macro, but if any other macros use the umbraco.library:RegisterClientScriptBlock command, it's possible that the GA script will not be the last script, since these append before the </head> tag.

    So my question is, does this plug-in always inject the code before </head>, or would umbraco.library:RegisterClientScriptBlock in other macros cause it to be bumped up?

  • Chad Rosenthal 272 posts 474 karma points
    Dec 07, 2009 @ 20:21
    Chad Rosenthal
    0

    My feeling is that you are correct, that the Umbraco.library:ReigsterClientScriptBlock would push it up. There may be a small performance hit if it's not the last item, but it should still work properly.

    I'd be interested to hear what others have to say though.

Please Sign in or register to post replies

Write your reply to:

Draft