Skip to content

Commit

Permalink
Move gh-pages Google Analytics to the <head>.
Browse files Browse the repository at this point in the history
  • Loading branch information
benpickles committed Sep 27, 2010
1 parent 34d2bfb commit ad2c9c0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
3 changes: 1 addition & 2 deletions docs/template.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<title>js-model &bull; models in your JavaScript</title>
<link href="docs/style.css" rel="stylesheet">
<%= analytics %>
</head>
<body>
<h1>js-model (<%= @version %>)</h1>
Expand Down Expand Up @@ -30,7 +31,5 @@
<footer>
<p>&copy; 2010 <a href="http://benpickles.com/">Ben Pickles</a>. See <a href="http://github.com/benpickles/js-model/blob/master/LICENSE">LICENSE</a> for details.</p>
</footer>

<%= analytics %>
</body>
</html>
23 changes: 12 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
<head>
<title>js-model &bull; models in your JavaScript</title>
<link href="docs/style.css" rel="stylesheet">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-117680-14']);
_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>
</head>
<body>
<h1>js-model (0.9.2)</h1>
Expand Down Expand Up @@ -840,16 +851,6 @@ <h4 id="update"><code>update(model, callback)</code></h4>
</div>

<footer><p>&copy; 2010 <a href="http://benpickles.com/">Ben Pickles</a>. See <a href="http://github.com/benpickles/js-model/blob/master/LICENSE">LICENSE</a> for details.</p>
</footer><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-117680-14']);
_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>
</footer>
</body>
</html>

0 comments on commit ad2c9c0

Please sign in to comment.