Google Analytics tag
You could definitely add it to a template, but loo at recommended practices to add. According to most of the experts, it always good to add it directly in the header tag of the website. In any case, both of the above work.
I follow kuware.com for Marketing related Information.