I'd recommend using Wordpress SEO by Yoast and adding your analytics number through that plugin. If you change or update your theme, the tracking will still be there and this SEO plugin is an essential install for me.