Wednesday 23 September 2009 1:24:54 am
And how to insert statcounter code into footer js ? It looks like this:
<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=xxxxxx;
var sc_invisible=0;
var sc_partition=33;
var sc_security="yyyyyyy"; </script>
<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a class="statcounter" href="http://www.statcounter.com/"><img class="statcounter" src="http://c34.statcounter.com/xxxxxxx/0/yyyyyy/" alt="invisible hit counter" /></a></div></noscript> <!-- End of StatCounter Code --> Those x's and y's are actually numbers referencing to my account. All I get after publishing is the text on the bottom of window: "Code corrupted. Insert fresh copy. --> " Probably because to me it looks like a HTML wit javascript calls, not javascript. I'm not a programmer, instead of that I'm an user who wants to put mys site out and concentrate on WORKING, So: Where to I need to put that code ? Does it have to be formatted ? How ? Same goes with my Google Analytics code, I actually do not know whether it works, but i leaves a text "-->" on the bottom of the window when published:
<!-- Google code -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxx-y");
pageTracker._initData();
pageTracker._trackPageview();
</script> <!-- End Google code --> In both cases, Google and Statcounter, I have removed those HTML comment lines (like <!--- xxxx --->" ). In both cases, these pieces of code need to be in every page and in both cases the code is ment to be injected into HTML. The question, again, is: How do I put these into my Ez Publish Site ?
|