Add template file

We are doing what Google recommends for reasons I have pointed out somewhere else ???
1. It's asynchronous code so it does not block anything, hence no need for footer
2. Putting it in head ensures it gets loaded before a visitor quickly leaves a page, ensuring more accurate analytics results, also this is vital for anybody who uses Google Analytics in conjunction with Google Ads and making revenue off it.