How and where to add google analytics tracking code?
Easiest and most admin-friendly way is to use Google Analytics module:


  Adds the Google Analytics web statistics tracking system to your website.


Just install it, turn it on and configure.


(source: drupal.org)