Skip to content

Commit e9d9b51

Browse files
committed
adding ga support
1 parent d2c929a commit e9d9b51

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

views/ga.jade

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
| <script type="text/javascript">
2+
|
3+
| var _gaq = _gaq || [];
4+
| _gaq.push(['_setAccount', 'UA-11394224-13']);
5+
| _gaq.push(['_trackPageview']);
6+
|
7+
| (function() {
8+
| var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
9+
| ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
10+
| var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
11+
| })();
12+
|
13+
| </script>

views/layout.jade

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ html
55
link(rel='stylesheet', href='/stylesheets/style.css')
66
body
77
.content
8-
block content
8+
block content
9+
include ga

0 commit comments

Comments
 (0)