Skip to content
Browse files

ga tracking

  • Loading branch information...
1 parent ee4b3df commit b5ba1d5ac09906ba8062fb1ab52668f72fa04ffa @aaronpowell committed
Showing with 12 additions and 2 deletions.
  1. +12 −2 views/layout.jade
View
14 views/layout.jade
@@ -3,7 +3,7 @@ html.no-js(lang='en')
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1')
- title HTML 2 Jade
+ title HTML 2 Jade - a converter for HTML
meta(name='author', content='Aaron Powell')
meta(name='viewport', content='width=1024, user-scalable=no')
@@ -31,4 +31,14 @@ html.no-js(lang='en')
| .
script(src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js")
- script(src="/app.js")
+ script(src="/app.js")
+
+ script(type='text/javascript')
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-20152461-4']);
+ _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 b5ba1d5

Please sign in to comment.
Something went wrong with that request. Please try again.