This creates an event to send via ga_mp_send
ga_mp_event(name, params = NULL, items = NULL)
The event name to send in
Optional event parameters sent in as a named list
Optional items created via ga_mp_event_item
Other Measurement Protocol functions:
ga_mp_cid()
,
ga_mp_event_item()
,
ga_mp_send()
ga_mp_event("custom_event")
#>
#> ==GA4 MP Event
#> {
#> "name": "custom_event"
#> }
ga_mp_event("custom_event", params = list(my_param = "SUPER"))
#>
#> ==GA4 MP Event
#> {
#> "name": "custom_event",
#> "params": {
#> "my_param": "SUPER"
#> }
#> }