observe_tab_visited <- function(tabs_visited, selected_tab) {
observeEvent(selected_tab(), {
if (selected_tab() %in% names(tabs_visited)) {
tabs_visited[[selected_tab()]] <- TRUE
}
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.