Place google analytic code before body tag closing. Check w3c validation error. Also, take help from web developer team if necessary. There may be pasting issue as when we pasting from word the double quotes changes.
Hi, It doesn't meter that your site is developed in PHP, ASP or JSP. Analytical code simply added on before closing body tag