Created
September 16, 2017 17:52
-
-
Save nickdenardis/3b8091b1e00a3ae511bb70c480f051bd to your computer and use it in GitHub Desktop.
Google Analytics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Universal Analytics - Google Analytics --> | |
<script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | |
ga('create', 'UA-12345678-1', 'wayne.edu'); | |
ga('send', 'pageview'); | |
</script> | |
<!-- Global Site Tag (gtag.js) - Google Analytics --> | |
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-12345678-1"></script> | |
<script> | |
window.dataLayer = window.dataLayer || []; | |
function gtag(){dataLayer.push(arguments)}; | |
gtag('js', new Date()); | |
gtag('config', 'UA-12345678-1'); | |
</script> | |
<!-- Google Tag Manager --> | |
<!-- in the <head> --> | |
<script> | |
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | |
})(window,document,'script','dataLayer','GTM-12345678'); | |
</script> | |
<!-- in the <body> --> | |
<noscript> | |
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-12345678" | |
height="0" width="0" style="display:none;visibility:hidden"></iframe> | |
</noscript> | |
<!-- End Google Tag Manager --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment