Hi,
I was wondering how to integrate Google analytics into a shiny Dashboard page. Normally you would create the .js file from Google analytics (write in text editor and export as google-analytics.js) as below:
shinyUI(fluidPage( tags$head(includeScript("google-analytics.js")),
titlePanel("Sunlight in the US")
)
)
When using shiny dashboard it produces sourcing errors. I have tried in both locations indicated below and both produced errors. Is there a different process for integrating analytics when using Dashboard?
shinyUI( #### Location 1
dashboardPage( #### Location 2
dashboardHeader(title = "Sunlight in the US")
)
)
Thanks in advance,
Conal