Skip to main content

Hello, we are using the Amplitude React Native SDK in our Expo app. We are trying to enable tracking Advertising IDs so that we can successfully send and match attribution data from AppsFlyer.

Although sending events from AppsFlyer is working, it seems unable to match the events with any users, we suspect its related to missing or incorrect Advertiser IDs.

We have tried enabling all the tracking options:

amplitude.init(API_KEY, OPTIONAL_USER_ID, {  trackingOptions: {    appSetId: true,    adId: true,    idfv: true,  },});

But for Android we are unsure how to add the the play-services-appset and play-services-ads-identifier dependencies? As this is an Expo project, we do not have android or ios folders for native code.

We understand that by setting these config options, the “device_id” of a user in amplitude should be their advertiser id? However, when we examine users in our Amplitude dashboard and compare their device id to the their phone’s advertiser id, they are different.

Do you have any recommendations for enabling the advertising ids in Expo based RN projects?

Thanks!

Hello, just adding to this.

The Amplitude docs suggest a work around is to use the attribution api. We would be open to trying this, however, there is no documentation about how to get the advertiser id from the device so that we can send it to the attribution api.

In the Expo docs we found this function which can return the IDFV on iOS, but we are unable to find any information about how to get the Android ADID
https://docs.expo.dev/versions/latest/sdk/application/#applicationgetiosidforvendorasync

 

Any hep would be greatly appreciated.


Reply