@segment/analytics-react-native-plugin-appsflyer

The hassle-free way to add Segment analytics to your React-Native app.

Usage no npm install needed!

<script type="module">
  import segmentAnalyticsReactNativePluginAppsflyer from 'https://cdn.skypack.dev/@segment/analytics-react-native-plugin-appsflyer';
</script>

README

@segment/analytics-react-native-plugin-appsflyer

DestinationPlugin for Appsflyer. Wraps react-native-appsflyer.

You can provide additional options when constructing the plugin. These will be passed to appsFlyer.initSdk().

// app.js

import { createClient } from '@segment/analytics-react-native';

import { AppsflyerPlugin } from '@segment/analytics-react-native-plugin-appsflyer';

const segmentClient = createClient({
  writeKey: 'SEGMENT_KEY'
});

const plugin = new AppsflyerPlugin({
  devKey: 'K2***********99',
  isDebug: false,
  appId: '41*****44',
  onInstallConversionDataListener: true, //Optional
  onDeepLinkListener: true, //Optional
  timeToWaitForATTUserAuthorization: 10 //for iOS 14.5
})

segmentClient.add({ plugin });