analytics-react-native
analytics-react-native copied to clipboard
Does this library include Facebook App Events?
I have included the Facebook App ID in segment and the docs say that whenever you track/screen it should automatically send to Facebook without any additional installs, etc. However, I haven't been able to see any events coming through on the facebook side but see it only in segment. Any clues?
Talking with segment, they are saying I should be passing an advertisingId
to Segment within a context object. How might I do this?
"context": { "active": true,
"app": { "name": "InitechGlobal",
"version": "545",
"build": "3.0.1.545",
"namespace": "com.production.segment" },
"device": { "id": "B5372DB0-C21E-11E4-8DFC-AA07A5B093DB",
"advertisingId": "7A3CBEA0-BDF5-11E4-8DFC-AA07A5B093DB",
"adTrackingEnabled": true,
"manufacturer": "Apple",
"model": "iPhone7,2",
"name": "maguro",
"type": "ios",
"token": "ff15bc0c20c4aa6cd50854ff165fd265c838e5405bfeb9571066395b8c9da449"}
}
Hi @kyangy
I'm just starting to setup Facebook App Events on our app. Did you find any solution to pass an advertisingId
to Segment ?
@jmeiss I created a native module using Android's AdvertisingIdClient
class to grab the ADID and then I include it within the context like this
context: {
device: {
advertisingId: adid
}
}
@kyangy sounds good, would you mind sharing some code?