analytics-react-native
analytics-react-native copied to clipboard
The hassle-free way to add analytics to your React-Native app.
- removes fallback to `idfv` value for `context.device.advertisingId` when a user asks app not to track
I'm trying to track when a notification is received. I'm using `@react-native-firebase/messaging`. Current implementation: ``` messaging().setBackgroundMessageHandler(async (remoteMessage) => { await track("notification.received", { notification_id: remoteMessage.messageId, title: remoteMessage.notification?.title, }); }); ``` `setBackgroundMessageHandler`...
## Installed Dependencies: ```json "react-native": "0.72.7", "react": "18.2.0", "@segment/analytics-react-native": "^2.19.1", "@segment/sovran-react-native": "^1.1.1", ``` This error is present when launching the android emulator ```shell yarn android ``` ```shell FAILURE: Build failed...
Uses `@react-native-community/netinfo` package to check a user's network connection and only send events when they are online Have made requested changes to @zikaari's PR
## Summary When events are blocked by the client or by the network it's connected to, the events that weren't able to be flushed continue to be written locally and...
## Summary It would be nice if this library specified peer dependencies in the package.json ## Proposed Solution See example: https://github.com/watadarkstar/react-native-typing-animation/blob/18e8d6f3f051e3308acbf497fd12dd15575848ec/package.json#L41-L44 Peers should be [@segment/sovran-react-native](https://github.com/segmentio/analytics-react-native/blob/master/packages/sovran) and [react-native-get-random-values](https://github.com/LinusU/react-native-get-random-values) i.e. ``` "peerDependencies":...
**Changes list** - The `_valueToSum` attribute is mapped to properties however the `logEvent` method gets `valueToSum` [from the second argument](https://github.com/thebergamo/react-native-fbsdk-next/blob/bfd6d6e6c5a3d5e6e15b0e8acececd4cf0703ec0/src/FBAppEventsLogger.ts#L156) **Demo instructions** Using this plugin, send an event with the...
Addresses this issue: https://github.com/segmentio/analytics-react-native/issues/687 It seems like the issue was closed saying the AdMob setup is not necessary but the piece of documentation from the setup steps was not removed
Currently there is no way to configure `timeToWaitForATTUserAuthorization` for `AppsflyerPlugin`. It is hardcoded as `60`. In our app the tracking prompt is not triggered on the first screen, so we...
To avoid duplicate events in FB, FacebookAppEventsPlugin should set `event_id` as `messageId`, similar as Segment's Pixel Destination and default conversions api mapping, by using `event_id: messageId`. https://github.com/segmentio/analytics-react-native/blob/master/packages/plugins/plugin-facebook-app-events/src/FacebookAppEventsPlugin.ts#L162-L164 [Conversions API for...