Always return boolean for Snowplow events FE dispatcher
The following discussion from !84122 (merged) should be addressed:
-
@sheldonled started a discussion:
thought (non-blocking): Maybe we want to wrap the
snowplow
call here so that we can always return boolean?try { window.snowplow('trackStructEvent', category, action, label, property, value, contexts); return true; } catch (error) { Sentry.captureException(error); return false; }
Testing
Update related unit test and make sure QA pipelines are passing.
Edited by Carlo Catimbang