Only include Google Analytics markup if an account has been entered
This commit is contained in:
parent
f521f8a9ec
commit
64083d6f39
|
@ -1,5 +1,6 @@
|
|||
<!-- Google Analytics -->
|
||||
<script type="text/javascript">
|
||||
{% if site.google_analytics %}
|
||||
<!-- Google Analytics -->
|
||||
<script type="text/javascript">
|
||||
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', '{{ site.google_analytics }}']);
|
||||
|
@ -11,4 +12,5 @@
|
|||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
|
||||
</script>
|
||||
</script>
|
||||
{% endif %}
|
Loading…
Reference in a new issue