MediaWiki:Shikiwiki.js: Difference between revisions
Jump to navigation
Jump to search
m (MediaWiki:ShikiWiki.js moved to MediaWiki:Shikiwiki.js over redirect) |
(this piece of .js shouldn't have </script> tags in the middle) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<nowiki> |
|||
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 type="text/javascript"> |
|||
var pageTracker = _gat._getTracker("UA-4975748-1"); |
var pageTracker = _gat._getTracker("UA-4975748-1"); |
||
pageTracker._initData(); |
pageTracker._initData(); |
||
pageTracker._trackPageview(); |
pageTracker._trackPageview(); |
||
</nowiki> |
Latest revision as of 22:02, 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")); var pageTracker = _gat._getTracker("UA-4975748-1"); pageTracker._initData(); pageTracker._trackPageview();