# control your tracking choices via a menu if in interactive session
if(interactive()){
ga_trackme()
}
# this only works with a valid opt-in file present
ga_trackme_event()
# see what data is sent
ga_trackme_event(debug_call=TRUE)
# add your own message!
ga_trackme_event(debug_call = TRUE, say_hello = "err hello Mark")
Run the code above in your browser using DataLab