Setting the $firebaseAppInstanceId
customer attribute is required for sending events to Google Analytics. If you are using Google Analytics, then the code you provided above would be relevant.
The guide for sending analytics events to Google can be found here: https://www.revenuecat.com/docs/integrations/third-party-integrations/firebase-integration#3-send-analytics-events-to-google-analytics
The Google Analytics portion of the Firebase integration tracks the following events (depending on the store):
- purchase
- rc_trial_start
- purchase
- rc_cancellation
- rc_uncancellation
- purchase
- rc_subscription_paused
- rc_expiration
- rc_billing_issue
- rc_product_change
- rc_transfer_event
Note that there is no in_app_purchase
event sent by RevenueCat’s integration with Firebase.
It’s also worth mentioning the portion of these docs which mentions setting the RevenueCat user ID:
You should make sure to use the Firebase UID as the RevenueCat app user ID when setting the Firebase user identity in RevenueCat. This step is optional, but highly recommended as a best practice for the Google Analytics portion of this integration. The Firebase Extension portion requires this step to be completed.