To add Google Analytics to your blog, you don’t need to modify your theme code at all. You can simple do this in the Edit Site > Details section of your account.

After creating your Google Analytics account, simply log in to and click Edit Site (the little pencil icon) next to the site you want to track. Under “Details", scroll down and enter the code provided by Google in the Google Analytics field, as done below: