Skip to main content

Hello,

I have followed official revenue cat react native facebook ads tracking integration tutorial.

It seems like I am setting the facebook anonymous ID to the customer:

But when I actually make a purchase from my sandbox account, I see no events being triggered.

 

Here is how I am implementing my code:

  useEffect(() => {
const configurePurchases = async () => {
Purchases.setLogLevel(Purchases.LOG_LEVEL.VERBOSE);

if (Platform.OS === "ios") {
await Purchases.configure({
apiKey: APIKeys.apple,
});
// Automatically collect the $idfa, $idfv, and $ip values
Purchases.collectDeviceIdentifiers();
const anonymousId = await AppEventsLogger.getAnonymousID();
Purchases.setFBAnonymousID(anonymousId);
}
if (Platform.OS === "android") {
await Purchases.configure({
apiKey: APIKeys.google,
});
}
};
configurePurchases().catch((error) => {
console.error({
configurePurchasesError: error,
});
});
}, ,]);

What is the issue and how can I fix it?

 

On top of that I wanted to ask if all of the events such as trial starts and purchases are being tracked automatically or do users with ios 14 and above have to accept “being tracked”?

 

 

Hi,

Happy to help here. Could you open a support ticket so we can get a little more information about your project?

Thanks!


Reply