| ... | ... | @@ -1,13 +1,15 @@ | 
| 1 | 1 |  {% if site.google_analytics_tracking_id %} | 
| 2 | - <script type="text/javascript"> | |
| 3 | - var _gaq = _gaq || []; | |
| 4 | -    _gaq.push(['_setAccount', '{{ site.google_analytics_tracking_id }}']); | |
| 5 | - _gaq.push(['_trackPageview']); | |
| 2 | +<script type="text/javascript"> | |
| 6 | 3 |  | 
| 7 | -    (function() { | |
| 8 | -      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
| 9 | -      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
| 10 | -      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
| 11 | - })(); | |
| 12 | - </script> | |
| 4 | + var _gaq = _gaq || []; | |
| 5 | +  _gaq.push(['_setAccount', '{{ site.google_analytics_tracking_id }}']); | |
| 6 | + _gaq.push(['_trackPageview']); | |
| 7 | + | |
| 8 | +  (function() { | |
| 9 | +    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
| 10 | +    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
| 11 | +    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
| 12 | + })(); | |
| 13 | + | |
| 14 | +</script> | |
| 13 | 15 |  {% endif %} |