Skip to content

Commit d42ab60

Browse files
committed
update analytics
1 parent 96ed332 commit d42ab60

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ui.R

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ shinyUI(fluidPage(theme = shinytheme('lumen'),
77
tags$head(tags$script('$(function () { $("#expressionPlot").click(function(e){ $("#ggvis-tooltip").hide(); }); })'),
88
tags$script('$(function () { $("#difPlot").click(function(e){ $("#ggvis-tooltip").hide(); }); })'),
99
tags$script('$(function () { $("#tabs").click(function(e){ $("#ggvis-tooltip").hide(); }); })'),
10-
includeScript("www/js/googleAnalytics.js")),
10+
tags$script("async src"="https://www.googletagmanager.com/gtag/js?id=G-08PL1XMYLD"),
11+
tags$script(" window.dataLayer = window.dataLayer || [];
12+
function gtag(){dataLayer.push(arguments);}
13+
gtag('js', new Date());
14+
gtag('config', 'G-08PL1XMYLD');")),
15+
# includeScript("www/js/googleAnalytics.js")),
1116
includeCSS('www/style.css'),
12-
extendShinyjs(script = 'www/js/shinyjsFunctions.js',functions = c('changeTree',
17+
extendShinyjs(script = 'js/shinyjsFunctions.js',functions = c('changeTree',
1318
'open',
1419
'deselect',
1520
'setDefaultTree',

0 commit comments

Comments
 (0)