diff --git a/templates/partials/footer.html.nunjucks b/templates/partials/footer.html.nunjucks index cdae78d61b3ad503850e3a8ee36b7eca2ed1a383..2b2c3734de6178727c3f1237b630fc4e492851f1 100644 --- a/templates/partials/footer.html.nunjucks +++ b/templates/partials/footer.html.nunjucks @@ -27,6 +27,18 @@ $(document).ready(onresize); })(jQuery); </script> + {% if not config.debug %} + <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-74646565-1', 'auto'); + ga('send', 'pageview'); + + </script> + {% endif %} <script src="{{ config.baseurl }}/theme/lightbox2/dist/js/lightbox.min.js"></script> </body> </html>