vtex/splunkevents-js

Handle more event types

Opened this issue · 1 comments

Event property must be string, number or boolean.
When it's an object or array, we should try to stringify and if it is not possible, only show warning and log the rest of the event without the problematic field. (it's bad to lose events just because you forgot to stringify your array 😂 )

Was gonna open an issue just like this one. I did this on inStore, should probably do something similar here. https://github.com/vtex/checkout-instore/pull/535