Permalink
Browse files

add google analytics

  • Loading branch information...
1 parent 9b86c15 commit 1c404f5da743ccf1f9eb41983133756446de863f @daattali daattali committed Sep 28, 2015
Showing with 11 additions and 0 deletions.
  1. +1 −0 _output.yaml
  2. +10 −0 include/google_analytics.html
View
@@ -6,5 +6,6 @@ html_document:
self_contained: false
lib_dir: libs
includes:
+ in_header: include/google_analytics.html
before_body: include/nav.html
after_body: include/license-footer.html
@@ -0,0 +1,10 @@
+<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-68219208-1', 'auto');
+ ga('send', 'pageview');
+
+</script>

0 comments on commit 1c404f5

Please sign in to comment.