Google Analytics in Sitecore
by David on Nov.20, 2011, under Sitecore
The best place to add Google Analytics for a Sitecore website is in your Sitecore layouts files. The layout files are used on all pages so analytics code will be on all pages that way.
One thing to keep in mind here is that you need to remember to add it to any new layouts which might get added or you’ll end up with pages which don’t get tracked. If possible, having a ‘base’ layout which is called into every other layout is preferable so you only need to insert it into that one layout file.

