At a glance: Send your Segment analytics data to AppsFlyer.
Segment makes it easy to send your data to AppsFlyer. Once you have recorded your data through Segment's open source libraries, the data is translated and routed to AppsFlyer in the appropriate format. AppsFlyer helps marketers to pinpoint targeting, optimize ad spend, and boost ROI.
Integrating Segment with AppsFlyer
Follow this guide from Segment to learn how to integrate Segment with AppsFlyer.
How can I integrate Segment with AppsFlyer?
What SDKs do I need to add to my app?
You only need to add the Segment SDK wrapper. When you add the Segment SDK wrapper dependency, the app build process automatically adds Segment SDK and the AppsFlyer SDK to your app.
How does the SDK wrapper work?
The Segment SDK wrapper connects Segment SDK and the AppsFlyer SDK.
When you use the Segment SDK wrapper to call Segment's methods for recording installs and in-app events, the SDK wrapper calls both Segment's and AppsFlyer methods.
This saves you time and effort and requires less coding.
Warning - DO NOT USE methods from both the Segment SDK wrapper and the AppsFlyer SDK. Doing so could lead to errors and data discrepancies.
Use only methods from the Segment SDK wrapper.
is there any difference in functionality between the Segment SDK wrapper and the AppsFlyer SDK?
No, there is no change in functionality. All functions in the AppsFlyer SDK are available in the Segment SDK wrapper.
I don't see in-app event data in the AppsFlyer dashboard
Install and in-app events data in Segment and AppsFlyer doesn't match
I'm getting a validation error when testing events in Segment
When you test events using the Event Tester in the Destination page, you might get an error: Validation Error AppsFlyer Device ID ('integrations.AppsFlyer.appsFlyerId') is required to send server to server events.
This error doesn't mean that there is an issue with the integration between Segment and AppsFlyer. The Event Tester allows you to test sending server-to-server from Segment to AppsFlyer. Any event that is sent using server-to-server requires the AppsFlyerID which is why the event tester throws the error.
However, this is only relevant for server-to-server events. When you use Segment SDK API to record events, events are sent from the SDK to both Segment and AppsFlyer. For the AppsFlyer API call, the AppsFlyer Device ID is included.
I'm using a third-party analytics tool. Should I integrate it with both AppsFlyer and Segment?
No, you should only use the Segment dashboard to enable the 3rd party analytics tools.