segmentBuilder: Create a GAv4 Segment Builder

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

segmentBuilderR Documentation

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

Details

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

Value

A segment definition

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)


MarkEdmondson1234/googleAnalyticsR_public documentation built on Sept. 7, 2024, 6:27 a.m.