add google Analytics code

Topics: Administration, Core, General
Mar 27, 2012 at 9:08 AM


I want to add the google analytics code for all the pages in my website without using a widget.

I try to add the code in the file : layout.cshtml in the themes folder below the references for style and script files, and in the website its appeared within the body tags.

Where I need to add the code that will be between the head tags?