add google analytics

This commit is contained in:
James Walker 2012-01-03 00:20:32 -05:00
parent 02e6ce6040
commit ceb554831e
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-808595-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

View File

@ -32,5 +32,6 @@
<footer>
&copy; 2002-{{ site.time | date:"%Y" }} {{ site.author }}
</footer>
{% include google_analytics.html %}
</body>
</html>