Skip to content

Commit

Permalink
add footer and google tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafe committed Jul 28, 2012
1 parent 8fc1b95 commit 80ddf8e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions views/footer.jade
@@ -0,0 +1,7 @@
ul.nav.nav-pills
li
a(href='http://neethack.com') about
li
a(href='https://github.com/Rafe/n37.co') github

include tracker
11 changes: 11 additions & 0 deletions views/tracker.jade
@@ -0,0 +1,11 @@
if TRACKER_KEY
script
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '#{TRACKER_KEY}']);
_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);
})();

0 comments on commit 80ddf8e

Please sign in to comment.