Firebase Analytics Debug View

Please provide the following:

  1. SDK Version: “expo”: “^44.0.0”, “expo-firebase-analytics”: “~6.0.0”,
  2. Platforms(Android/iOS/web/all): iOS (Expo Go)
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

I integrated expo-firebase-analytics into our application and I can see data in Firebase Analytics and Google Analytics. But sometimes events are sent that do not appear in Firebase Analytics using the Debug View. I see some events, but not all. Google Analytics is returning a 204 response when the event is sent, even when I cannot see the event in GA.

I’ve seen other people report similar issues in Debug View.

According to Google documentation, they always return a 204 and don’t report an error.

Google documentation also says to use a different URL than expo-firebase-analytics uses. expo-firebase-analytics uses “https://www.google-analytics.com/g/collect”, while Google says to use “https://www.google-analytics.com/mp/collect

I’m not sure if this is just in Debug View or if its an issue with Firebase Analytics in general, or if it’s an issue with the expo-firebase-analytics library.

Has anyone else seen this type of issue? Any help would be appreciated.

From what I can gather, it seems that the endpoint https://www.google-analytics.com/g/collect does not properly handle multiple events in the body of the post request. I was able to recreate requests with Postman and found that when posting multiple events only one event was seen in GA.

I’m not sure if this is an issue with the format from Expo or if its an issue with Firebase Analytics

Unfortunately, I cannot find documentation for the API https://www.google-analytics.com/g/collect which is the API end point that Expo Firebase Analytics uses. I can find documentation for https://www.google-analytics.com/mp/collect but the parameters are different.

I altered FirebaseAnalyticsJS to only send one event at a time and now I can see all of the debug events. The issue was not related to debugMode, but is related to how the JavaScript code batches requests.

It does not appear to be a problem when using Expo Firebase Analytics outside of Expo Go. With an EAS build events appear to log as expected.