Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web has trackError, not in iOS/Android/RN? #164

Open
hermanbanken opened this issue May 19, 2022 · 0 comments
Open

Web has trackError, not in iOS/Android/RN? #164

hermanbanken opened this issue May 19, 2022 · 0 comments

Comments

@hermanbanken
Copy link

hermanbanken commented May 19, 2022

Is your feature request related to a problem? Please describe.

Describe the solution you'd like
We like to have 1 single SDK for analytics & error tracking ideally.

Describe alternatives you've considered
Currently we use DataDog for the backend errors, but we do not like adding another SDK to the app just for error tracking. Ideally we could use Snowplow and forward the error.

Additional context
Web already has this, see:
https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/javascript-trackers/browser-tracker/browser-tracker-v3-reference/plugins/error-tracking/

import { newTracker, trackPageView } from '@snowplow/browser-tracker';
import { ErrorTrackingPlugin, enableErrorTracking } from '@snowplow/browser-plugin-error-tracking';
newTracker('sp1', '{{collector_url}}', { 
   appId: 'my-app-id', 
   plugins: [ ErrorTrackingPlugin() ],
});
enableErrorTracking();

I also see exceptionAutotracking in https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/mobile-trackers/previous-versions/mobile-trackers-v2-x/introduction/ but otherwise there is really sparse documentation on this topic.


Update:

https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/react-native-tracker/tracking-events/
mentions

Exception Tracking
Captures any unhandled exceptions within the application

which I totally missed as I was looking for the word "error".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant