Add conditional to analytics code.

This commit is contained in:
Tom Price
2015-04-01 17:40:28 +01:00
parent 86ba1b4780
commit a23a04920a

View File

@@ -1,3 +1,4 @@
{% if not debug %}
<script> <script>
(function (i, s, o, g, r, a, m) { (function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i['GoogleAnalyticsObject'] = r;
@@ -16,4 +17,5 @@
{% endif %} {% endif %}
ga('require', 'linkid', 'linkid.js'); ga('require', 'linkid', 'linkid.js');
ga('send', 'pageview'); ga('send', 'pageview');
</script> </script>
{% endif %}