Google Analytics code changed to <head />
This commit is contained in:
parent
8f8a686c3b
commit
b11af66c73
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Reference in New Issue