Difference between revisions of "MediaWiki:Common.js"

From CoinFactsWiki
Jump to: navigation, search
(Created page with "Any JavaScript here will be loaded for all users on every page load.: <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://...")
 
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"));
Line 8: Line 8:
 
var pageTracker = _gat._getTracker("UA-3791435-22");
 
var pageTracker = _gat._getTracker("UA-3791435-22");
 
pageTracker._trackPageview();
 
pageTracker._trackPageview();
} catch(err) {}</script>
+
} catch(err) {}

Revision as of 17:29, 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"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-3791435-22");
pageTracker._trackPageview();
} catch(err) {}