Skip to content

Commit

Permalink
Abstraction! Key should be put in key.coffee and GA should be put in …
Browse files Browse the repository at this point in the history
…analytics.html
  • Loading branch information
Oliver Song committed Oct 19, 2013
1 parent a19014e commit db8e04c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1 +1,3 @@
.DS_Store
key.coffee
analytics.html
10 changes: 1 addition & 9 deletions client/main.html
Expand Up @@ -7,15 +7,6 @@
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="//use.typekit.net/bpf7vbp.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<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-44945903-1', 'onetimebox.org');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="wrap">
Expand All @@ -34,4 +25,5 @@
<p class="muted credit">Created at <a href="http://www.hackmit.org">HackMIT</a>, powered by <a href="http://www.meteor.com/">Meteor.js</a>, and built by <a href="http://www.olli.es">Oliver</a>.</p>
</div>
</div>
{{> analytics}}
</body>
2 changes: 1 addition & 1 deletion client/views/pages/box.coffee
Expand Up @@ -30,7 +30,7 @@ Template.boxPage.dropPaneSet = false

Template.boxPage.rendered = ()->
unless Template.boxPage.dropPaneSet
filepicker.setKey('AwMdR1npIQQ6utPgLzd1Wz')
filepicker.setKey(filepickerKey)

# create a drop pane
filepicker.makeDropPane $(".fileDrop")[0],
Expand Down

0 comments on commit db8e04c

Please sign in to comment.