]> git.parisson.com Git - diggersdigest.git/commitdiff
add analytics script
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 30 Sep 2015 00:42:34 +0000 (02:42 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 30 Sep 2015 00:42:34 +0000 (02:42 +0200)
app/templates/base.html

index 2d3c8fa11dc95986ab63c9afe4b4e86ac2db6ff1..a72f975660bef04cf4fd806dd2dbeb3e3f91f484 100644 (file)
 <script src="{% static "js/respond.min.js" %}"></script>
 <![endif]-->
 
+<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-3396721-2', 'auto');
+  ga('send', 'pageview');
+
+</script>
+
 {% block extra_head %}{% endblock %}
 </head>