Google Analytics code changed to <head />
This commit is contained in:
parent
8f8a686c3b
commit
b11af66c73
|
@ -1,5 +1,4 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
var _gaq = _gaq || [];
|
var _gaq = _gaq || [];
|
||||||
_gaq.push(['_setAccount', '{{ social_config.google_analytics }}']);
|
_gaq.push(['_setAccount', '{{ social_config.google_analytics }}']);
|
||||||
_gaq.push(['_trackPageview']);
|
_gaq.push(['_trackPageview']);
|
||||||
|
@ -10,5 +9,4 @@
|
||||||
ga.setAttribute('async', 'true');
|
ga.setAttribute('async', 'true');
|
||||||
document.documentElement.firstChild.appendChild(ga);
|
document.documentElement.firstChild.appendChild(ga);
|
||||||
})();
|
})();
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -15,6 +15,9 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% endcompress %}
|
{% endcompress %}
|
||||||
<title>{% block page_title %}ShelfZilla{% endblock %}</title>
|
<title>{% block page_title %}ShelfZilla{% endblock %}</title>
|
||||||
|
{% if social_config.google_analytics %}
|
||||||
|
{% include "_includes/google_analytics.html" %}
|
||||||
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{% block navigation_bar %}
|
{% block navigation_bar %}
|
||||||
|
@ -121,9 +124,5 @@
|
||||||
{% if not USER_CONFIG.use_pjax %}
|
{% if not USER_CONFIG.use_pjax %}
|
||||||
<script type="text/javascript">$(function() { window.updateMessages(); });</script>
|
<script type="text/javascript">$(function() { window.updateMessages(); });</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if social_config.google_analytics %}
|
|
||||||
{% include "_includes/google_analytics.html" %}
|
|
||||||
{% endif %}
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Reference in New Issue