Skip to main content
Question

[Firebase integration] Google Analytics double counts iOS revenue


Forum|alt.badge.img+6
  • Member
  • 5 replies

Is anybody here successfully using the RCxFirebase integration and getting correct revenue data in Google Analytics?

I have the following problem: Revenue shown in Google Analytics seems to be counted double.

For Android, I can prevent Firebase from automatically collecting revenue data via “Firebase > Project settings > Integrations > Unlink Google Play”. Then Android is fine.

For iOS, however, this is not possible. Even without the RC integration, revenue is already show in Analytics and with the integration it is twice as high…

FYI I am using this Firebase plugin for my Capacitor app:
https://github.com/capawesome-team/capacitor-firebase/tree/main/packages/analytics

...and I am using the following code (where `userId` is the user’s UUID within my app):

Capacitor.Plugins.FirebaseAnalytics.getAppInstanceId().then(result => {
    Purchases.setAttributes({$firebaseAppInstanceId: result.appInstanceId});
});

Capacitor.Plugins.FirebaseAnalytics.setUserId({userId: userId});

Purchases.logIn(userId);

Also, I have already contacted the plugin developer and Firebase and RevenueCat support and no one had an idea...

2 replies

Forum|alt.badge.img+8
  • RevenueCat Staff
  • 418 replies
  • May 24, 2023

Hi, sorry for the delay. If you are still seeing issues with this, please open a support ticket so we can continue looking into this and get more information internally.


Forum|alt.badge.img+8
  • RevenueCat Staff
  • 418 replies
  • October 19, 2023

Updating here for reference:

Firebase will automatically collect in_app_purchase events if you're using Analytics: https://support.google.com/firebase/answer/9234069?hl=en 

 

If you don't want RevenueCat to send purchase events to Google Analytics, you could disable just the Google Analytics portion of the integration while retaining the Firebase setup. Alternatively, you can disable auto-collecting these events by following these guides:

 

There isn't a way to do this through RevenueCat, as this part is done by Firebase/Google themselves.


Reply


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