Skip to content

Commit

Permalink
added ga
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo14 committed Oct 8, 2017
1 parent 06acd6d commit e050e2c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _output.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ bookdown::gitbook:
<li><a href="./">Data Science Live Book</a></li>
scroll_highlight: yes
edit: https://github.com/pablo14/data-science-live-book/master/%s
includes:
in_header: google_analytics.html



11 changes: 11 additions & 0 deletions google_analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- 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-82047152-1', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
2 changes: 1 addition & 1 deletion index.Rmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Data Science Live Book"
author: "Pablo Casas"
date: "Ago 2017"
date: "October 2017"
site: bookdown::bookdown_site
output: bookdown::gitbook
classoption: oneside
Expand Down

0 comments on commit e050e2c

Please sign in to comment.