Revert "Revert "ENH: Added google analytics to site""

This reverts commit b95e6fe7e0.
This commit is contained in:
Spencer Lyon
2014-06-25 00:46:35 -04:00
parent fb7460a82f
commit f070c265f9
15 changed files with 190 additions and 0 deletions
+4
View File
@@ -4,6 +4,8 @@
It is very basic. It has some text and a link back to the home page of the
site.
It includes the google analytics template from /layouts/chrome/ga.html
It also closes the <body> and <html> tags for each page.
-->
@@ -17,5 +19,7 @@
</footer>
</div>
{{ template "chrome/ga.html" . }}
</body>
</html>
+17
View File
@@ -0,0 +1,17 @@
<!--
This file contains the necessary information for google analytics to track
visitors and their behavior on my website.
This is specific to this website and will need to be changed for any other
site
-->
<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-36732392-2', 'sglyon.com');
ga('send', 'pageview');
</script>