Skip to main content
Question

Facebook ads integration events are not being triggered

  • February 10, 2024
  • 1 reply
  • 61 views

Forum|alt.badge.img+2

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”?

 

 

This post has been closed for comments

1 reply

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 383 replies
  • February 14, 2024

Hi,

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

Thanks!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings