MediaWiki:Common.js: Difference between revisions

From QME Wiki
Jump to navigation Jump to search
Created page with "// Google Analytics 4 tracking via MediaWiki:Common.js (function() { var gaScript = document.createElement('script'); gaScript.async = true; gaScript.src = 'https://www.googletagmanager.com/gtag/js?id=G-392566862'; document.head.appendChild(gaScript); window.dataLayer = window.dataLayer || []; function gtag(){ dataLayer.push(arguments); } window.gtag = gtag; gtag('js', new Date()); gtag('config', 'G-392566862'); })();"
 
No edit summary
Line 3: Line 3:
   var gaScript = document.createElement('script');
   var gaScript = document.createElement('script');
   gaScript.async = true;
   gaScript.async = true;
   gaScript.src = 'https://www.googletagmanager.com/gtag/js?id=G-392566862';
   gaScript.src = 'https://www.googletagmanager.com/gtag/js?id=G-01G5LMDW7X';
   document.head.appendChild(gaScript);
   document.head.appendChild(gaScript);


Line 11: Line 11:


   gtag('js', new Date());
   gtag('js', new Date());
   gtag('config', 'G-392566862');
   gtag('config', 'G-01G5LMDW7X');
})();
})();

Revision as of 13:56, 24 July 2025

// Google Analytics 4 tracking via MediaWiki:Common.js
(function() {
  var gaScript = document.createElement('script');
  gaScript.async = true;
  gaScript.src = 'https://www.googletagmanager.com/gtag/js?id=G-01G5LMDW7X';
  document.head.appendChild(gaScript);

  window.dataLayer = window.dataLayer || [];
  function gtag(){ dataLayer.push(arguments); }
  window.gtag = gtag;

  gtag('js', new Date());
  gtag('config', 'G-01G5LMDW7X');
})();
By using this site, you agree to the Terms of Use. © 1996–2025 The Quincy Examiner / MTB. All rights reserved.