Difference between revisions of "MediaWiki:Common.js"
From Clean
Jump to navigationJump to searchm (New page: →Any JavaScript here will be loaded for all users on every page load.: <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http...) |
m |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
− | |||
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); | 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")); | document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); | ||
− | |||
− | |||
var pageTracker = _gat._getTracker("UA-3835508-1"); | var pageTracker = _gat._getTracker("UA-3835508-1"); | ||
pageTracker._initData(); | pageTracker._initData(); | ||
pageTracker._trackPageview(); | pageTracker._trackPageview(); | ||
− |
Revision as of 15:23, 13 March 2008
/* Any JavaScript here will be loaded for all users on every page load. */ 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-3835508-1"); pageTracker._initData(); pageTracker._trackPageview();