Skip to content

Commit

Permalink
add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
songz committed Sep 7, 2013
1 parent bf53804 commit 92d9ae3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
10 changes: 10 additions & 0 deletions views/_analytics.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-462500-32', 'opentokrtc.com');
ga('send', 'pageview');
</script>
7 changes: 4 additions & 3 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<link rel="stylesheet" href="/vendors/fontAwesome/css/font-awesome.css" />
<link rel="stylesheet" href="/vendors/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="/css/index.css" />
<link rel="stylesheet" href="https://tokbox.com/css/shared/fonts.css" />
<link href='https://fonts.googleapis.com/css?family=Carrois+Gothic+SC' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="//tokbox.com/css/shared/fonts.css" />
<link href='//fonts.googleapis.com/css?family=Carrois+Gothic+SC' rel='stylesheet' type='text/css'>

<script src="https://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="//code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="/vendors/bootstrap/js/bootstrap.js"></script>
</head>
<body>
Expand All @@ -36,5 +36,6 @@
</div>

<script src="/js/index.js" type="text/javascript"></script>
<% include _analytics %>
</body>
</html>
8 changes: 5 additions & 3 deletions views/room.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<link rel="stylesheet" href="/vendors/fontAwesome/css/font-awesome.css" />
<link rel="stylesheet" href="/vendors/bootstrap/css/bootstrap.min.css" />
<link href='https://fonts.googleapis.com/css?family=Carrois+Gothic+SC' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Carrois+Gothic+SC' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://tokbox.com/css/shared/fonts.css" />
<link rel="stylesheet" href="/css/room.css" />

<script src="https://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="//code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type='text/javascript' src='https://cdn.firebase.com/v0/firebase.js'></script>
<script src="https://swww.tokbox.com/webrtc/v2.0/js/TB.min.js"></script>
<script src="//swww.tokbox.com/webrtc/v2.0/js/TB.min.js"></script>
<script src="/vendors/bootstrap/js/bootstrap.js"></script>
<script src="/vendors/handlebars.js" type="text/javascript"></script>
<script src="/js/layoutContainer.js" type="text/javascript"></script>
Expand Down Expand Up @@ -82,5 +82,7 @@
new User("<%= rid %>", "<%= apiKey %>", "<%= sid %>", "<%= token %>");
</script>

<% include _analytics %>

</body>
</html>

0 comments on commit 92d9ae3

Please sign in to comment.