segmentBuilderUI: Create a GAv4 Segment Builder

View source: R/shiny-modules-segments.R

segmentBuilderUIR Documentation

Create a GAv4 Segment Builder

Description

Shiny Module for use with segmentBuilder

Usage

segmentBuilderUI(id)

Arguments

id

Shiny id

Value

Shiny UI for use in app

Examples


## 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)

googleAnalyticsR documentation built on Sept. 11, 2024, 8:15 p.m.