Forum Moderators: open
I have copied and pasted the code that google gives for my site and put it right above the </body> closing tag.
I try to validate my html code with W3C validator and i get an error for the place where i have put the code.
That is normal because <script> tags are supposed to be put inside the <head> tag not <body> like google suggests!
Any ideas on how to have google analytics code and no html errors on this?
Thank you
That is normal because <script> tags are supposed to be put inside the <head> tag not <body> like google suggests!
What is the error you're getting? Could you post a little bit of code so we know what you're working with?
Just casting about for ideas until you post the error and some code.
This should be solvable. The Analytics code by itself should not and normally doesn't create validation errors.