Heres the problem,
In Masterpage, the google analytics code were pasted before the end of body tag.
body
In ASPX page, I need to generate a script (goo
You could delay your script execution until after the page loads, then it won't matter where your script resides.