MediaWiki:Common.js: Difference between revisions
No edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
No edit summary Tag: Reverted |
||
| Line 77: | Line 77: | ||
footer.appendChild(footerMinerva); | footer.appendChild(footerMinerva); | ||
} | } | ||
(function() { | |||
var gtagScript = document.createElement('script'); | |||
gtagScript.async = true; | |||
gtagScript.src = "https://www.googletagmanager.com/gtag/js?id=G-HJRNV2M2V1"; | |||
document.head.appendChild(gtagScript); | |||
gtagScript.onload = function() { | |||
window.dataLayer = window.dataLayer || []; | |||
function gtag(){ dataLayer.push(arguments); } | |||
gtag('js', new Date()); | |||
gtag('config', 'G-HJRNV2M2V1'); | |||
}; | |||
})(); | |||