Shinymetrics
Shinymetrics.Rd
Shinymetrics
Shinymetrics
Active bindings
token
Your shinymetrics token.
Methods
Method new()
Usage
Shinymetrics$new(
token = Sys.getenv("SHINYMETRICS_TOKEN"),
prod = getOption("SHINYMETRICS_PROD", FALSE),
ignore_global = TRUE,
ignore_consent = FALSE
)
Arguments
token
Your application token.
prod
Whether the events are tracked for production. These allow not polluting your dashboard with test data. It is
FALSE
by default.ignore_global
Whether to ignore "global" events, these are events that target the entire HTML document, they tend to add noise. They mainly are events sent by HTMLwidgetsand the likes. It is advised to ignore them.
ignore_consent
Whether to ignore the consent and force tracking. make sure you do not violate and data privacy laws if you toggle this on.
Method track_connected()
Method track_disconnected()
Method track_session_initialialized()
Method track_busy_idle()
Method track_input()
Method track_message()
Method track_conditional()
Arguments
ignore
inputId
s oroutputId
s to ignore from the tracking. Must include the namespace. Cannot be used withonly
.only
inputId
s oroutputId
s to limit the tracking the tracking to. Must include the namespace. Cannot be used withignore
.
Details
Track "conditional" triggered when shiny::conditionalPanel
are updated.
Method track_bound()
Method track_unbound()
Method track_output()
Method track_error()
Method track_output_invalidated()
Method track_recalculating()
Method track_recalculated()
Method track_visual_change()
Method track_update_input()
Arguments
ignore
inputId
s oroutputId
s to ignore from the tracking. Must include the namespace. Cannot be used withonly
.only
inputId
s oroutputId
s to limit the tracking the tracking to. Must include the namespace. Cannot be used withignore
.
Details
Track "updateinput" event is triggered when an input
is updated from the server, e.g., when you call shiny::updateTextInput()
in R to update the label or value of a text input.
Method track_page_view()
Method track_file_download()
Arguments
ignore
inputId
s oroutputId
s to ignore from the tracking. Must include the namespace. Cannot be used withonly
.only
inputId
s oroutputId
s to limit the tracking the tracking to. Must include the namespace. Cannot be used withignore
.
Details
Track "filedownload" event triggered when a file is downloaded
via the shiny::downloadButton()
.
Method track_custom()
Usage
Shinymetrics$track_custom(
type,
id = NULL,
value = NULL,
session = shiny::getDefaultReactiveDomain()
)