In Publisher you can put your Google Analytics Code, and of course any other custom codes you want, right before
</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
For entering your custom codes before
</body> tag go to Publisher → Analytics/Custom Code.
</body> tag in HTML. Please put code inside
How to Enter my Custom Codes Before
</head>: This code will be placed before
</head> tag in HTML. It’s useful if you have to add an external script.