# Firebase integration

> Send subscription lifecycle events to Firebase Analytics (Google Analytics 4) using the Measurement Protocol.

Source: https://superwall.com/integrations/firebase

---

![Firebase logo](https://superwall.com/assets/images/integrations/firebase.svg) 

#  Firebase 

Send subscription lifecycle events to Firebase Analytics (Google Analytics 4) using the Measurement Protocol.

[ View documentation ](https://superwall.com/docs/integrations/firebase) 

##  What you can configure 

`sales_reporting` required 

Whether to report Proceeds after store taxes & fees or Revenue

`android_api_secret` 

Android API Secret from Firebase Console → Google Analytics → Admin → Android Data Stream → Measurement Protocol API secrets → Create

`android_firebase_app_id` 

Android Firebase App ID from Firebase Console → Project Settings → Your Apps → Android App ID. Required if you have an Android app.

`anonymous_user_behavior` 

How to handle events from anonymous users (users without an app user ID)

`ios_api_secret` 

iOS API Secret from Firebase Console → Google Analytics → Admin → iOS Data Stream → Measurement Protocol API secrets → Create

`ios_firebase_app_id` 

iOS Firebase App ID from Firebase Console → Project Settings → Your Apps → iOS App ID. Required if you have an iOS app.

`sandbox_android_api_secret` 

Optional Android API Secret for sandbox events. Leave blank to skip sandbox events for Android.

`sandbox_android_firebase_app_id` 

Optional Android Firebase App ID for sandbox events. Leave blank to skip sandbox events for Android.

`sandbox_ios_api_secret` 

Optional iOS API Secret for sandbox events. Leave blank to skip sandbox events for iOS.

`sandbox_ios_firebase_app_id` 

Optional iOS Firebase App ID for sandbox events. Leave blank to skip sandbox events for iOS.

##  Related integrations 

[ ![](https://superwall.com/assets/images/integrations/adjust.png) Adjust  Tracks subscription events in Adjust via S2S. Use one app token per platform, reuse values if both platforms share them, and leave any event token blank to skip that event. ](https://superwall.com/integrations/adjust)[ ![](https://superwall.com/assets/images/integrations/airbridge.png) Airbridge  Mobile measurement and attribution platform for performance marketing optimization ](https://superwall.com/integrations/airbridge)[ ![](https://superwall.com/assets/images/integrations/amplitude.svg) Amplitude  Product analytics for web and mobile applications ](https://superwall.com/integrations/amplitude)[ ![](https://superwall.com/assets/images/integrations/appsflyer.png) AppsFlyer  Mobile attribution and marketing analytics platform ](https://superwall.com/integrations/appsflyer)[ ![](https://superwall.com/assets/images/integrations/appstack.png) Appstack  Forward Superwall subscription events to Appstack for analytics and attribution ](https://superwall.com/integrations/appstack)[ ![](https://superwall.com/assets/images/integrations/appstance.svg) AppStance  AppStance, formerly Search Ads Optimization (SAO), receives post install events of Apple Ads users from Superwall for ROAS optimization. ](https://superwall.com/integrations/appstance) 

##  Book a demo 

 Tell us a little about your app and we'll match you with the right person. 

* A personalized walkthrough of the paywall builder
* Guidance on your monetization and pricing strategy
* Custom implementation recommendations for your stack
* A look at proven paywall templates
* Revenue-optimization best practices

###  Thanks — opening your calendar 

 If a new tab didn't open, [click here to pick a time](#). 

Get started

##  Connect Firebase in minutes 

Stream Superwall paywall and subscription events into Firebase — no-code, and free on every plan.

[Start for free](https://superwall.com/sign-up) 

No credit card required
