<script type="text/javascript">
-var _gaq = _gaq || [];
-_gaq.push(['_setAccount', '{{ analytics_code }}']);
-_gaq.push(['_trackPageview']);
(function() {
- var ga=document.createElement('script');
- ga.src=('https:'==document.location.protocol ?
- 'https://ssl' : 'http://www')+'.google-analytics.com/ga.js';
- ga.setAttribute('async','true');
- // Avoid problems if the document doesn't actually contain a HEAD element:
- var container = document.getElementsByTagName("head")[0] || document.body;
- container.appendChild(ga);
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', '{{ analytics_code }}']);
+ _gaq.push(['_trackPageview']);
+
+ var ga=document.createElement('script');
+ ga.src=('https:'==document.location.protocol ?
+ 'https://ssl' : 'http://www')+'.google-analytics.com/ga.js';
+ ga.setAttribute('async','true');
+ // Avoid problems if the document doesn't actually contain a HEAD element:
+ var container = document.getElementsByTagName("head")[0] || document.body;
+ container.appendChild(ga);
+})();
</script>