| 1 |
{% if site.google_analytics_key %} |
| 2 |
<script type="text/javascript"> |
| 3 |
|
| 4 |
var _gaq = _gaq || []; |
| 5 |
_gaq.push(['_setAccount', '{{ site.google_analytics_key }}']); |
| 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> |
| 15 |
{% endif %} |