I understand this is where the Analytics.js "spec" for this event comes in, but would love to see a normalized way of retrieving some of the more granular data fields on the Appsflyer payload and forward them to Segment as event. A few fields I am specifically interested in:
ad_id
adset_id
adset
Proposed Solution
Looking at the docs I see the meaning of these fields varies per partner (google,facebook etc..) so if this is too scary to implement on your end, maybe exposing a "mapper function" so we can fill in the blank properties on our end would be great :)
Summary
The current plugin cherry picks some fields from the Appsflyer payload to forward to Analytics.track(): https://github.com/segmentio/analytics-react-native/blob/b5074f7ac6a4c51cd4e24ee7ff0d2027118e452d/packages/plugins/plugin-appsflyer/src/AppsflyerPlugin.tsx#L79-L85
The docs however indicate the payload can contain a lot more data, depending on various factors. https://support.appsflyer.com/hc/en-us/articles/360000726098-Conversion-data-payloads-and-scenarios#deferred-deep-linking-with-srns
I understand this is where the Analytics.js "spec" for this event comes in, but would love to see a normalized way of retrieving some of the more granular data fields on the Appsflyer payload and forward them to Segment as event. A few fields I am specifically interested in:
Proposed Solution
Looking at the docs I see the meaning of these fields varies per partner (google,facebook etc..) so if this is too scary to implement on your end, maybe exposing a "mapper function" so we can fill in the blank properties on our end would be great :)