Google analytics code after </html>

3 replies
  • WEB DESIGN
  • |
I just found out that my webmaster placed the analytics code wrong, I guess:

It's at the end of the source code and after </html> placed:

</html>

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject'].....................
..................................
..............................

</script>

How does it affect my ranking?
#&lt or html&gt #< or html> #analytics #code #google
  • Profile picture of the author Zenoth
    Probably it will not affect your ranking (although sites with clean HTML are preferred), but it will make your HTML to be invalid when you try to validate your site with http://validator.w3.org/
    Signature
    {{ DiscussionBoard.errors[9824085].message }}
  • Profile picture of the author mr_banks
    You'll be fine and your rankings will not be affected. Now that you're aware of the problem just move it back to the correct space.

    Also, if you're using the new asynchronous code it should be placed in the header.
    {{ DiscussionBoard.errors[9824682].message }}
    • Profile picture of the author ClaudeMonet
      Hey guys, thanks for letting me know. I think I will do the adaptions soon
      Signature
      I need a very skilled web developer for my growing project! Long term cooperation appreciated!
      {{ DiscussionBoard.errors[9825459].message }}

Trending Topics