Permalink
Browse files

include analytics

  • Loading branch information...
1 parent 40241c3 commit dff170f754ade4cfc7d669a1dad91b497113db32 @blmoore committed May 20, 2015
Showing with 8 additions and 0 deletions.
  1. +7 −0 analytics.js
  2. +1 −0 ui.R
View
@@ -0,0 +1,7 @@
+(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-51522691-2', 'auto');
+ga('send', 'pageview');
View
@@ -9,6 +9,7 @@ shinyUI(navbarPage("Blackspot", id="nav",
div(class="outer",
tags$head(
+ includeScript("analytics.js"),
includeCSS("styles.css"),
includeScript("spin.min.js")
),

0 comments on commit dff170f

Please sign in to comment.