Diferencia entre revisiones de «MediaWiki:Common.js»
De WikiPía
(14 revisiones intermedias por el mismo usuario no mostrado) | |||
Línea 1: | Línea 1: | ||
− | + | var script = document.createElement("script"); | |
− | + | script.src = "https://www.googletagmanager.com/gtag/js?id=G-XYLNJ8YC5J"; | |
− | + | document.head.appendChild(script); | |
− | + | ||
− | + | window.dataLayer = window.dataLayer || []; | |
− | + | ||
function gtag(){dataLayer.push(arguments);} | function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | gtag('js', new Date()); | ||
gtag('config', 'G-XYLNJ8YC5J'); | gtag('config', 'G-XYLNJ8YC5J'); | ||
− |
Última revisión de 14:25 30 ene 2025
var script = document.createElement("script"); script.src = "https://www.googletagmanager.com/gtag/js?id=G-XYLNJ8YC5J"; document.head.appendChild(script); window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-XYLNJ8YC5J');