fmartingr
/
shelfzilla
Archived
1
0
Fork 0

Google Analytics code changed to <head />

This commit is contained in:
Felipe Martín 2015-04-13 18:46:07 +00:00
parent 8f8a686c3b
commit b11af66c73
2 changed files with 3 additions and 6 deletions

View File

@ -1,5 +1,4 @@
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ social_config.google_analytics }}']);
_gaq.push(['_trackPageview']);
@ -10,5 +9,4 @@
ga.setAttribute('async', 'true');
document.documentElement.firstChild.appendChild(ga);
})();
</script>

View File

@ -15,6 +15,9 @@
{% endblock %}
{% endcompress %}
<title>{% block page_title %}ShelfZilla{% endblock %}</title>
{% if social_config.google_analytics %}
{% include "_includes/google_analytics.html" %}
{% endif %}
</head>
<body>
{% block navigation_bar %}
@ -121,9 +124,5 @@
{% if not USER_CONFIG.use_pjax %}
<script type="text/javascript">$(function() { window.updateMessages(); });</script>
{% endif %}
{% if social_config.google_analytics %}
{% include "_includes/google_analytics.html" %}
{% endif %}
</body>
</html>