So I installed my Google Analytics script in the "SCRIPT TO BE APPENDED" area of the template editor.
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'XXXXXXXXXXXX']);
_gaq.push(['_setDomainName', 'XXXXXXX.XXX]);
_gaq.push(['_setAllowLinker', true]);
_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>
And after each "save" of the template editor and backslash "\" is added to the code. Save again = another backslash. See below:
<script type=\\\\\\\"text/javascript\\\\\\\">
var _gaq = _gaq || [];
_gaq.push([\\\\\\\'_setAccount\\\\\\\', \\\\\\\'UXXXXXXXXXXXXXX\\\\\\\']);
_gaq.push([\\\\\\\'_setDomainName\\\\\\\', \\\\\\\'XXXXXXXXXXX.COM\\\\\\\']);
_gaq.push([\\\\\\\'_setAllowLinker\\\\\\\', true]);
_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>