The google anayltics code doesn’t go there. It’s for ads only, place it in the pagecontainer section.
Templates - page_container

Use the javascript code that adsense provides and upload the .txt file to your public_html

The google analytics code goes in the main template code