Pushes an event over the session's existing websocket; the client-side
handler installed by cc_ga_js() forwards it to GA4 and queues it for the
Sheet log. Non-blocking — no HTTP request is made on the R side, so a slow
or unreachable log endpoint can never stall a reactive.
Arguments
- session
the Shiny
sessionobject- event
event name, passed to
cc_event()- ...
named event parameters, passed to
cc_event();n_rows,ms,statusanderrorland in their own Sheet columns
Details
Use it for facts only the server knows (the taxa behind a picker value, a
query's row count, an error); pure UI interactions are better tracked
client-side with window.ccTrack() (see cc_ga_js()).