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>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
@@ -16,4 +17,5 @@
{% endif %}
ga('require', 'linkid', 'linkid.js');
ga('send', 'pageview');
</script>
</script>
{% endif %}