Add analytics.

This commit is contained in:
Brad Fitzpatrick 2011-01-29 10:59:25 -08:00
parent 400e437905
commit ef310690ff
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,8 @@
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21060818-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);
})();

View File

@ -7,6 +7,7 @@
<title>Camlistore</title> <title>Camlistore</title>
{.end} {.end}
<link rel="stylesheet" href="/static/all.css" type="text/css" media="all" charset="utf-8"> <link rel="stylesheet" href="/static/all.css" type="text/css" media="all" charset="utf-8">
<script type="text/javascript" src="/static/all-async.js" async="true"></script>
</head> </head>
<body> <body>