Hi there I've a website which is built in basic HTML. I've installed analytics code on home page in header section but the code appears only on home page. Do i have to install code on each and every webpage manually? This would be difficult and time consuming work. Please suggest me some other way. Thanks in advance.
P.S-the website can not be shifted to some other platform (wordpress or joomla or anything) this wouldn't be a solution for me.
Option Two is server-side includes. You would have to edit each static file once to allow for the include, and add one or two lines to htaccess to parse html as shtml (assuming you don't want to change every single URL and filename everywhere). But once the include code is in place, it's there forever and you can start adding other stuff as well :)
Why do they want it in the HEAD? Analytics has no effect on page content, so shoving it down at the bottom should work equally well, and will let the page load a teeny bit faster.