Difference between revisions of "MediaWiki:Common.js"
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: (function() { var gaScript = document.createElement('script'); gaScript.src = 'https://www.g...") |
|||
| 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. */ | ||
| + | |||
| + | /* --- Google Analytics (GA4) disabled 2026-09-13 while testing page load times --- | ||
(function() { | (function() { | ||
var gaScript = document.createElement('script'); | var gaScript = document.createElement('script'); | ||
| Line 11: | Line 13: | ||
gtag('config', 'G-4GCWLBVJ7T'); | gtag('config', 'G-4GCWLBVJ7T'); | ||
})(); | })(); | ||
| + | --- end disabled block --- */ | ||
Latest revision as of 07:01, 13 September 2026
/* Any JavaScript here will be loaded for all users on every page load. */
/* --- Google Analytics (GA4) disabled 2026-09-13 while testing page load times ---
(function() {
var gaScript = document.createElement('script');
gaScript.src = 'https://www.googletagmanager.com/gtag/js?id=G-4GCWLBVJ7T';
gaScript.async = true;
document.head.appendChild(gaScript);
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-4GCWLBVJ7T');
})();
--- end disabled block --- */