Permalink
Browse files

Adding Google Analytics

  • Loading branch information...
1 parent f0d89eb commit 6682b6c80480bc073cf7f9ad4a2239eb8ca5c137 Jonas Galvez committed Aug 31, 2010
Showing with 20 additions and 0 deletions.
  1. +10 −0 client/index.html
  2. +10 −0 client/voting-room.html
View
@@ -6,6 +6,16 @@
<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.custom.min.js"></script>
<script type="text/javascript" src="/js/index.js"></script>
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-18263476-1']);
+ _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>
<form id="voting-room-form" style="display: none;" action="/voting-room" method="post">
View
@@ -9,6 +9,16 @@
<script type="text/javascript">io.setPath('/js/');</script>
<script type="text/javascript" src="/js/voting-room.js"></script>
<script type="text/javascript">nodevote.voting_room_id = '<%= voting_room_id %>';</script>
+<script type="text/javascript">
+var _gaq = _gaq || [];
+_gaq.push(['_setAccount', 'UA-18263476-1']);
+_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>
<div id="column-b">

0 comments on commit 6682b6c

Please sign in to comment.