sendCustomEvent with attributes
ssaurav2512 opened this issue · comments
ssaurav2512 commented
Hi.
I started using the plugin and it works great! But I'm not able to figure out how to send attributes with a custom event. I'm sending it in the following format:
sendCustomEvent("eventname","val1","val2")
I'm not getting any errors, but I know its not the right format. Can someone help me out?
Thanks!
David Quon commented
It should be something like this:
let attributes = {
key1: value1,
key2: value2
};
sendCustomEvent("eventName", attributes);
Thomas Behan commented
or add attributes to current events if its not possible already like below:
try{ //do something }catch(err){ sendNonFatalCrash("error message", err); }