Track visits to docs with GA.

This commit is contained in:
Chris Eppstein 2010-03-27 21:17:53 -07:00
parent 72dfe20ca7
commit 03568253bd
4 changed files with 13 additions and 1 deletions

View File

@ -24,3 +24,4 @@
e.after('<span class="swatch" style="background-color:'+e.text()+';"></span>');
});
});
= render "partials/analytics"

View File

@ -11,3 +11,5 @@
#container
#main
= yield
= render "partials/analytics"

View File

@ -0,0 +1,9 @@
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-6779438-1");
pageTracker._trackPageview();
} catch(err) {}</script>