Integrating with Firebase A/B experiments

  • 30 August 2021
  • 1 reply


Hi everyone,


I recently started a premium subscription for my app on Google Play Store.

I started using RevenueCat to handle purchases, but I struggle to integrate it into my A/B tests that I run via Firebase Remote Config.


Here is the summary of the setup. The  users are presented with two choices of a subscription screen (which is recorded as a Firebase event). When a user completes a purchase, the app gets notified correctly and fires another Firebase event (along with enabling premium content for the user).

So this part works fine and I can analyze the relative performance. The problem is with the cancellations. Since a user can cancel the subscription and never open the app again, I have no way of processing them reliably in my app code. So I need a different way of receiving these events from RevenueCat and into Firebase.


I did not find any documentation on that. So far, I manually copy cancellations from RC console into the spreadsheet, but this is time consuming and unreliable. I would greatly appreciate an advice on how to properly handle this!

1 reply

Userlevel 4
Badge +8

Firebase doesn’t have a REST API for their analytics, which is used for their A/B testing, so I don’t think there’s a way to integrate any outside services. (you can only run Firebase A/B tests based off in-app events recorded through their SDK).


What I do is use Firebase Remote Config to control the RevenueCat Offering that each customer sees. I can then do some analysis inside RevenueCat charts and Customer Lists on which Offering is performing better.


I had this setup in place before the RevenueCat Experiments feature was in place. The benefits of Experiments is that the analysis is done for more me using more complex models than I care to build myself.


Curious to hear if anyone else has done any creative setups with Firebase A/B testing and RevenueCat Offerings?