var script = document.createElement('script'); script.src = "https://www.googletagmanager.com/gtag/js?id=UA-120792877-1"; document.body.appendChild(script); window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'UA-120792877-1');