you should switch to using React Native Firebase because expo-firebase-analytics is currently facing numerous issues on both Android and iOS. Even if you manage to resolve all the errors on iOS, expo-firebase-analytics still cannot run on Gradle 8 (Android).
Here is a guide to migrating from expo-firebase-analytics to React Native Firebase. I have applied and tested it, and everything is now working perfectly on both platforms.
Migrating from Expo Firebase (expo-firebase-analytics) to React Native Firebase https://github.com/expo/fyi/blob/main/firebase-migration-guide.md
Then read this document for more details about React Native Firebase: https://rnfirebase.io/#expo
[Firebase] Automatically collected events https://support.google.com/analytics/answer/9234069?hl=en&ref_topic=13367566&sjid=3847978116116908888-AP