lemon-analyst-94021
03/08/2024, 7:56 AMmillions-activity-52391
03/08/2024, 7:56 AMmillions-activity-52391
03/08/2024, 10:25 AMlemon-analyst-94021
03/08/2024, 5:01 PM{
"anonymousId": "91a946c6-2bbc-47ea-ab28-f0fecee41562",
"channel": "mobile",
"context": {
"app": {
"build": "1",
"name": "YaraConnect",
"namespace": "com.yara.connect.dev",
"version": "1.0"
},
"device": {
"attTrackingStatus": 0,
"id": "eaf27cdb-64e4-4e39-a69a-980101ae3e9e",
"manufacturer": "Apple",
"model": "iPhone",
"name": "iPhone 14 Pro",
"type": "iOS"
},
"library": {
"name": "rudder-ios-library",
"version": "1.24.1"
},
"locale": "en-US",
"network": {
"cellular": false,
"wifi": true
},
"os": {
"name": "iOS",
"version": "16.4"
},
"screen": {
"density": 3,
"height": 852,
"width": 393
},
"sessionId": 1709893697,
"timezone": "Asia/Kolkata",
"traits": {
"AdvertisingId": "00000000-0000-0000-0000-000000000000",
"AppsFlyerUID": "1709893655029-2764443",
"anonymousId": "91a946c6-2bbc-47ea-ab28-f0fecee41562",
"balance": 848,
"language": "English",
"phone": "+915555511016",
"userId": "bb90d36a-63e0-477b-ac12-1ac2af292bb8"
}
},
"event": "a_EarnPoints_ScanQRScreen_back",
"integrations": {
"All": true
},
"messageId": "6d3580c1-f5c9-4ecf-a552-28ad15efcb92",
"originalTimestamp": "2024-03-08T165638.526Z",
"properties": {
"auth0Id": "sms|647ed8ab450917dcaf6ee328",
"cms_state": "",
"country": "India",
"deviceId": "iPhone15,2",
"language": "en",
"operatingsystem": "iOS",
"source": "p_EarnPoints_ScanQRScreen_default",
"sourceAction": "a_EarnPoints_ScanQRScreen_back",
"userFirstLevelLocation": "Karnataka",
"userId": "bb90d36a-63e0-477b-ac12-1ac2af292bb8",
"userType": "retailer"
},
"rudderId": "1a932a19-cd96-4070-a2a0-45513a33dc86",
"sentAt": "2024-03-08T165639.487Z",
"type": "track",
"userId": "bb90d36a-63e0-477b-ac12-1ac2af292bb8"
}
DESTINATION ID
2NugE1VJ8WVVhtQ4Xr43NXpqWwS (Appsflyer Destination Id)millions-activity-52391
03/11/2024, 2:50 PMlemon-analyst-94021
03/12/2024, 6:57 AMlemon-analyst-94021
03/12/2024, 7:03 AMasync componentDidMount() {
const updateInfo = await codePush.getUpdateMetadata()
AppState.addEventListener('change',this.handleAppStateChange)
if (updateInfo) {
Sentry.setRelease(updateInfo.appVersion + '-codepush:' + updateInfo.label)
}
await new Promise (resolve => setTimeout(resolve,30000))
const data = await this.getAdvertisingId() /* get advertising Id */
if (!data?.isAdTrackingLimited) rudderClient.putAdvertisingId(data?.id) /* using putAdvertisingId before setUp()*/
rudderStackCDP.setUp()
const storageData = await Storage._retrieveData(Storage.keys.attributionIdentifyFields)
logger.info('storageData',storageData)
let check = await Storage._storeData(Storage.keys.attributionIdentifyFields, {
...storageData,
AdvertisingId: data?.id
})
logger.info('check',check)
getAppsFlyerID()
const appsflyerInstallData = getInstallConversionData()
const deeplinkreceived = getDeeplinkListener()
initializeAppsflyer()
}lemon-analyst-94021
03/12/2024, 7:03 AMshy-kite-21035
03/12/2024, 7:14 AMlemon-analyst-94021
03/12/2024, 7:42 AMlemon-analyst-94021
03/12/2024, 7:43 AMmillions-activity-52391
03/12/2024, 8:43 AMSo, is it acceptable if we retrieve the Advertising ID from the traits object?Yes
Any documentation links to help me understand better?Will share some docs and the actual User transformation shortly.
However, we need to check why Rudderstack is unable to pick up the advertisingId directly from the device. ---> This even i am not sure. Is there any manual way to push...?Yes. There is a way to push, but before that I have a question You are using the same data.id in both the places `rudderClient.putAdvertisingId(data?.id)` and `AdvertisingId: data?.id` So setting this correctly should populate the adverstingId in the context. However, I am not sure what does `!data.isAdTrackingLimited` do
lemon-analyst-94021
03/12/2024, 9:43 AMmillions-activity-52391
03/12/2024, 1:12 PMmillions-activity-52391
03/12/2024, 1:12 PMlemon-analyst-94021
03/12/2024, 1:22 PMmillions-activity-52391
03/12/2024, 1:23 PMlemon-analyst-94021
03/12/2024, 1:24 PMmillions-activity-52391
03/13/2024, 1:56 PMlemon-analyst-94021
03/15/2024, 3:57 AM