it is rather trivial to add Google Analytics code to your HOTGLUE site.
it requires just one more step before you should copy-paste the code.
after you've created a new 'website profile' on Google Analytics, you were given a special JavaScript code to embed on your page.
the code looks like this (don't copy this code to your site, it will not work! instead get your own!):
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12345678-9']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
what we need to do now is to 'minify' the code so that it all fits on one line, without any breaks.
to our convenience there is a number of websites offering free JavaScript 'minification'.
i used http://javascriptcompressor.com (http://jscompress.com works too)
go to that address, paste-in your Google Analytics code and hit 'compress' button.
in the form below you will instantly get 'minified' version of the code that looks like this (again, don't copy this one!):
<script type="text/javascript">var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-12345678-9']);_gaq.push(['_trackPageview'] );(function(){var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src=(' https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.co m/ga.js';var s=document.getElementsByTagName('script' [0];s.parentNode.insertBefore(ga,s)})();</script>
now copy/paste this 'minified' code into a text block on your HOTGLUE page! make sure that it is all in one line (usually it will be).
once you have the code inside an object just move it somewhere where it is not too noticeable or stuff it under something else on your page.
NOTE: it is normal that the object appears empty once you 'unclick' it - JavaScript is not rendered by HOTGLUE.
NOTE 2: you might want to multiply the Google Analytics object between all pages of your site - just click 'make this object appear on all pages' button and off you go!