Skip to contents

This will display a modal prompting the user to enable (or disable) tracking if it is not already enabled. Place this function in your UI.

Usage

trackingModalBS5(
  title = "Tracking",
  prompt = "Enable cookie tracking?",
  accept = "Accept",
  reject = "Reject",
  enable_opts = list()
)

trackingModalBS4(
  title = "tracking",
  prompt = "Enable cookie tracking?",
  accept = "Accept",
  reject = "Reject",
  enable_opts = list()
)

trackingModalBS3(
  title = "Tracking",
  prompt = "Enable cookie tracking?",
  accept = "Accept",
  reject = "Reject",
  enable_opts = list()
)

Arguments

title

Title of the modal.

prompt

Text to display.

accept, reject

Test to display on buttons.

enable_opts

Options to pass to shinymetrics_enable().

Note

You can build your own fully custom prompt this is here for convenience should you not want to do so.