View source: R/shiny-modules-segments.R
| segmentBuilderUI | R Documentation | 
Shiny Module for use with segmentBuilder
segmentBuilderUI(id)
id | 
 Shiny id  | 
Shiny UI for use in app
## Not run: 
library(shiny)
library(googleAnalyticsR)
ui <- shinyUI(fluidPage(
               segmentBuilderUI("test1")
               ))
               
               
server <- shinyServer(function(input, output, session) {
segment <- callModule(segmentBuilder, "test1")
  .. use segment() in further gav4 calls.
  
})
# Run the application 
shinyApp(ui = ui, server = server)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.