Difference between revisions of "MediaWiki:Common.js"

 
Line 1: Line 1:
var _gaq = _gaq || [];
+
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
_gaq.push(['_setAccount', 'UA-28926290-24']);
+
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
_gaq.push(['_setDomainName', 'micdoodle8.com']);
+
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
_gaq.push(['_trackPageview']);
+
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  
(function() {
+
  ga('create', 'UA-28926290-24', 'auto');
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+
  ga('send', 'pageview');
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 
})();
 

Latest revision as of 17:34, 7 July 2014

  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-28926290-24', 'auto');
  ga('send', 'pageview');

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis
Looking for a server?

Join Techworld - an amazing custom modpack server.