In Publisher you can put your Google Analytics Code, and of course any other custom codes you want, right before </body> or </head> tags very easy.

What is Google Analytics?

Google Analytics is a freemium web analytics service offered by Google that tracks and reports website traffic. Google launched the service in November 2005 after acquiring Urchin. Google Analytics is now the most widely used web analytics service on the Internet. Get started with Google Analytics. After creating your Google Analytics Code, copy it and follow steps below.

How to Enter Google Analytics or any Other Codes Before </body>?

For entering your custom codes before </body> tag go to Publisher → Analytics/Custom Code.

Google Analytics or any other codes before body end tag in Publisher

Google Analytics and JavaScript Codes: This code will be placed before </body> tag in HTML. Please put code inside <script> tags.

How to Enter my Custom Codes Before </head>?

Put custom codes before head end tag in Publisher

Code before </head>: This code will be placed before </head> tag in HTML. It’s useful if you have to add an external script.

Don’t add Google Analytics codes in this field.