department-of-veterans-affairs / va-mobile-app

"If VA were a company, it would have a flagship mobile app."
https://department-of-veterans-affairs.github.io/va-mobile-app/
11 stars 2 forks source link

Add new analytic event: Universal webview fail event #6975

Open g-opzt opened 10 months ago

g-opzt commented 10 months ago

We have an event vama_login_fail that was originally designed to capture when logins failed at the point of the webview reporting an error. (i.e. the webview itself crashing or running into an error. If the website within has an error this doesn't count)

We use webviews in several other parts of the app, so ideally we'd have universal tracking of this in a new event:

alexandec commented 10 months ago

We have a useExternalLink hook that's called whenever the user taps on an external link. Currently that hook sends the vama_link_click and vama_link_confirm events. We could add a new vama_link_error event there. That said, I don't know for sure if we'd actually get any errors, or what type they might be.