Difference between revisions of "MediaWiki:Common.js"

From ETCwiki
Jump to navigationJump to search
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanage...")
 
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. */
 
<!-- Global site tag (gtag.js) - Google Analytics -->
 
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-152385100-1"></script>
+
 
<script>
 
 
   window.dataLayer = window.dataLayer || [];
 
   window.dataLayer = window.dataLayer || [];
 
   function gtag(){dataLayer.push(arguments);}
 
   function gtag(){dataLayer.push(arguments);}
Line 8: Line 7:
  
 
   gtag('config', 'UA-152385100-1');
 
   gtag('config', 'UA-152385100-1');
</script>
 

Revision as of 16:25, 13 November 2019

/* Any JavaScript here will be loaded for all users on every page load. */
<!-- Global site tag (gtag.js) - Google Analytics -->

  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-152385100-1');