Added footer-scripts.html.twig

This commit is contained in:
Oliver Davies 2015-03-17 09:13:37 +00:00
parent 927c4079cf
commit b53dff2d5d
2 changed files with 15 additions and 0 deletions

View file

@ -11,5 +11,7 @@
{% block content_wrapper %}
{% block content %}{% endblock %}
{% endblock %}
{% include 'footer-scripts' %}
</body>
</html>

View file

@ -0,0 +1,13 @@
{% block scripts %}{% endblock %}
{% if site.google_analytics_tracking_id %}
<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', '{{ site.google_analytics_tracking_id }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}