Difference between revisions of "MediaWiki:Common.js"

From CoinFactsWiki
Jump to: navigation, search
Line 3: Line 3:
 
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">
 
 
try {
 
try {
 
var pageTracker = _gat._getTracker("UA-3791435-22");
 
var pageTracker = _gat._getTracker("UA-3791435-22");
 
pageTracker._trackPageview();
 
pageTracker._trackPageview();
 
} catch(err) {}
 
} catch(err) {}

Revision as of 17:30, 3 January 2017

/* 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"));

try {
var pageTracker = _gat._getTracker("UA-3791435-22");
pageTracker._trackPageview();
} catch(err) {}