Learn R Programming

googleAnalyticsR (version 0.4.2)

segmentBuilder: Create a GAv4 Segment Builder

Description

Shiny Module for use with segmentBuilderUI

Usage

segmentBuilder(input, output, session)

Arguments

input

shiny input

output

shiny output

session

shiny session

Value

A segment definition

Details

Call via shiny::callModule(segmentBuilder, "your_id")

Examples

Run this code
# NOT RUN {
# }
# 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)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab