Check that `value` is a decimal value for Snowplow events on frontent
Related to #255628 (closed)
When a Snowplow event has a non-decimal/numeric value
property, it's not collected. We need to show an alert on development and, when that's not feasible, avoid failing silently.
This is already covered by the Snowplow gem on the backend. A frontend solution might be to log a warning/error that jest can complain about. And consider parsing the value as Number
in cases when the event is not tested (when using data-attributes, for example). So we would still collect the event, with an indication that we need to fix the value or use another property (like extra
).
Why
- Improves Inefficiency: Other teams have a hard time to debug this. It creates inefficiency as they ask the data/product intelligence team why events don't show up.
- Adds trust in our tooling
- Reduces delays: Noticing & fixing this bug takes ~1-2 weeks as a team waits till the events get sent in production to check.
Edited by Nicolas Dular