Skip to content

Commit

Permalink
feat(analytics): added google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbbottam committed Oct 20, 2016
1 parent af2e8f7 commit eebd213
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _includes/ga.html
Original file line number Diff line number Diff line change
@@ -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','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-86047817-1', 'auto');
ga('send', 'pageview', location.pathname);

</script>
1 change: 1 addition & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
</div>

{% include footer.html %}
{% include ga.html %}

</body>
</html>

0 comments on commit eebd213

Please sign in to comment.