Browse Source

add google analytics

pull/1/head
Brett Langdon 12 years ago
parent
commit
3a20583d21
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      templates/layout.jade

+ 11
- 0
templates/layout.jade View File

@ -34,3 +34,14 @@ html(lang='en')
p © #{ new Date().getFullYear() } #{ locals.owner } — powered by  p © #{ new Date().getFullYear() } #{ locals.owner } — powered by 
a(href='https://github.com/jnordberg/wintersmith') Wintersmith a(href='https://github.com/jnordberg/wintersmith') Wintersmith
//- please leave the "powered by" if you use the design //- please leave the "powered by" if you use the design
script(type='text/javascript').
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-34513423-1']);
_gaq.push(['_setDomainName', '.brett.is']);
_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);
})();

Loading…
Cancel
Save