Skip to contents

Set or unset the user being tracked. This is set, in plain text as cookie.

Usage

shinymetrics_set_user(
  user,
  expires = 9999,
  session = shiny::getDefaultReactiveDomain()
)

shinymetrics_unset_user(
  expires = 9999,
  session = shiny::getDefaultReactiveDomain()
)

Arguments

user

String identifying the user.

expires

Number of days from time of creation when the cookie expires.

session

A valid Shiny session.