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