Add analytics

This commit is contained in:
Ariejan de Vroom 2013-03-24 17:12:09 +01:00
parent c48ae93998
commit c0ed065400

View File

@ -86,3 +86,13 @@
%span ariejan.net © 1999 - #{Time.now.year} Ariejan de Vroom
/ __________________________________________________ Finish Footer
%script{:src => "/js/plugins.js", :type => "text/javascript"}
:javascript
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-60089-16']);
_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);
})();