Skip to content

Commit

Permalink
(site) Add GA tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Tilley committed Dec 25, 2013
1 parent 3deb35d commit 277b7f5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions site/public/_ga.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<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-46705270-1', 'planetaryjs.com');
ga('send', 'pageview');
</script>
1 change: 1 addition & 0 deletions site/public/_layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@

<%- partial("_scripts") %>
<script type="text/javascript" src="js/homepage.js"></script>
<%- partial("_ga") %>
</body>
</html>
1 change: 1 addition & 0 deletions site/public/documentation/_layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@
</div>
</div>
<script type='text/javascript' src='/js/prism.js'></script>
<%- partial("../_ga") %>
</body>
</html>
1 change: 1 addition & 0 deletions site/public/examples/_layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
</div>
</div>
<script type='text/javascript' src='/js/prism.js'></script>
<%- partial("../_ga") %>
</body>
</html>
1 change: 1 addition & 0 deletions site/public/examples/quake/_layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@
<%- partial("../../_scripts") %>
<script type='text/javascript' src='/js/lib/moment.min.js'></script>
<script type='text/javascript' src='/examples/quake/quake.js'></script>
<%- partial("../../_ga") %>
</body>
</html>

0 comments on commit 277b7f5

Please sign in to comment.