MediaWiki:Shikiwiki.js: Difference between revisions

From OLPC
Jump to navigation Jump to search
(try removing the <nowiki> tags, they cause errors in the default skin in Firefox 2 and Firefox 3.1)
(the line ending + gaJsHost + " caused JavaScript errors, so joined it to next line)
Line 1: Line 1:
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." :
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." :
"http://www.");
"http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
</script>
<script type="text/javascript">
<script type="text/javascript">

Revision as of 21:59, 3 November 2008

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-4975748-1");
pageTracker._initData();
pageTracker._trackPageview();