Difference between revisions of "MediaWiki:Common.js"

From Clean
Jump to: navigation, search
m (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. */
<script type="text/javascript">
 
 
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"));
</script>
 
<script type="text/javascript">
 
 
var pageTracker = _gat._getTracker("UA-3835508-1");
 
var pageTracker = _gat._getTracker("UA-3835508-1");
 
pageTracker._initData();
 
pageTracker._initData();
 
pageTracker._trackPageview();
 
pageTracker._trackPageview();
</script>
 

Revision as of 16: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();