Learn R Programming

googleAnalyticsR (version 1.2.0)

metricDimensionSelectUI: metricDimensionSelectUI - GA4 Shiny Module

Description

Create a Google Analytics variable selector

Shiny Module for use with GA4 metric and dimension fields fetched via ga_meta("ga4")

Usage

metricDimensionSelectUI(id, label = "Metric", multiple = TRUE, width = NULL)

metricDimensionSelect( id, field_type = c("metric", "dimension"), custom_meta = NULL, default = NULL )

Value

Shiny UI

the selected variable

Arguments

id

The Shiny id

label

label

multiple

multiple select

width

width of select

field_type

metric or dimension

custom_meta

Pass a meta field table from ga_meta("ga4") to get custom fields from GA4 (reactive)

default

The default selected choice. First element if NULL

See Also

Other Shiny modules: accountPickerUI(), authDropdown(), authDropdownUI(), multi_select(), multi_selectUI()