Add google analytics snippet

This commit is contained in:
Tyler Hallada 2014-07-29 23:18:33 -04:00
parent fd3001500a
commit 6fede65105
2 changed files with 26 additions and 0 deletions

View File

@ -28,6 +28,19 @@
<!-- Favicon --> <!-- Favicon -->
<link rel="shortcut icon" href="/favicon.png" /> <link rel="shortcut icon" href="/favicon.png" />
<!-- 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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-39880341-1', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
</head> </head>
<body> <body>
<div class="container"> <div class="container">

View File

@ -32,6 +32,19 @@
<!-- Scripts --> <!-- Scripts -->
<script src="js/AnimationFrame.min.js"></script> <script src="js/AnimationFrame.min.js"></script>
<script async src="js/magic.js"></script> <script async src="js/magic.js"></script>
<!-- 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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-39880341-1', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
</head> </head>
<body> <body>
<canvas id="magic"></canvas> <canvas id="magic"></canvas>