Skip to content

Commit

Permalink
Adding Google UA code to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
respondcreate committed May 23, 2015
1 parent d29b248 commit 2893e94
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,17 @@
{% extends "!layout.html" %}

{% set css_files = css_files + ['_static/css/custom.css'] %}

{% block footer %}
{{ super() }}
<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-6259764-6', 'auto');
ga('send', 'pageview');

</script>
{% endblock %}

0 comments on commit 2893e94

Please sign in to comment.