Difference between revisions of "MediaWiki:Common.js"

From CoinFactsWiki
Jump to: navigation, search
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.");
+
document.write("<script type='text/javascript' src='/analytics.js'></script>");
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) {}
 

Revision as of 18:07, 3 January 2017

/* Any JavaScript here will be loaded for all users on every page load. */

document.write("<script type='text/javascript' src='/analytics.js'></script>");