MediaWiki:Common.js: Difference between revisions

From ICE List Wiki
Jump to navigation Jump to search
Blanked the page
Tag: Blanking
No edit summary
Tag: Reverted
Line 1: Line 1:
/* Google Analytics 4 (GA4) */
(function() {
    // load gtag.js
    var gtagScript = document.createElement('script');
    gtagScript.async = true;
    gtagScript.src = "https://www.googletagmanager.com/gtag/js?id=G-J74YLZ84K3";
    document.head.appendChild(gtagScript);


    // gtag config
    window.dataLayer = window.dataLayer || [];
    function gtag(){ dataLayer.push(arguments); }
    window.gtag = gtag;
    gtag('js', new Date());
    gtag('config', 'G-J74YLZ84K3', {
        anonymize_ip: true
    });
})();
if (mw.config.get('wgUserGroups').includes('sysop')) return;

Revision as of 10:56, 12 December 2025

/* Google Analytics 4 (GA4) */
(function() {
    // load gtag.js
    var gtagScript = document.createElement('script');
    gtagScript.async = true;
    gtagScript.src = "https://www.googletagmanager.com/gtag/js?id=G-J74YLZ84K3";
    document.head.appendChild(gtagScript);

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

    gtag('js', new Date());
    gtag('config', 'G-J74YLZ84K3', {
        anonymize_ip: true
    });
})();
if (mw.config.get('wgUserGroups').includes('sysop')) return;