Google analytics code after </html>

by 3 replies
4
I just found out that my webmaster placed the analytics code wrong, I guess:

It's at the placed:

</html>

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

</script>

#website design #&lt or html&gt #< or html> #analytics #code #google
  • 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/
  • 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.
    • [1] reply
    • Hey guys, thanks for letting me know. I think I will do the adaptions soon

Next Topics on Trending Feed