I am using a webapp for my website which has an option in the settings to add my UA tracking code from google analytics. However, when I view my source, it places the tracking code in the <body>
tag. Google states it should be placed in the <head>
although it still works as intended. I'm not sure if I should edit the source myself and place it in the <head>
or just leave it as-is.
Are there downsides to having it in the <body>
versus the <head>
. Or does it not really matter?
</head>
tag. Your webapp might render differently between clients, depending on your code (i.e., JavaScript), and page views might not register if they bounce early... See this related question: webmasters.stackexchange.com/questions/721/…